示例#1
0
 /**
  * @return integer
  */
 public function getDateModified()
 {
     if (!isset($this->loadedFields['dateModified'])) {
         $this->loadProperties();
     }
     return parent::getDateModified();
 }
 /**
  * @param \ride\application\orm\asset\entry\ImageStyleEntry $style 
  * @return null
  */
 public function setStyle(ImageStyleEntry $style = NULL)
 {
     if (!isset($this->loadedFields['style'])) {
         $this->loadProperties();
     }
     $oldValue = null;
     if (array_key_exists('style', $this->loadedValues)) {
         $oldValue = $this->loadedValues['style'];
     }
     if (!$oldValue && !$style || $oldValue && $style && $oldValue->getId() === $style->getId()) {
         $this->style = $style;
         return;
     }
     return parent::setStyle($style);
 }
示例#3
0
 /**
  * @param \ride\application\orm\asset\entry\ImageStyleEntry $style 
  * @return null
  */
 public function setStyle(AliasImageStyleEntry $style = NULL)
 {
     $isClean = false;
     if (!$this->style && !$style || $this->style && $style && $this->style->getId() === $style->getId()) {
         $isClean = true;
     }
     $this->style = $style;
     if (!$isClean && $this->entryState === self::STATE_CLEAN) {
         $this->entryState = self::STATE_DIRTY;
     }
 }