PHP 클래스 Craft\Neo_BlockModel

상속: extends craft\BaseElementModel
파일 보기 프로젝트 열기: benjamminf/craft-neo

공개 프로퍼티들

프로퍼티 타입 설명
$modified boolean Used to indicate whether this block needs to be saved to the database.

보호된 프로퍼티들

프로퍼티 타입 설명
$elementType Protected properties

공개 메소드들

메소드 설명
getAncestors ( integer | null $dist = null ) : craft\ElementCriteriaModel Returns the block's ancestors.
getChildren ( null $field = null ) : craft\ElementCriteriaModel Returns the block's children.
getDescendants ( integer | null $dist = null ) : craft\ElementCriteriaModel Returns the block's descendants.
getField ( ) : craft\FieldModel | null Returns the field the block is associated with.
getFieldLayout ( ) : craft\FieldLayoutModel | null Returns the field layout the block is associated with.
getLocales ( ) : array Returns the locale ID's the block is available in.
getNextSibling ( ) : Neo_BlockModel | null Returns the block's next sibling.
getOwner ( ) : craft\BaseElementModel | null Returns the element that this block belongs as a field value to.
getParent ( ) : Neo_BlockModel | null Returns the block's parent.
getPrevSibling ( ) : Neo_BlockModel | null Returns the block's previous sibling.
getSiblings ( ) : craft\ElementCriteriaModel Returns the block's siblings.
getType ( ) : Neo_BlockTypeModel | null Returns the block's type.
setAllElements ( array $elements ) Allows memoizing all blocks (including this one) for a particular field.
setOwner ( craft\BaseElementModel $owner ) Allow the owner to be manually memoized, so that getOwner doesn't have to perform a DB query to find the owner.

보호된 메소드들

메소드 설명
defineAttributes ( ) Protected methods

메소드 상세

defineAttributes() 보호된 메소드

Protected methods
protected defineAttributes ( )

getAncestors() 공개 메소드

Returns the block's ancestors.
public getAncestors ( integer | null $dist = null ) : craft\ElementCriteriaModel
$dist integer | null
리턴 craft\ElementCriteriaModel

getChildren() 공개 메소드

Returns the block's children.
public getChildren ( null $field = null ) : craft\ElementCriteriaModel
$field null - This is a deprecated parameter
리턴 craft\ElementCriteriaModel

getDescendants() 공개 메소드

Returns the block's descendants.
public getDescendants ( integer | null $dist = null ) : craft\ElementCriteriaModel
$dist integer | null
리턴 craft\ElementCriteriaModel

getField() 공개 메소드

Returns the field the block is associated with.
public getField ( ) : craft\FieldModel | null
리턴 craft\FieldModel | null

getFieldLayout() 공개 메소드

Returns the field layout the block is associated with.
public getFieldLayout ( ) : craft\FieldLayoutModel | null
리턴 craft\FieldLayoutModel | null

getLocales() 공개 메소드

Returns the locale ID's the block is available in.
public getLocales ( ) : array
리턴 array

getNextSibling() 공개 메소드

Returns the block's next sibling.
public getNextSibling ( ) : Neo_BlockModel | null
리턴 Neo_BlockModel | null

getOwner() 공개 메소드

Returns the element that this block belongs as a field value to.
public getOwner ( ) : craft\BaseElementModel | null
리턴 craft\BaseElementModel | null

getParent() 공개 메소드

Returns the block's parent.
public getParent ( ) : Neo_BlockModel | null
리턴 Neo_BlockModel | null

getPrevSibling() 공개 메소드

Returns the block's previous sibling.
public getPrevSibling ( ) : Neo_BlockModel | null
리턴 Neo_BlockModel | null

getSiblings() 공개 메소드

Returns the block's siblings.
public getSiblings ( ) : craft\ElementCriteriaModel
리턴 craft\ElementCriteriaModel

getType() 공개 메소드

Returns the block's type.
public getType ( ) : Neo_BlockTypeModel | null
리턴 Neo_BlockTypeModel | null

setAllElements() 공개 메소드

This is used for Live Preview mode, where certain methods, like getAncestors, create element criteria models which need a local set of blocks to query against.
public setAllElements ( array $elements )
$elements array

setOwner() 공개 메소드

This is useful for Live Preview mode, where blocks might belong to a new owner, which won't have an ID yet.
public setOwner ( craft\BaseElementModel $owner )
$owner craft\BaseElementModel

프로퍼티 상세

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

Protected properties
protected $elementType

$modified 공개적으로 프로퍼티

Used to indicate whether this block needs to be saved to the database.
public bool $modified
리턴 boolean