PHP 클래스 Cake\ElasticSearch\View\Form\DocumentContext

상속: implements Cake\View\Form\ContextInterface
파일 보기 프로젝트 열기: cakephp/elastic-search

보호된 프로퍼티들

프로퍼티 타입 설명
$_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.

공개 메소드들

메소드 설명
__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}

보호된 메소드들

메소드 설명
_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.

메소드 상세

__construct() 공개 메소드

Constructor.
public __construct ( Cake\Network\Request $request, array $context )
$request Cake\Network\Request The request object.
$context array Context info.

_prepare() 보호된 메소드

If the table option was provided to the constructor and it was a string, TypeRegistry will be used to get the correct table instance. If an object is provided as the type option, it will be used as is. If no type option is provided, the type name will be derived based on naming conventions. This inference will work with a number of common objects like arrays, Collection objects and ResultSets.
protected _prepare ( ) : void
리턴 void

attributes() 공개 메소드

{@inheritDoc}
public attributes ( $field )

entity() 보호된 메소드

Get the entity that is closest to $path.
protected entity ( array $path ) : Cake\Datasource\EntityInterface | false
$path array The to get an entity for.
리턴 Cake\Datasource\EntityInterface | false The entity or false.

error() 공개 메소드

{@inheritDoc}
public error ( $field )

fieldNames() 공개 메소드

{@inheritDoc}
public fieldNames ( )

getProp() 보호된 메소드

Read property values or traverse arrays/iterators.
protected getProp ( mixed $target, string $field ) : mixed
$target mixed The entity/array/collection to fetch $field from.
$field string The next field to fetch.
리턴 mixed

getValidator() 보호된 메소드

Get the validator for the current type.
protected getValidator ( ) : Cake\Validation\Validator
리턴 Cake\Validation\Validator The validator for the type.

hasError() 공개 메소드

{@inheritDoc}
public hasError ( $field )

isCreate() 공개 메소드

{@inheritDoc}
public isCreate ( )

isPrimaryKey() 공개 메소드

{@inheritDoc}
public isPrimaryKey ( $field )

isRequired() 공개 메소드

{@inheritDoc}
public isRequired ( $field )

primaryKey() 공개 메소드

{@inheritDoc}
public primaryKey ( )

type() 공개 메소드

{@inheritDoc}
public type ( $field )

val() 공개 메소드

{@inheritDoc}
public val ( $field )

프로퍼티 상세

$_context 보호되어 있는 프로퍼티

The context data
protected array $_context
리턴 array

$_isCollection 보호되어 있는 프로퍼티

Boolean to track whether or not the entity is a collection.
protected bool $_isCollection
리턴 boolean

$_request 보호되어 있는 프로퍼티

The request object.
protected Request,Cake\Network $_request
리턴 Cake\Network\Request

$_rootName 보호되어 있는 프로퍼티

The name of the top level entity/type object.
protected string $_rootName
리턴 string