Example #1
0
 /**
  * Set a Template inheritors (View) as not up to date.
  *
  * @param View $view
  */
 public function setTemplateInheritorsCssToUpdate(View $view)
 {
     if (!$view instanceof Template) {
         return;
     }
     foreach ($view->getInheritors() as $inheritor) {
         $inheritor->setCssUpToDate(false);
         $this->uow->persist($inheritor);
         $this->setTemplateInheritorsCssToUpdate($inheritor);
     }
 }
Example #2
0
 /**
  * Update a Template inheritors (View) if necessary.
  *
  * @param View $view
  */
 public function updateTemplateInheritorsCss(View $view)
 {
     if (!$view instanceof Template) {
         return;
     }
     foreach ($view->getInheritors() as $inheritor) {
         $this->updateViewCss($inheritor);
         $this->updateTemplateInheritorsCss($inheritor);
     }
 }