Example #1
0
 public function getPhotos()
 {
     if (!isset($this->_photos)) {
         $this->_photos = Zwe_Model_Photo::getPhotosByAlbum($this->IDAlbum);
     }
     return $this->_photos;
 }
Example #2
0
 protected function moveImage($Image)
 {
     if (is_array($Image)) {
         foreach ($Image as $I) {
             $this->moveImage($I);
         }
     } else {
         $FileName = substr($Image, strrpos($Image, '/') + 1);
         $Extension = substr($FileName, strrpos($FileName, '.') + 1);
         $Name = substr($FileName, 0, strrpos($FileName, '.'));
         $IDPhoto = Zwe_Model_Photo::addPhoto($this->view->uploadForm->getValue('album'), $Name, $Extension);
     }
 }