PHP Class RainLab\Translate\Classes\MLStaticPage

Author: Alexey Bobkov, Samuel Georges
Inheritance: extends MLCmsObject
显示文件 Open project: rainlab/translate-plugin

Protected Properties

Property Type Description
$purgeable List of attribute names which are not considered "settings".
$wrapCode Wrap code section in PHP tags.

Public Methods

Method Description
afterFetch ( ) {@inheritDoc}
getPlaceholdersAttribute ( ) : array Parses the page placeholder {% put %} tags and extracts the placeholder values.
setPlaceholdersAttribute ( array $value ) : void Takes an array of placeholder data (key: code, value: content) and renders it as a single string of Twig markup against the "code" attribute.

Method Details

afterFetch() public method

{@inheritDoc}
public afterFetch ( )

getPlaceholdersAttribute() public method

Parses the page placeholder {% put %} tags and extracts the placeholder values.
public getPlaceholdersAttribute ( ) : array
return array Returns an associative array of the placeholder names and values.

setPlaceholdersAttribute() public method

Takes an array of placeholder data (key: code, value: content) and renders it as a single string of Twig markup against the "code" attribute.
public setPlaceholdersAttribute ( array $value ) : void
$value array
return void

Property Details

$purgeable protected_oe property

List of attribute names which are not considered "settings".
protected $purgeable

$wrapCode protected_oe property

Wrap code section in PHP tags.
protected $wrapCode