PHP Класс Craft\AmForms_FormElementType

Наследование: extends craft\BaseElementType
Показать файл Открыть проект

Открытые методы

Метод Описание
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