Property | Type | Description | |
---|---|---|---|
$contentString | string | The Content as string | |
$document | The passed Document Object | ||
$locale | Zend_Locale | ||
$params | array | All dynamic parameters which are passed to the Placeholder | |
$placeholderConfig | Zend_Config_Json | The config object passed from the placeholder If no config object was passed a empty \Zend_Config_Json is passed | |
$placeholderKey | string | The placeholder key passed to determine the dynamic parameter | |
$placeholderString | string | The placeholder string e.g "%Object(object_id,{"method" : "getName"})" |
Method | Description | |
---|---|---|
getContentString ( ) : null | string | returns the full content string | |
getDocument ( ) : |
Returns the Document | |
getEmptyValue ( ) : string | Will be used as replacement if the passed parameter is empty | |
getLanguage ( ) : string | Returns the current language | |
getLocale ( ) : Zend_Locale | Returns the current locale | |
getParam ( string $key ) : mixed | Returns a specific parameter | |
getParams ( ) : array | Returns the Parameters ob the Placeholder object | |
getPlaceholderConfig ( ) : Zend_Config_Json | Returns the Placeholder config object | |
getPlaceholderKey ( ) : string | Returns the Placehodler key | |
getPlaceholderString ( ) : string | ||
getReplacement ( ) : string | Has to return the placeholder with the corresponding value | |
getTestValue ( ) : string | Has to return an appropriate value for a test replacement | |
getValue ( ) : mixed | Returns the the value of the current Placeholder parameter | |
setContentString ( $contentString ) | ||
setDocument ( $document ) | ||
setLocale ( $locale = null ) | Try to set the locale from different sources | |
setParams ( $params ) | ||
setPlaceholderConfig ( Zend_Config_Json $config ) | ||
setPlaceholderKey ( $key ) | ||
setPlaceholderString ( $string ) |
public getContentString ( ) : null | string | ||
return | null | string |
public getDocument ( ) : |
||
return |
public getEmptyValue ( ) : string | ||
return | string |
public getLanguage ( ) : string | ||
return | string |
public getLocale ( ) : Zend_Locale | ||
return | Zend_Locale |
public getPlaceholderConfig ( ) : Zend_Config_Json | ||
return | Zend_Config_Json |
public getPlaceholderKey ( ) : string | ||
return | string |
abstract public getReplacement ( ) : string | ||
return | string |
abstract public getTestValue ( ) : string | ||
return | string |
public setLocale ( $locale = null ) | ||
$locale |
public setPlaceholderConfig ( Zend_Config_Json $config ) | ||
$config | Zend_Config_Json |
protected string $contentString | ||
return | string |
protected Document,Pimcore\Model|null $document | ||
return |
protected array $params | ||
return | array |
protected Zend_Config_Json $placeholderConfig | ||
return | Zend_Config_Json |
protected string $placeholderKey | ||
return | string |
protected string $placeholderString | ||
return | string |