111 parent::__construct();
112 $this->
assert()->isIndex(
'id',$entry_data);
113 $this->
setId($entry_data[
'id']);
114 $this->
assert()->isIndex(
'title',$entry_data);
115 $this->
setTitle($entry_data[
'title']);
116 $this->
assert()->isIndex(
'abstract',$entry_data);
120 if(array_key_exists(
'description',$entry_data)) {
123 if(array_key_exists(
'rules',$entry_data)) {
127 $this->
assert()->isIndex(
'path',$entry_data);
128 $this->
setPath($entry_data[
'path']);
130 if(array_key_exists(
'background',$entry_data)){
133 if(array_key_exists(
'featurewiki',$entry_data)){
136 if(array_key_exists(
'parent',$entry_data)){
139 if(array_key_exists(
'children',$entry_data)){
249 return $this->description->getDescription();
258 $this->
assert()->isTypeOf($description,ComponentEntryDescription::class);
310 return $this->rules->getRules();
322 $this->
assert()->isTypeOf(
$rules,ComponentEntryRules::class);
414 $this->children[] = $child;
438 $this->examples =
array();
442 if(is_file($example_path) && pathinfo($example_path)[
"extension"] ==
"php"){
443 $example_name = str_replace(
".php",
"",$file_name);
444 $this->examples[$example_name] = $example_path;
451 if(!$this->examples_path){
452 $path_componants = str_replace(
"Component",
"examples",$this->
getPath())
453 .
"/".str_replace(
" ",
"", $this->
getTitle());
454 $path_array = array_unique(explode (
"/",$path_componants));
455 $this->examples_path = implode(
"/",$path_array);
466 'id' => $this->
getId(),
Container to hold rules of UI Components.
setBackground($background)
Abstract Entry Part to share some common entry functionality.
setDescription(ComponentEntryDescription $description)
setStatusImplementation($status_implementation)
__construct($entry_data)
ComponentEntry constructor.
$status_list_implementation
setFeatureWikiReferences($feature_wiki_references)
getFeatureWikiReferences()
setStatusEntry($status_entry)
Stores Information of UI Components parsed from YAML, examples and less files.
Create styles array
The data for the language used.
getStatusImplementation()
setLessVariables($less_variables)
Container to hold description of UI Components.
setIsAbstract($is_abstract)