29 parent::__construct();
44 $this->id_to_entry_map[$entry->
getId()] = $entry;
53 foreach($entries as $entry){
87 if(array_key_exists ( $id, $this->id_to_entry_map )){
88 return $this->id_to_entry_map[$id];
90 throw $this->f->exception(
Crawler\
Exception\CrawlerException::INVALID_ID,$id);
106 array_push($parents,$parent_id);
118 $titles[$parent_id] = $this->
getEntryById($parent_id)->getTitle();
129 foreach($this->
getEntryById($id)->getChildren() as $child){
142 $titles[$parent_id] = $this->
getEntryById($parent_id)->getTitle();
148 return get_object_vars($this);
157 return current($this->id_to_entry_map) !==
false;
164 return key($this->id_to_entry_map);
171 return current($this->id_to_entry_map);
175 next($this->id_to_entry_map);
178 reset($this->id_to_entry_map);
185 return count($this->id_to_entry_map);
getDescendantsOfEntry($id)
Abstract Entry Part to share some common entry functionality.
getDescendantsOfEntryTitles($id)
Container storing a list of UI Component Entries, can act as Iterator, countable and is serializable...
valid()
Iterator implementations.
getParentsOfEntryTitles($id)
__construct()
ComponentEntries constructor.
jsonSerialize()
jsonSerialize implementation
Stores Information of UI Components parsed from YAML, examples and less files.
Create styles array
The data for the language used.
count()
Countable implementations.
addEntry(ComponentEntry $entry)
Add and entry, first is always root.
addEntries(ComponentEntries $entries)
setRootEntryId($root_entry_id)