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
base
Model
getScenario
yii\base\Model::getScenario PHP Method
Model Class Documentation
Mostra file
Open project: yiisoft/yii2
getScenario()
public
method
Scenario affects how validation is performed and which attributes can be massively assigned.
public
getScenario
( ) :
string
return
string
the scenario that this model is in. Defaults to [[SCENARIO_DEFAULT]].
public function getScenario() { return $this->_scenario; }
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