예제 #1
0
 /**
  * Adds an image to album
  *
  * @param Tx_Yag_Domain_Model_Item $item Item to be added to album
  */
 public function addItem(Tx_Yag_Domain_Model_Item $item)
 {
     $this->album->addItem($item);
     if ($this->album->getThumb() == NULL) {
         $this->album->setThumb($item);
     }
 }
예제 #2
0
파일: Item.php 프로젝트: beyond-agentur/yag
 /**
  * Set this item as album thumb, if no thumbnail for album is existing
  *
  */
 public function setItemAsAlbumThumbIfNotExisting()
 {
     if ($this->album->getThumb() == null) {
         $this->album->setThumb($this);
     }
 }