Method | Description | |
---|---|---|
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 ) : |
Populates an element model based on a query result. |
public defineCriteriaAttributes ( ) : array | ||
return | array |
public defineSearchableAttributes ( ) : array | ||
return | array |
public defineSortableAttributes ( ) : array | ||
return | array |
public getEditorHtml ( craft\BaseElementModel $element ) : string | ||
$element | craft\BaseElementModel | |
return | string |
public getTableAttributeHtml ( craft\BaseElementModel $element, string $attribute ) : string | ||
$element | craft\BaseElementModel | |
$attribute | string | |
return | string |
public hasContent ( ) : boolean | ||
return | boolean |
public isLocalized ( ) : boolean | ||
return | boolean |
public modifyElementsQuery ( craft\DbCommand $query, craft\ElementCriteriaModel $criteria ) : mixed | ||
$query | craft\DbCommand | |
$criteria | craft\ElementCriteriaModel | |
return | mixed |
public populateElementModel ( array $row ) : |
||
$row | array | |
return |