PHP Class extension_subsectionmanager, subsectionmanager

Inheritance: extends Extension
显示文件 Open project: symphonists/subsectionmanager Class Usage Examples

Public Properties

Property Type Description
$storage Storage for subsection entries

Public Methods

Method Description
__appendAssets ( object $context ) Append assets to the page head
__clearSubsectionCache ( ) Clear cache.
__construct ( array $args )
__prepareSubsection ( &$context ) Fetch all subsection elements included in a data source and join modes into a single call to appendFormattedElement().
getSubscribedDelegates ( )
install ( )
preloadSubsectionEntries ( Array $parents ) Preload subsection entries
storeSubsectionFields ( $context, integer $field_id, integer $subfield_id, string $mode ) Store subsection fields
uninstall ( )
update ( $previousVersion )

Private Methods

Method Description
__fetchFields ( $section, $context, $subsection, $field, $mode = '' )
__parseSubsectionFields ( $fields, $context, DataSource $datasource = null ) Parse data source and extract subsection fields

Method Details

__appendAssets() public method

Append assets to the page head
public __appendAssets ( object $context )
$context object

__clearSubsectionCache() public method

Clear cache.
See also: http://symphony-cms.com/learn/api/2.3/delegates/#DatasourcePreDelete

__construct() public method

See also: http://symphony-cms.com/learn/api/2.3/toolkit/extension/#__construct
public __construct ( array $args )
$args array

__prepareSubsection() public method

Preprocess all subsection entry for performance reasons.
See also: http://symphony-cms.com/learn/api/2.3/delegates/#DataSourceEntriesBuilt
public __prepareSubsection ( &$context )

getSubscribedDelegates() public method

See also: http://symphony-cms.com/learn/api/2.3/toolkit/extension/#getSubscribedDelegates

install() public method

See also: http://symphony-cms.com/learn/api/2.3/toolkit/extension/#install
public install ( )

preloadSubsectionEntries() public static method

Preload subsection entries
public static preloadSubsectionEntries ( Array $parents )
$parents Array Array of entry objects

storeSubsectionFields() public static method

Store subsection fields
public static storeSubsectionFields ( $context, integer $field_id, integer $subfield_id, string $mode )
$field_id integer The subsection field id
$subfield_id integer The subsection field subfield id
$mode string Subfield mode, e. g. 'formatted' or 'unformatted'

uninstall() public method

See also: http://symphony-cms.com/learn/api/2.3/toolkit/extension/#uninstall
public uninstall ( )

update() public method

See also: http://symphony-cms.com/learn/api/2.3/toolkit/extension/#update
public update ( $previousVersion )

Property Details

$storage public_oe static_oe property

Storage for subsection entries
public static $storage