PHP Class MetaModels\BackendIntegration\InputScreen\InputScreen

Inheritance: implements MetaModels\BackendIntegration\InputScreen\IInputScreen
Show file Open project: metamodels/core

Protected Properties

Property Type Description
$conditions ContaoCommunityAlliance\DcGeneral\DataDefinition\ConditionChainInterface[] The conditions.
$container MetaModels\IMetaModelsServiceContainer The service container.
$data array The data for the input screen.
$groupSort MetaModels\BackendIntegration\InputScreen\IInputScreenGroupingAndSorting[] Grouping and sorting information.
$legends array The legends contained within the input screen.
$properties array The properties contained within the input screen.
$propertyMap array Simple map from property setting id to property name.
$propertyMap2 array Simple map from property name to property setting id.

Public Methods

Method Description
__construct ( MetaModels\IMetaModelsServiceContainer $container, array $data, array $propertyRows, array $conditions, array $groupSort ) Create a new instance.
getBackendCaption ( ) {@inheritDoc}
getBackendSection ( ) {@inheritDoc}
getConditionsFor ( $name ) {@inheritDoc}
getGroupingAndSorting ( ) {@inheritDoc}
getIcon ( ) {@inheritDoc}
getId ( ) {@inheritDoc}
getLegend ( $name ) {@inheritDoc}
getLegendNames ( ) {@inheritDoc}
getLegends ( ) {@inheritDoc}
getMetaModel ( ) {@inheritDoc}
getPanelLayout ( ) {@inheritDoc}
getParentTable ( ) {@inheritDoc}
getProperties ( ) {@inheritDoc}
getProperty ( $name ) {@inheritDoc}
getPropertyNames ( ) {@inheritDoc}
getRenderMode ( ) {@inheritDoc}
isClosed ( ) {@inheritDoc}
isCreatable ( ) {@inheritDoc}
isDeletable ( ) {@inheritDoc}
isEditable ( ) {@inheritDoc}
isFlat ( ) {@inheritDoc}
isHierarchical ( ) {@inheritDoc}
isParented ( ) {@inheritDoc}
isShowColumns ( ) {@inheritDoc}
isStandalone ( ) {@inheritDoc}

Protected Methods

Method Description
applyLegendConditions ( integer $attributeId, integer $activeLegendId ) : void Apply legend conditions to its attribute.
transformCondition ( array $condition ) : ContaoCommunityAlliance\DcGeneral\DataDefinition\Palette\Condition\Property\PropertyConditionInterface Transform a single condition into a valid condition object.
transformConditions ( array $conditions ) : void Transform the given condition array into real conditions.
transformGroupSort ( array $rows ) : void Transform the grouping and sorting modes.
translateLegend ( array $legend, MetaModels\IMetaModel $metaModel ) : string Transform a legend information into the property legends.
translateProperty ( array $property, MetaModels\IMetaModel $metaModel, string $legend ) : boolean Translate a property.
translateRows ( array $rows ) : void Translate database rows into legend and property information.

Method Details

__construct() public method

Create a new instance.
public __construct ( MetaModels\IMetaModelsServiceContainer $container, array $data, array $propertyRows, array $conditions, array $groupSort )
$container MetaModels\IMetaModelsServiceContainer The service container.
$data array The information about the input screen.
$propertyRows array The information about all contained properties.
$conditions array The property condition information.
$groupSort array The grouping and sorting information.

applyLegendConditions() protected method

Apply legend conditions to its attribute.
protected applyLegendConditions ( integer $attributeId, integer $activeLegendId ) : void
$attributeId integer The attribute setting id.
$activeLegendId integer The legend setting id.
return void

getBackendCaption() public method

{@inheritDoc}
public getBackendCaption ( )

getBackendSection() public method

{@inheritDoc}
public getBackendSection ( )

getConditionsFor() public method

{@inheritDoc}
public getConditionsFor ( $name )

getGroupingAndSorting() public method

{@inheritDoc}

getIcon() public method

{@inheritDoc}
public getIcon ( )

getId() public method

{@inheritDoc}
public getId ( )

getLegend() public method

{@inheritDoc}
public getLegend ( $name )

getLegendNames() public method

{@inheritDoc}
public getLegendNames ( )

getLegends() public method

{@inheritDoc}
public getLegends ( )

getMetaModel() public method

{@inheritDoc}
public getMetaModel ( )

getPanelLayout() public method

{@inheritDoc}
public getPanelLayout ( )

getParentTable() public method

{@inheritDoc}
public getParentTable ( )

getProperties() public method

{@inheritDoc}
public getProperties ( )

getProperty() public method

{@inheritDoc}
public getProperty ( $name )

getPropertyNames() public method

{@inheritDoc}
public getPropertyNames ( )

getRenderMode() public method

{@inheritDoc}
public getRenderMode ( )

isClosed() public method

{@inheritDoc}
public isClosed ( )

isCreatable() public method

{@inheritDoc}
public isCreatable ( )

isDeletable() public method

{@inheritDoc}
public isDeletable ( )

isEditable() public method

{@inheritDoc}
public isEditable ( )

isFlat() public method

{@inheritDoc}
public isFlat ( )

isHierarchical() public method

{@inheritDoc}
public isHierarchical ( )

isParented() public method

{@inheritDoc}
public isParented ( )

isShowColumns() public method

{@inheritDoc}
public isShowColumns ( )

isStandalone() public method

{@inheritDoc}
public isStandalone ( )

transformCondition() protected method

Transform a single condition into a valid condition object.
protected transformCondition ( array $condition ) : ContaoCommunityAlliance\DcGeneral\DataDefinition\Palette\Condition\Property\PropertyConditionInterface
$condition array The condition to transform.
return ContaoCommunityAlliance\DcGeneral\DataDefinition\Palette\Condition\Property\PropertyConditionInterface

transformConditions() protected method

Transform the given condition array into real conditions.
protected transformConditions ( array $conditions ) : void
$conditions array The property condition information.
return void

transformGroupSort() protected method

Transform the grouping and sorting modes.
protected transformGroupSort ( array $rows ) : void
$rows array The rows from the Database to convert.
return void

translateLegend() protected method

Transform a legend information into the property legends.
protected translateLegend ( array $legend, MetaModels\IMetaModel $metaModel ) : string
$legend array The legend to transform.
$metaModel MetaModels\IMetaModel The metamodel the legend belongs to.
return string

translateProperty() protected method

Translate a property.
protected translateProperty ( array $property, MetaModels\IMetaModel $metaModel, string $legend ) : boolean
$property array The property information to transform.
$metaModel MetaModels\IMetaModel The MetaModel the property belongs to.
$legend string The legend the property belongs to.
return boolean

translateRows() protected method

Translate database rows into legend and property information.
protected translateRows ( array $rows ) : void
$rows array The database rows.
return void

Property Details

$conditions protected property

The conditions.
protected ConditionChainInterface[],ContaoCommunityAlliance\DcGeneral\DataDefinition $conditions
return ContaoCommunityAlliance\DcGeneral\DataDefinition\ConditionChainInterface[]

$container protected property

The service container.
protected IMetaModelsServiceContainer,MetaModels $container
return MetaModels\IMetaModelsServiceContainer

$data protected property

The data for the input screen.
protected array $data
return array

$groupSort protected property

Grouping and sorting information.
protected IInputScreenGroupingAndSorting[],MetaModels\BackendIntegration\InputScreen $groupSort
return MetaModels\BackendIntegration\InputScreen\IInputScreenGroupingAndSorting[]

$legends protected property

The legends contained within the input screen.
protected array $legends
return array

$properties protected property

The properties contained within the input screen.
protected array $properties
return array

$propertyMap protected property

Simple map from property setting id to property name.
protected array $propertyMap
return array

$propertyMap2 protected property

Simple map from property name to property setting id.
protected array $propertyMap2
return array