Property | Type | Description | |
---|---|---|---|
$document | Contains the document object | ||
$placeholderClassPrefixes | string | Prefixes for the Placeholder Classes | |
$placeholderPrefix | string | Prefix for the Placeholders | |
$placeholderSuffix | string | Suffix for the Placeholders |
Method | Description | |
---|---|---|
addPlaceholderClassPrefix ( $classPrefix ) | ||
detectPlaceholders ( string $contentString, null | array $params, $document = null ) : array | Detects the Placeholders in a string and returns an array with the placeholder information | |
getPlaceholderClassPrefixes ( ) : array | Returns the Placeholder class prefixes | |
getPlaceholderPrefix ( ) : string | Returns the Placeholder prefix | |
getPlaceholderSuffix ( ) : string | Returns the Placeholder suffix | |
getWebsiteClassPrefix ( ) : string | Returns the website class prefix for the Placeholder Classes | |
removePlaceholderClassPrefix ( $classPrefix ) : boolean | ||
replacePlaceholders ( $mixed, array $params = [], $document = null, $enableLayoutOnPlaceholderReplacement = true ) : string | Helper to simply replace the placeholders with their value | |
setPlaceholderPrefix ( string $prefix ) : void | Set a custom Placeholder prefix | |
setPlaceholderSuffix ( $suffix ) | ||
setWebsiteClassPrefix ( $string ) | Sets a custom website class prefix for the Placeholder Classes |
Method | Description | |
---|---|---|
replacePlaceholdersFromStack ( array $placeholderStack = [] ) : string | Creates the Placeholder objects and replaces the placeholder string with the rendered content of the placeholder object |
public static addPlaceholderClassPrefix ( $classPrefix ) | ||
$classPrefix |
public static getPlaceholderClassPrefixes ( ) : array | ||
return | array |
public static getPlaceholderPrefix ( ) : string | ||
return | string |
public static getPlaceholderSuffix ( ) : string | ||
return | string |
public static getWebsiteClassPrefix ( ) : string | ||
return | string |
public static removePlaceholderClassPrefix ( $classPrefix ) : boolean | ||
$classPrefix | ||
return | boolean |
public replacePlaceholders ( $mixed, array $params = [], $document = null, $enableLayoutOnPlaceholderReplacement = true ) : string | ||
$params | array | |
return | string |
protected replacePlaceholdersFromStack ( array $placeholderStack = [] ) : string | ||
$placeholderStack | array | |
return | string |
public static setPlaceholderPrefix ( string $prefix ) : void | ||
$prefix | string | |
return | void |
public static setWebsiteClassPrefix ( $string ) | ||
$string |
protected static string $placeholderClassPrefixes | ||
return | string |
protected static string $placeholderPrefix | ||
return | string |
protected static string $placeholderSuffix | ||
return | string |