ILIAS
trunk Revision v11.0_alpha-1866-gfa368f7776e
|
Public Member Functions | |
__construct (NoID|int $md_id, DefinitionInterface $definition, DataInterface $data, Element ... $sub_elements) | |
getData () | |
isScaffold () | |
getSuperElement () | |
getSubElements () | |
isMarked () | |
Elements can be marked to be created, updated or deleted. More... | |
getMarker () | |
mark (MarkerFactoryInterface $factory, Action $action, string $data_value='') | |
unmark () | |
Removes markers from this element, and recursively from all sub-elements. More... | |
addScaffoldsToSubElements (ScaffoldProviderInterface $scaffold_provider) | |
Scaffolds are used to mark where elements could potentially be created. More... | |
addScaffoldToSubElements (ScaffoldProviderInterface $scaffold_provider, string $name) | |
If possible, adds a scaffold with the given name to this element's sub-elements, and returns it. More... | |
![]() | |
__construct (int|NoID $md_id, DefinitionInterface $definition, BaseElement ... $sub_elements) | |
__clone () | |
getMDID () | |
getSubElements () | |
getSuperElement () | |
isRoot () | |
getDefinition () | |
Defining properties of the metadata element. More... | |
![]() | |
mark (MarkerFactoryInterface $factory, Action $action, string $data_value='') | |
Leaves a trail of markers from this element up to the root element, or up to the first already marked element. More... | |
Protected Member Functions | |
setMarker (?MarkerInterface $marker) | |
![]() | |
addSubElement (BaseElement $sub_element) | |
orderSubElements (string ... $names_in_order) | |
setSuperElement (?BaseElement $super_element) | |
Private Attributes | |
MarkerInterface | $marker = null |
DataInterface | $data |
Definition at line 34 of file Element.php.
ILIAS\MetaData\Elements\Element::__construct | ( | NoID|int | $md_id, |
DefinitionInterface | $definition, | ||
DataInterface | $data, | ||
Element ... | $sub_elements | ||
) |
Definition at line 39 of file Element.php.
References ILIAS\MetaData\Elements\Element\$data, and ILIAS\GlobalScreen\Provider\__construct().
ILIAS\MetaData\Elements\Element::addScaffoldsToSubElements | ( | ScaffoldProviderInterface | $scaffold_provider | ) |
Scaffolds are used to mark where elements could potentially be created.
Adds all possible scaffolds to this element's sub-elements. Scaffolds are added such that the order of elements as suggested by the structure is preserved.
Implements ILIAS\MetaData\Elements\Scaffolds\ScaffoldableInterface.
Definition at line 128 of file Element.php.
References ILIAS\MetaData\Elements\Base\BaseElement\addSubElement(), ILIAS\MetaData\Manipulator\ScaffoldProvider\ScaffoldProviderInterface\getPossibleSubElementNamesForElementInOrder(), ILIAS\MetaData\Manipulator\ScaffoldProvider\ScaffoldProviderInterface\getScaffoldsForElement(), null, and ILIAS\MetaData\Elements\Base\BaseElement\orderSubElements().
ILIAS\MetaData\Elements\Element::addScaffoldToSubElements | ( | ScaffoldProviderInterface | $scaffold_provider, |
string | $name | ||
) |
If possible, adds a scaffold with the given name to this element's sub-elements, and returns it.
Scaffolds are added such that the order of elements as suggested by the structure is preserved.
Implements ILIAS\MetaData\Elements\Scaffolds\ScaffoldableInterface.
Definition at line 140 of file Element.php.
References ILIAS\MetaData\Elements\Base\BaseElement\addSubElement(), ILIAS\MetaData\Manipulator\ScaffoldProvider\ScaffoldProviderInterface\getPossibleSubElementNamesForElementInOrder(), ILIAS\MetaData\Manipulator\ScaffoldProvider\ScaffoldProviderInterface\getScaffoldsForElement(), null, and ILIAS\MetaData\Elements\Base\BaseElement\orderSubElements().
ILIAS\MetaData\Elements\Element::getData | ( | ) |
Implements ILIAS\MetaData\Elements\ElementInterface.
Definition at line 49 of file Element.php.
References ILIAS\MetaData\Elements\Element\$data.
ILIAS\MetaData\Elements\Element::getMarker | ( | ) |
Implements ILIAS\MetaData\Elements\Markers\MarkableInterface.
Definition at line 90 of file Element.php.
References ILIAS\MetaData\Elements\Element\$marker.
ILIAS\MetaData\Elements\Element::getSubElements | ( | ) |
Implements ILIAS\MetaData\Elements\ElementInterface.
Definition at line 73 of file Element.php.
Referenced by ILIAS\MetaData\Elements\Element\unmark().
ILIAS\MetaData\Elements\Element::getSuperElement | ( | ) |
Implements ILIAS\MetaData\Elements\ElementInterface.
Definition at line 59 of file Element.php.
Referenced by ILIAS\MetaData\Elements\Element\mark().
ILIAS\MetaData\Elements\Element::isMarked | ( | ) |
Elements can be marked to be created, updated or deleted.
Implements ILIAS\MetaData\Elements\Markers\MarkableInterface.
Definition at line 85 of file Element.php.
ILIAS\MetaData\Elements\Element::isScaffold | ( | ) |
Implements ILIAS\MetaData\Elements\ElementInterface.
Definition at line 54 of file Element.php.
References ILIAS\MetaData\Elements\Base\BaseElement\getMDID().
ILIAS\MetaData\Elements\Element::mark | ( | MarkerFactoryInterface | $factory, |
Action | $action, | ||
string | $data_value = '' |
||
) |
Definition at line 95 of file Element.php.
References ILIAS\MetaData\Elements\Element\getSuperElement(), ILIAS\MetaData\Elements\Markers\MarkerFactoryInterface\marker(), and ILIAS\MetaData\Elements\Element\setMarker().
|
protected |
Definition at line 123 of file Element.php.
References ILIAS\MetaData\Elements\Element\$marker.
Referenced by ILIAS\MetaData\Elements\Element\mark(), and ILIAS\MetaData\Elements\Element\unmark().
ILIAS\MetaData\Elements\Element::unmark | ( | ) |
Removes markers from this element, and recursively from all sub-elements.
Implements ILIAS\MetaData\Elements\Markers\MarkableInterface.
Definition at line 115 of file Element.php.
References ILIAS\MetaData\Elements\Element\getSubElements(), null, and ILIAS\MetaData\Elements\Element\setMarker().
|
private |
Definition at line 37 of file Element.php.
Referenced by ILIAS\MetaData\Elements\Element\__construct(), and ILIAS\MetaData\Elements\Element\getData().
|
private |
Definition at line 36 of file Element.php.
Referenced by ILIAS\MetaData\Elements\Element\getMarker(), and ILIAS\MetaData\Elements\Element\setMarker().