/** * 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->sender && $this->sender->getEntryState() !== self::STATE_CLEAN) { $entryState = self::STATE_DIRTY; } if (!$entryState && $this->cc) { foreach ($this->cc as $value) { if ($value->getEntryState() !== self::STATE_CLEAN) { $entryState = self::STATE_DIRTY; break; } } } if (!$entryState && $this->bcc) { foreach ($this->bcc as $value) { if ($value->getEntryState() !== self::STATE_CLEAN) { $entryState = self::STATE_DIRTY; break; } } } if (!$entryState) { $entryState = self::STATE_CLEAN; } unset($this->checkEntryState); return $entryState; }
/** * 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) { $entryState = self::STATE_CLEAN; } unset($this->checkEntryState); return $entryState; }
/** * 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->transformation && $this->transformation->getEntryState() !== self::STATE_CLEAN) { $entryState = self::STATE_DIRTY; } if (!$entryState) { $entryState = self::STATE_CLEAN; } unset($this->checkEntryState); return $entryState; }
/** * 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->role && $this->role->getEntryState() !== self::STATE_CLEAN) { $entryState = self::STATE_DIRTY; } if (!$entryState && $this->securedPath && $this->securedPath->getEntryState() !== self::STATE_CLEAN) { $entryState = self::STATE_DIRTY; } if (!$entryState) { $entryState = self::STATE_CLEAN; } unset($this->checkEntryState); return $entryState; }
/** * 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->authorLocalized && $this->authorLocalized->getEntryState() !== self::STATE_CLEAN) { $entryState = self::STATE_DIRTY; } if (!$entryState && $this->post && $this->post->getEntryState() !== self::STATE_CLEAN) { $entryState = self::STATE_DIRTY; } if (!$entryState) { $entryState = self::STATE_CLEAN; } unset($this->checkEntryState); return $entryState; }
/** * 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->openingSchedule && $this->openingSchedule->getEntryState() !== self::STATE_CLEAN) { $entryState = self::STATE_DIRTY; } if (!$entryState && $this->holiday && $this->holiday->getEntryState() !== self::STATE_CLEAN) { $entryState = self::STATE_DIRTY; } if (!$entryState) { $entryState = self::STATE_CLEAN; } unset($this->checkEntryState); return $entryState; }
/** * Gets the state of the entry * @return null */ public function getEntryState() { $di = $this->_model->getOrmManager()->getDependencyInjector(); $log = $di->get('ride\\library\\log\\Log'); $log->logWarning('Title', 'description', 'controller'); $log->logError('ERROR message!', 'description', 'controller'); for ($i = 0; $i < 10; $i++) { $log->logDebug('debug ' . $i, 'description', 'controller'); } $entryState = parent::getEntryState(); if ($entryState !== self::STATE_CLEAN || isset($this->checkEntryState)) { return $entryState; } $this->checkEntryState = true; $entryState = null; if (!$entryState && $this->openingHours) { foreach ($this->openingHours as $value) { if ($value->getEntryState() !== self::STATE_CLEAN) { $entryState = self::STATE_DIRTY; break; } } } if (!$entryState && $this->holidays) { foreach ($this->holidays as $value) { if ($value->getEntryState() !== self::STATE_CLEAN) { $entryState = self::STATE_DIRTY; break; } } } if (!$entryState) { $entryState = self::STATE_CLEAN; } unset($this->checkEntryState); return $entryState; }