Ejemplo n.º 1
0
 function getTestFI()
 {
     $fi = new FrontInclude();
     $fi->setHandle('popup');
     $fi->setSrc('/src/popup.css');
     return $fi;
 }
Ejemplo n.º 2
0
 public function add($location, FrontInclude $include)
 {
     $dependency = $include->getDependency();
     $registered = $this->getRegisteredIncludes();
     foreach ($dependency as $handle) {
         if (!in_array($handle, $this->queued[$location]) && isset($registered[$handle])) {
             $this->queue[$location][] = $registered[$handle];
             $this->queued[$location][] = $handle;
         }
     }
     $this->queued[$location][] = $include->getHandle();
     $this->queue[$location][] = $include;
 }