/** * @param \ride\web\mail\orm\entry\MailEntry $mail * @return null */ public function setMail(AliasMailEntry $mail = NULL) { $isClean = false; if (!$this->mail && !$mail || $this->mail && $mail && $this->mail->getId() === $mail->getId()) { $isClean = true; } $this->mail = $mail; if (!$isClean && $this->entryState === self::STATE_CLEAN) { $this->entryState = self::STATE_DIRTY; } }
/** * @param \ride\web\mail\orm\entry\MailEntry $entry * @return null */ public function setEntry(AliasMailEntry $entry = NULL) { $isClean = false; if (!$this->entry && !$entry || $this->entry && $entry && $this->entry->getId() === $entry->getId()) { $isClean = true; } $this->entry = $entry; if (!$isClean && $this->entryState === self::STATE_CLEAN) { $this->entryState = self::STATE_DIRTY; } }
/** * Gets whether the entry is localized in the requested locale * @return boolean Flag to see if the entry is localized in the requested locale */ public function isLocalized() { if (!isset($this->loadedFields['locale'])) { $this->loadProperties(); } return parent::isLocalized(); }
/** * @param \ride\web\mail\orm\entry\MailEntry $mail * @return null */ public function setMail(MailEntry $mail = NULL) { if (!isset($this->loadedFields['mail'])) { $this->loadProperties(); } $oldValue = null; if (array_key_exists('mail', $this->loadedValues)) { $oldValue = $this->loadedValues['mail']; } if (!$oldValue && !$mail || $oldValue && $mail && $oldValue->getId() === $mail->getId()) { $this->mail = $mail; return; } return parent::setMail($mail); }
/** * @param \ride\web\mail\orm\entry\MailEntry $entry * @return null */ public function setEntry(MailEntry $entry = NULL) { if (!isset($this->loadedFields['entry'])) { $this->loadProperties(); } $oldValue = null; if (array_key_exists('entry', $this->loadedValues)) { $oldValue = $this->loadedValues['entry']; } if (!$oldValue && !$entry || $oldValue && $entry && $oldValue->getId() === $entry->getId()) { $this->entry = $entry; return; } return parent::setEntry($entry); }