Method | Description | Returns |
---|---|---|
getDefaultValuesList() | Gets default content values array that is suitable to be used in tag. In this case every key equals to its value. |
array |
getEntity() | Get the entity specified for this input type. Returns null if no entity was specified, or the input type does not have record or records as category. | string |
getEntityParentId() | Gets ID of parent for the entity specified for this input type. Returns null if the input type does not have record or records as category or if no parent was specified. | string |
getId() | int | |
getName() | string | |
getCategory() | string | |
getEditor() | string | |
getRegex() | string | |
getMaxLength() | int | |
getCreated() | Get the date the record was created. | DateTime |
getModified() | Get the last modification date for the record. | DateTime |
getDefaultContent() | Content | |
getPossibleValues() | Collection (InputTypePossibleValue) | |
getLayoutAreas() | Collection (LayoutArea) | |
getCustomFields() | Returns custom fields (not their values) that use this input type. | Collection (CustomField) |
getParameters() | array | |
isNewRecord() | Check if the record is a new record | bool |
isHierarchicalModel() | Check whether a model is a hierarchical model, i.e. can have children | bool |
isVersionedModel() | Check whether a model is versioned | bool |
getAvailableCategories() | Get the available categories for input types | array |
getAvailableEditors() | Get the available editors for text inputs | array |
getAvailableModes() | Get the available code languages for the code editor | array |
getAvailableEntities() | Get the available entities for record input types | array |
getAvailableRecords() | Get the available records for a record input type | Collection |
getAvailableRecordsNames(?int|null $siteId) | Get multidimensional array with id and text as columns for use in tree selects | array |
getLayoutAreasCount() | Get the number of layouts for this input type. | int |
getCustomFieldsCount() | Get the number of layouts for this input type. | int |
getHateoasLinks() | Get the HATEOAS links for the record | array |
getEditUrl() | Get the url for editing the record. | string |
getManageUrl() | Get the url for managing records. | string |
Common\Models\Backend\InputType
InputType