/var/www/vhosts/nabawater/vendor/yiisoft/yii2/base
NameSizeModeActions
Action.php38090644editdlrm
ActionEvent.php12800644editdlrm
ActionFilter.php52060644editdlrm
Application.php239340644editdlrm
Arrayable.php39570644editdlrm
ArrayableTrait.php96200644editdlrm
ArrayAccessTrait.php23860644editdlrm
BaseObject.php105700644editdlrm
Behavior.php32080644editdlrm
BootstrapInterface.php19920644editdlrm
Component.php278760644editdlrm
Configurable.php10500644editdlrm
Controller.php199290644editdlrm
DynamicContentAwareInterface.php12900644editdlrm
DynamicContentAwareTrait.php24270644editdlrm
DynamicModel.php72260644editdlrm
ErrorException.php41430644editdlrm
ErrorHandler.php123060644editdlrm
Event.php116510644editdlrm
Exception.php6250644editdlrm
ExitException.php9980644editdlrm
InlineAction.php19450644editdlrm
InvalidArgumentException.php5650644editdlrm
InvalidCallException.php5470644editdlrm
InvalidConfigException.php5450644editdlrm
InvalidParamException.php6310644editdlrm
InvalidRouteException.php5250644editdlrm
InvalidValueException.php5750644editdlrm
Model.php398360644editdlrm
ModelEvent.php5380644editdlrm
Module.php280050644editdlrm
NotSupportedException.php5460644editdlrm
Object.php10420644editdlrm
Request.php31500644editdlrm
Response.php11170644editdlrm
Security.php318930644editdlrm
StaticInstanceInterface.php10080644editdlrm
StaticInstanceTrait.php10780644editdlrm
Theme.php67120644editdlrm
UnknownClassException.php5270644editdlrm
UnknownMethodException.php5560644editdlrm
UnknownPropertyException.php5490644editdlrm
UserException.php4360644editdlrm
View.php217920644editdlrm
ViewContextInterface.php6570644editdlrm
ViewEvent.php10960644editdlrm
ViewNotFoundException.php5290644editdlrm
ViewRenderer.php8560644editdlrm
Widget.php106090644editdlrm
WidgetEvent.php8380644editdlrm
Edit: /var/www/vhosts/nabawater/vendor/yiisoft/yii2/base/Arrayable.php (3957B)
* @since 2.0 */ interface Arrayable { /** * Returns the list of fields that should be returned by default by [[toArray()]] when no specific fields are specified. * * A field is a named element in the returned array by [[toArray()]]. * * This method should return an array of field names or field definitions. * If the former, the field name will be treated as an object property name whose value will be used * as the field value. If the latter, the array key should be the field name while the array value should be * the corresponding field definition which can be either an object property name or a PHP callable * returning the corresponding field value. The signature of the callable should be: * * ```php * function ($model, $field) { * // return field value * } * ``` * * For example, the following code declares four fields: * * - `email`: the field name is the same as the property name `email`; * - `firstName` and `lastName`: the field names are `firstName` and `lastName`, and their * values are obtained from the `first_name` and `last_name` properties; * - `fullName`: the field name is `fullName`. Its value is obtained by concatenating `first_name` * and `last_name`. * * ```php * return [ * 'email', * 'firstName' => 'first_name', * 'lastName' => 'last_name', * 'fullName' => function ($model) { * return $model->first_name . ' ' . $model->last_name; * }, * ]; * ``` * * @return array the list of field names or field definitions. * @see toArray() */ public function fields(); /** * Returns the list of additional fields that can be returned by [[toArray()]] in addition to those listed in [[fields()]]. * * This method is similar to [[fields()]] except that the list of fields declared * by this method are not returned by default by [[toArray()]]. Only when a field in the list * is explicitly requested, will it be included in the result of [[toArray()]]. * * @return array the list of expandable field names or field definitions. Please refer * to [[fields()]] on the format of the return value. * @see toArray() * @see fields() */ public function extraFields(); /** * Converts the object into an array. * * @param array $fields the fields that the output array should contain. Fields not specified * in [[fields()]] will be ignored. If this parameter is empty, all fields as specified in [[fields()]] will be returned. * @param array $expand the additional fields that the output array should contain. * Fields not specified in [[extraFields()]] will be ignored. If this parameter is empty, no extra fields * will be returned. * @param bool $recursive whether to recursively return array representation of embedded objects. * @return array the array representation of the object */ public function toArray(array $fields = [], array $expand = [], $recursive = true); }