Пример #1
0
 /**
  * @param string $handle
  */
 private function fetchHandle($handle)
 {
     foreach ($this->collectors->getIterator() as $collector) {
         $tempStructure = $collector->collect($handle, $this->getArea());
         if ($includes = $tempStructure->get(self::INSTRUCTION_INCLUDE)) {
             foreach ($includes as $include) {
                 $this->fetchHandle($include);
             }
         }
         $this->layoutStructure->merge($tempStructure);
     }
 }
Пример #2
0
 /**
  * Gets the iterator of the view model list.
  *
  * @return PriorityList Sorted list for iteration.
  */
 public function getViewModels()
 {
     return $this->models->getIterator();
 }