Exemplo n.º 1
0
 function __construct($id_photo, $name, $path, $path2big, $date, $comments, $scope, $descr, $tag, $id_album, $author, $id_author, $id_group, $eddel = 'allow', $album = '', $main_page = null)
 {
     if ($eddel == 'allow') {
         // разрешить отображение интерфейса удаления/редактирования
         parent::__construct($path, $path2big, $date, $author, $id_author, false, $main_page);
     } elseif ($eddel = 'forbid') {
         parent::__construct($path, $path2big, $date, $author, $id_author, true, $main_page);
     }
     $this->comments = $comments;
     $this->scope = $scope;
     $this->album = $album;
     $this->id_photo = $id_photo;
     $tag = $this->photo_tags($id_photo);
     $this->__ = sh_medium_photo($id_photo, $name, $path, $path2big, $date, $comments, $scope, $descr, $tag[0], $id_album, $eddel, $album, $author, $id_author, $main_page, $id_group);
 }