Toggle navigation
Hot Examples
IT
EN
RU
DE
FR
ES
PT
IT
JP
ZH
KO
PHP
PHP
C#
Java
Go
C++
Python
JS
TS
Cerca
Home
yii
db
ActiveRecordInterface
getAttribute
yii\db\ActiveRecordInterface::getAttribute PHP Method
ActiveRecordInterface Interface Documentation
Mostra file
Open project: yiisoft/yii2
getAttribute()
public
method
If this record is the result of a query and the attribute is not loaded,
null
will be returned.
See also:
hasAttribute()
public
getAttribute
(
string
$name
) :
mixed
$name
string
the attribute name
return
mixed
the attribute value. `null` if the attribute is not set or does not exist.
public function getAttribute($name);
ActiveRecordInterface
attributes
delete
deleteAll
equals
find
findAll
findOne
getAttribute
getDb
getIsNewRecord
getOldPrimaryKey
getPrimaryKey
getRelation
hasAttribute
insert
isPrimaryKey
link
populateRelation
primaryKey
save
setAttribute
unlink
update
updateAll