Property | Type | Description | |
---|---|---|---|
$arrData | array | The meta information of this attribute. |
Method | Description | |
---|---|---|
__construct ( MetaModels\IMetaModel $objMetaModel, array $arrData = [] ) | Instantiate an MetaModel attribute. | |
destroyAUX ( ) | ||
filterGreaterThan ( $varValue, $blnInclusive = false ) | ||
filterLessThan ( $varValue, $blnInclusive = false ) | ||
filterNotEqual ( $varValue ) | {@inheritdoc} Base implementation, merge the result of filterLessThan() and filterGreaterThan(). | |
get ( $strKey ) | ||
getAttributeSettingNames ( ) | ||
getColName ( ) | ||
getDefaultRenderSettings ( ) | ||
getFieldDefinition ( $arrOverrides = [] ) | ||
getFilterUrlValue ( $varValue ) | ||
getItemDCA ( $arrOverrides = [] ) | ||
getMetaModel ( ) | ||
getName ( ) : string | Retrieve the human readable name (or title) from the attribute. | |
handleMetaChange ( $strMetaName, $varNewValue ) | ||
hookAdditionalFormatters ( array $arrBaseFormatted, array $arrRowData, string $strOutputFormat, MetaModels\Render\Setting\ISimple $objSettings ) : mixed | Hook additional attribute formatter that want to format the value. | |
initializeAUX ( ) | ||
modelSaved ( $objItem ) | {@inheritdoc} Base implementation, do not perform anything. | |
parseValue ( $arrRowData, $strOutputFormat = 'text', $objSettings = null ) | ||
searchFor ( $strPattern ) | {@inheritdoc} Base implementation, do not perform any search; | |
set ( $strKey, $varValue ) | ||
sortIds ( $idList, $strDirection ) | ||
valueToWidget ( $varValue ) | ||
widgetToValue ( $varValue, $itemId ) |
Method | Description | |
---|---|---|
getLangValue ( array $arrValues, string $strLangCode = null ) : mixed | null | This extracts the value for the given language from the given language array. | |
getOverrideValue ( string $name, array $overrides ) : mixed | Extract an override value. | |
parameterMask ( array $parameters ) : string | Helper method for generating a list of "?" to be used in a Contao query. | |
prepareTemplate ( MetaModels\Render\Template $objTemplate, array $arrRowData, MetaModels\Render\Setting\ISimple $objSettings ) : void | When rendered via a template, this populates the template with values. |
Method | Description | |
---|---|---|
getBaseDefinition ( ) : array | Retrieve the base definition by the user from dca_config. | |
isAllowedValue ( string $name ) : boolean | Check if a value may be overridden. | |
setBaseEval ( array $fieldDefinition, array $overrides ) : array | Extract an override value. | |
setLanguageStrings ( ) : void | Set the language strings. |
public __construct ( MetaModels\IMetaModel $objMetaModel, array $arrData = [] ) | ||
$objMetaModel | MetaModels\IMetaModel | The MetaModel instance this attribute belongs to. |
$arrData | array | The information array, for attribute information, refer to documentation of table tl_metamodel_attribute and documentation of the certain attribute classes for information what values are understood. |
public filterGreaterThan ( $varValue, $blnInclusive = false ) |
public filterLessThan ( $varValue, $blnInclusive = false ) |
public filterNotEqual ( $varValue ) |
public getFilterUrlValue ( $varValue ) |
protected getLangValue ( array $arrValues, string $strLangCode = null ) : mixed | null | ||
$arrValues | array | The array holding all language values in the form array('langcode' => $varValue). |
$strLangCode | string | The language code of the language to fetch. Optional, if not given, $GLOBALS['TL_LANGUAGE'] is used. |
return | mixed | null | the value for the given language or the fallback language, NULL if neither is present. |
public hookAdditionalFormatters ( array $arrBaseFormatted, array $arrRowData, string $strOutputFormat, MetaModels\Render\Setting\ISimple $objSettings ) : mixed | ||
$arrBaseFormatted | array | The current result array. The keys "raw" and "text" are always populated. |
$arrRowData | array | The Raw values from the database. |
$strOutputFormat | string | The output format to use. |
$objSettings | MetaModels\Render\Setting\ISimple | The output format settings. |
return | mixed |
public modelSaved ( $objItem ) |
protected parameterMask ( array $parameters ) : string | ||
$parameters | array | The parameters to be used in a query. |
return | string |
public parseValue ( $arrRowData, $strOutputFormat = 'text', $objSettings = null ) |
protected prepareTemplate ( MetaModels\Render\Template $objTemplate, array $arrRowData, MetaModels\Render\Setting\ISimple $objSettings ) : void | ||
$objTemplate | MetaModels\Render\Template | The Template instance to populate. |
$arrRowData | array | The row data for the current item. |
$objSettings | MetaModels\Render\Setting\ISimple | The render settings to use for this attribute. |
return | void |
public searchFor ( $strPattern ) |
protected array $arrData | ||
return | array |