PHP Класс fieldSubsectionmanager, subsectionmanager

Наследование: extends Field
Показать файл Открыть проект Примеры использования класса

Открытые свойства

Свойство Тип Описание
$sortOrder

Открытые методы

Метод Описание
__construct ( )
allowDatasourceOutputGrouping ( )
allowDatasourceParamOutput ( )
appendFormattedElement ( &$wrapper, $data, $encode = false, $mode = null ) Subsection entries are pre-processed in the extension driver and stored in extension_subsectionmanager::$storage with other helpful data. If you are building custom data sources, please use extension_subsectionmanager::storeSubsectionFields() to store subsection fields and extension_subsectionmanager::preloadSubsectionEntries() to preload subsection entries.
buildDSRetrievalSQL ( $data, &$joins, &$where, $andOperation = false )
buildDSRetrivalSQL ( $data, &$joins, &$where, $andOperation = false ) Keep compatibility with Symphony pre 2.2.1 for a little longer.
canFilter ( )
checkFields ( &$errors, $checkForDuplicates = true )
checkPostFieldData ( $data, &$message, $entry_id = null )
commit ( )
createSectionAssociation ( $parent_section_id = null, $child_section_id = null, $child_field_id = null, $parent_field_id = null, $show_association = false )
createTable ( )
displayDatasourceFilterPanel ( &$wrapper, $data = null, $errors = null, $fieldnamePrefix = null, $fieldnamePostfix = null )
displayPublishPanel ( &$wrapper, $data = null, $flagWithError = null, $fieldnamePrefix = null, $fieldnamePostfix = null, $entry_id = null ) If you need to fetch the pure data this field returns, please use getDefaultPublishContent()
displaySettingsPanel ( &$wrapper, $errors = null )
fetchAssociatedEntryCount ( $value )
fetchAssociatedEntrySearchValue ( $data, $field_id = null, $parent_entry_id = null )
fetchIncludableElements ( $break = false )
getDefaultPublishContent ( &$wrapper, $data = null ) Get default publish content
getExampleFormMarkup ( )
getParameterPoolValue ( $data )
groupRecords ( $records ) *------------------------------------------------------------------------- Grouping: -------------------------------------------------------------------------
isSortable ( )
prepareImportValue ( mixed $value, integer $entry_id = null ) : array Used by the XML Importer when importing
prepareTableValue ( $data, XMLElement $link = null )
processRawFieldData ( $data, &$status, &$message = null, $simulate = false, $entry_id = null )
requiresSQLGrouping ( ) Test whether this field requires grouping. If this function returns true SQL statements generated in the EntryManager will include the DISTINCT keyword to only return a single row for an entry regardless of how many 'matches' it might have. This default implementation returns false.

Приватные методы

Метод Описание
__groupContentGenerator ( $name, $title, $sections, $errors ) Create caption and droptext settings

Описание методов

__construct() публичный Метод

См. также: http://symphony-cms.com/learn/api/2.3/toolkit/field/#__construct
public __construct ( )

allowDatasourceOutputGrouping() публичный Метод

См. также: http://symphony-cms.com/learn/api/2.3/toolkit/field/#allowDatasourceOutputGrouping

allowDatasourceParamOutput() публичный Метод

См. также: http://symphony-cms.com/learn/api/2.3/toolkit/field/#allowDatasourceParamOutput

appendFormattedElement() публичный Метод

Subsection entries are pre-processed in the extension driver and stored in extension_subsectionmanager::$storage with other helpful data. If you are building custom data sources, please use extension_subsectionmanager::storeSubsectionFields() to store subsection fields and extension_subsectionmanager::preloadSubsectionEntries() to preload subsection entries.
См. также: http://symphony-cms.com/learn/api/2.3/toolkit/field/#appendFormattedElement
public appendFormattedElement ( &$wrapper, $data, $encode = false, $mode = null )

buildDSRetrievalSQL() публичный Метод

См. также: http://symphony-cms.com/learn/api/2.3/toolkit/field/#buildDSRetrievalSQL
public buildDSRetrievalSQL ( $data, &$joins, &$where, $andOperation = false )

buildDSRetrivalSQL() публичный Метод

Keep compatibility with Symphony pre 2.2.1 for a little longer.
См. также: http://symphony-cms.com/learn/api/2.2.1/toolkit/field/#buildDSRetrivalSQL
public buildDSRetrivalSQL ( $data, &$joins, &$where, $andOperation = false )

canFilter() публичный Метод

См. также: http://symphony-cms.com/learn/api/2.3/toolkit/field/#canFilter
public canFilter ( )

checkFields() публичный Метод

См. также: http://symphony-cms.com/learn/api/2.3/toolkit/field/#checkFields
public checkFields ( &$errors, $checkForDuplicates = true )

checkPostFieldData() публичный Метод

См. также: http://symphony-cms.com/learn/api/2.3/toolkit/field/#checkPostFieldData
public checkPostFieldData ( $data, &$message, $entry_id = null )

commit() публичный Метод

См. также: http://symphony-cms.com/learn/api/2.3/toolkit/field/#commit
public commit ( )

createSectionAssociation() публичный Метод

См. также: http://symphony-cms.com/learn/api/2.3/toolkit/field/#createSectionAssociation
public createSectionAssociation ( $parent_section_id = null, $child_section_id = null, $child_field_id = null, $parent_field_id = null, $show_association = false )

createTable() публичный Метод

См. также: http://symphony-cms.com/learn/api/2.3/toolkit/field/#createTable
public createTable ( )

displayDatasourceFilterPanel() публичный Метод

См. также: http://symphony-cms.com/learn/api/2.3/toolkit/field/#displayDatasourceFilterPanel
public displayDatasourceFilterPanel ( &$wrapper, $data = null, $errors = null, $fieldnamePrefix = null, $fieldnamePostfix = null )

displayPublishPanel() публичный Метод

If you need to fetch the pure data this field returns, please use getDefaultPublishContent()
См. также: http://symphony-cms.com/learn/api/2.3/toolkit/field/#displayPublishPanel
public displayPublishPanel ( &$wrapper, $data = null, $flagWithError = null, $fieldnamePrefix = null, $fieldnamePostfix = null, $entry_id = null )

displaySettingsPanel() публичный Метод

См. также: http://symphony-cms.com/learn/api/2.3/toolkit/field/#displaySettingsPanel
public displaySettingsPanel ( &$wrapper, $errors = null )

fetchAssociatedEntryCount() публичный Метод

См. также: http://symphony-cms.com/learn/api/2.3/toolkit/field/#fetchAssociatedEntryCount
public fetchAssociatedEntryCount ( $value )

fetchAssociatedEntrySearchValue() публичный Метод

См. также: http://symphony-cms.com/learn/api/2.3/toolkit/field/#fetchAssociatedEntrySearchValue `$data` would contain the related entries, but is usually `null` when called from the frontend (when the field is not included in the DS, and only then "associated entry count" makes sense)
public fetchAssociatedEntrySearchValue ( $data, $field_id = null, $parent_entry_id = null )

fetchIncludableElements() публичный Метод

См. также: http://symphony-cms.com/learn/api/2.3/toolkit/field/#fetchIncludableElements
public fetchIncludableElements ( $break = false )

getDefaultPublishContent() публичный Метод

Get default publish content
public getDefaultPublishContent ( &$wrapper, $data = null )

getExampleFormMarkup() публичный Метод

См. также: http://symphony-cms.com/learn/api/2.3/toolkit/field/#getExampleFormMarkup

getParameterPoolValue() публичный Метод

См. также: http://symphony-cms.com/learn/api/2.3/toolkit/field/#getParameterPoolValue
public getParameterPoolValue ( $data )

groupRecords() публичный Метод

*------------------------------------------------------------------------- Grouping: -------------------------------------------------------------------------
public groupRecords ( $records )

isSortable() публичный Метод

См. также: http://symphony-cms.com/learn/api/2.3/toolkit/field/#isSortable
public isSortable ( )

prepareImportValue() публичный Метод

Used by the XML Importer when importing
public prepareImportValue ( mixed $value, integer $entry_id = null ) : array
$value mixed
$entry_id integer
Результат array

prepareTableValue() публичный Метод

См. также: http://symphony-cms.com/learn/api/2.3/toolkit/field/#prepareTableValue
public prepareTableValue ( $data, XMLElement $link = null )
$link XMLElement

processRawFieldData() публичный Метод

См. также: http://symphony-cms.com/learn/api/2.3/toolkit/field/#processRawFieldData
public processRawFieldData ( $data, &$status, &$message = null, $simulate = false, $entry_id = null )

requiresSQLGrouping() публичный Метод

Test whether this field requires grouping. If this function returns true SQL statements generated in the EntryManager will include the DISTINCT keyword to only return a single row for an entry regardless of how many 'matches' it might have. This default implementation returns false.
public requiresSQLGrouping ( )

Описание свойств

$sortOrder статическое публичное свойство

static public $sortOrder