rest\UrlRule $prefix

$prefix public property The common prefix string shared by all patterns. public string $prefix = null

rest\UrlRule $except

$except public property List of actions that should be excluded. Any action found in this array will NOT have its URL rules created. See also $patterns. public array $except = []

rest\UrlRule $controller

$controller public property The controller ID (e.g. user, post-comment) that the rules in this composite rule are dealing with. It should be prefixed with the module ID if the controller is within a module (e.g. admin/user). By default, the controller ID will be pluralized automatically when it is put in the patterns of the generated rules. If you want to explicitly specify how the controller ID should appear in the patterns, you may use an array with the array key being as the controller I

rest\UrlRule $extraPatterns

$extraPatterns public property Patterns for supporting extra actions in addition to those listed in $patterns. The keys are the patterns and the values are the corresponding action IDs. These extra patterns will take precedence over $patterns. public array $extraPatterns = []

rest\UpdateAction run()

run() public method Updates an existing model. public yii\db\ActiveRecordInterface run ( $id )$id string The primary key of the model. return yii\db\ActiveRecordInterface The model being updated throws yii\web\ServerErrorHttpException if there is any error when updating the model

rest\UpdateAction $scenario

$scenario public property The scenario to be assigned to the model before it is validated and updated. public string $scenario = \yii\base\Model::SCENARIO_DEFAULT

rest\Serializer serializePagination()

serializePagination() protected method Serializes a pagination into an array. See also addPaginationHeaders(). protected array serializePagination ( $pagination )$pagination yii\data\Pagination return array The array representation of the pagination

rest\Serializer serializeModel()

serializeModel() protected method Serializes a model object. protected array serializeModel ( $model )$model yii\base\Arrayable return array The array representation of the model

rest\Serializer serializeModels()

serializeModels() protected method Serializes a set of models. protected array serializeModels ( array $models )$models array return array The array representation of the models

rest\Serializer serializeModelErrors()

serializeModelErrors() protected method Serializes the validation errors in a model. protected array serializeModelErrors ( $model )$model yii\base\Model return array The array representation of the errors