Esempio 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->entry && $this->entry->getEntryState() !== self::STATE_CLEAN) {
         $entryState = self::STATE_DIRTY;
     }
     if (!$entryState) {
         $entryState = self::STATE_CLEAN;
     }
     unset($this->checkEntryState);
     return $entryState;
 }