Свойство | Type | Description | |
---|---|---|---|
$_context | array | The context data | |
$_isCollection | boolean | Boolean to track whether or not the entity is a collection. | |
$_request | Cake\Network\Request | The request object. | |
$_rootName | string | The name of the top level entity/type object. |
Méthode | Description | |
---|---|---|
__construct ( Cake\Network\Request $request, array $context ) | Constructor. | |
attributes ( $field ) | {@inheritDoc} | |
error ( $field ) | {@inheritDoc} | |
fieldNames ( ) | {@inheritDoc} | |
hasError ( $field ) | {@inheritDoc} | |
isCreate ( ) | {@inheritDoc} | |
isPrimaryKey ( $field ) | {@inheritDoc} | |
isRequired ( $field ) | {@inheritDoc} | |
primaryKey ( ) | {@inheritDoc} | |
type ( $field ) | {@inheritDoc} | |
val ( $field ) | {@inheritDoc} |
Méthode | Description | |
---|---|---|
_prepare ( ) : void | Prepare some additional data from the context. | |
entity ( array $path ) : Cake\Datasource\EntityInterface | false | Get the entity that is closest to $path. | |
getProp ( mixed $target, string $field ) : mixed | Read property values or traverse arrays/iterators. | |
getValidator ( ) : Cake\Validation\Validator | Get the validator for the current type. |
public __construct ( Cake\Network\Request $request, array $context ) | ||
$request | Cake\Network\Request | The request object. |
$context | array | Context info. |
protected getValidator ( ) : Cake\Validation\Validator | ||
Résultat | Cake\Validation\Validator | The validator for the type. |
protected bool $_isCollection | ||
Résultat | boolean |
protected Request,Cake\Network $_request | ||
Résultat | Cake\Network\Request |
protected string $_rootName | ||
Résultat | string |