Exemplo n.º 1
0
 /**
  * @param \ride\application\orm\asset\entry\AssetFolderEntry $entry 
  * @return null
  */
 public function setEntry(AliasAssetFolderEntry $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;
     }
 }
 /**
  * @param \ride\application\orm\asset\entry\AssetFolderEntry $entry 
  * @return null
  */
 public function setEntry(AssetFolderEntry $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);
 }
Exemplo n.º 3
0
 /**
  * @param \ride\application\orm\asset\entry\AssetFolderEntry $folder 
  * @return null
  */
 public function setFolder(AliasAssetFolderEntry $folder = NULL)
 {
     $isClean = false;
     if (!$this->folder && !$folder || $this->folder && $folder && $this->folder->getId() === $folder->getId()) {
         $isClean = true;
     }
     $this->folder = $folder;
     if (!$isClean && $this->entryState === self::STATE_CLEAN) {
         $this->entryState = self::STATE_DIRTY;
     }
 }
Exemplo n.º 4
0
 /**
  * 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();
 }
Exemplo n.º 5
0
 /**
  * @param \ride\application\orm\asset\entry\AssetFolderEntry $folder 
  * @return null
  */
 public function setFolder(AssetFolderEntry $folder = NULL)
 {
     if (!isset($this->loadedFields['folder'])) {
         $this->loadProperties();
     }
     $oldValue = null;
     if (array_key_exists('folder', $this->loadedValues)) {
         $oldValue = $this->loadedValues['folder'];
     }
     if (!$oldValue && !$folder || $oldValue && $folder && $oldValue->getId() === $folder->getId()) {
         $this->folder = $folder;
         return;
     }
     return parent::setFolder($folder);
 }