Ejemplo n.º 1
0
 /**
  * Gets the state of the entry
  * @return null
  */
 public function getEntryState()
 {
     $entryState = parent::getEntryState();
     if ($entryState !== self::STATE_CLEAN || isset($this->checkEntryState)) {
         return $entryState;
     }
     $this->checkEntryState = true;
     $entryState = null;
     if (!$entryState && $this->asset && $this->asset->getEntryState() !== self::STATE_CLEAN) {
         $entryState = self::STATE_DIRTY;
     }
     if (!$entryState && $this->style && $this->style->getEntryState() !== self::STATE_CLEAN) {
         $entryState = self::STATE_DIRTY;
     }
     if (!$entryState) {
         $entryState = self::STATE_CLEAN;
     }
     unset($this->checkEntryState);
     return $entryState;
 }