PHP 클래스 Craft\AmForms_FormElementType

상속: extends craft\BaseElementType
파일 보기 프로젝트 열기: am-impact/amforms

공개 메소드들

메소드 설명
defineAvailableTableAttributes ( string | null $source = null ) : array Returns the attributes that can be shown/sorted by in table views.
defineCriteriaAttributes ( ) : array Defines any custom element criteria attributes for this element type.
defineSearchableAttributes ( ) : array Defines which model attributes should be searchable.
defineSortableAttributes ( ) : array Returns the attributes that can be sorted by in table views.
getEditorHtml ( craft\BaseElementModel $element ) : string
getName ( ) : string Returns the element type name.
getSources ( string | null $context = null ) : array | false Returns this element type's sources.
getTableAttributeHtml ( craft\BaseElementModel $element, string $attribute ) : string
hasContent ( ) : boolean Returns whether this element type has content.
isLocalized ( ) : boolean Returns whether this element type stores data on a per-locale basis.
modifyElementsQuery ( craft\DbCommand $query, craft\ElementCriteriaModel $criteria ) : mixed Modifies an element query targeting elements of this type.
populateElementModel ( array $row ) : AmForms_FormModel Populates an element model based on a query result.

메소드 상세

defineAvailableTableAttributes() 공개 메소드

Returns the attributes that can be shown/sorted by in table views.
public defineAvailableTableAttributes ( string | null $source = null ) : array
$source string | null
리턴 array

defineCriteriaAttributes() 공개 메소드

Defines any custom element criteria attributes for this element type.
public defineCriteriaAttributes ( ) : array
리턴 array

defineSearchableAttributes() 공개 메소드

Defines which model attributes should be searchable.
public defineSearchableAttributes ( ) : array
리턴 array

defineSortableAttributes() 공개 메소드

Returns the attributes that can be sorted by in table views.
public defineSortableAttributes ( ) : array
리턴 array

getEditorHtml() 공개 메소드

public getEditorHtml ( craft\BaseElementModel $element ) : string
$element craft\BaseElementModel
리턴 string

getName() 공개 메소드

Returns the element type name.
public getName ( ) : string
리턴 string

getSources() 공개 메소드

Returns this element type's sources.
public getSources ( string | null $context = null ) : array | false
$context string | null
리턴 array | false

getTableAttributeHtml() 공개 메소드

public getTableAttributeHtml ( craft\BaseElementModel $element, string $attribute ) : string
$element craft\BaseElementModel
$attribute string
리턴 string

hasContent() 공개 메소드

Returns whether this element type has content.
public hasContent ( ) : boolean
리턴 boolean

isLocalized() 공개 메소드

Returns whether this element type stores data on a per-locale basis.
public isLocalized ( ) : boolean
리턴 boolean

modifyElementsQuery() 공개 메소드

Modifies an element query targeting elements of this type.
public modifyElementsQuery ( craft\DbCommand $query, craft\ElementCriteriaModel $criteria ) : mixed
$query craft\DbCommand
$criteria craft\ElementCriteriaModel
리턴 mixed

populateElementModel() 공개 메소드

Populates an element model based on a query result.
public populateElementModel ( array $row ) : AmForms_FormModel
$row array
리턴 AmForms_FormModel