Toggle navigation
Hot Examples
PT
EN
RU
DE
FR
ES
PT
IT
JP
ZH
KO
PHP
PHP
C#
Java
Go
C++
Python
JS
TS
Pesquisar
Página Inicial
yii
base
Model
offsetGet
yii\base\Model::offsetGet PHP Method
Model Class Documentation
Exibir arquivo
Open project: yiisoft/yii2
offsetGet()
public
method
This method is required by the SPL interface [[\ArrayAccess]]. It is implicitly called when you use something like
$value = $model[$offset];
.
public
offsetGet
(
mixed
$offset
) :
mixed
$offset
mixed
the offset to retrieve element.
return
mixed
the element at the offset, null if no element is found at the offset
public function offsetGet($offset) { return $this->{$offset}; }
Model
activeAttributes
addError
addErrors
afterValidate
attributeHints
attributeLabels
attributes
beforeValidate
clearErrors
createValidators
fields
formName
generateAttributeLabel
getActiveValidators
getAttributeHint
getAttributeLabel
getAttributes
getErrors
getFirstError
getFirstErrors
getIterator
getScenario
getValidators
hasErrors
isAttributeActive
isAttributeRequired
isAttributeSafe
load
loadMultiple
offsetExists
offsetGet
offsetSet
offsetUnset
onUnsafeAttribute
rules
safeAttributes
scenarios
setAttributes
setScenario
validate
validateMultiple