filter('locked', false); } $gallery = $model->find($q); if (!$gallery) { return null; } if (!$draft && !$gallery->isPublic()) { return null; } return $gallery; } function addSelectedImage($image) { if ($this->selected_images === null) { $this->selected_images = array(); } foreach ($this->selected_images as $i) { if ($i->id == $image->id) { return; } } $this->selected_images[] = $image; } function addSelectedGallery($gallery) { if ($this->selected_galleries === null) { $this->selected_galleries = array(); } foreach ($this->selected_galleries as $i) { if ($i->id == $gallery->id) { return; } } $this->selected_galleries[] = $gallery; } function addUnknownImage($id) { if ($this->unknown_images === null) { $this->unknown_images = array(); } if (in_array($id, $this->unknown_images)) { return; } $this->unknown_images[] = $id; } function addUnknownGallery($id) { if ($this->unknown_galleries === null) { $this->unknown_galleries = array(); } if (in_array($id, $this->unknown_galleries)) { return; } $this->unknown_galleries[] = $id; } function getAdminRights() { return array('admin'); } private $_is_admin = null; function isAdmin() { if ($this->_is_admin === null) { $admin = false; foreach ($this->getAdminRights() as $rights) { if ($this->User->grant($rights)) { $admin = true; break; } } $this->_is_admin = $admin; } return $this->_is_admin; } function adminImagesBrowseable() { return true; } function adminGalleriesBrowseable() { if ($this->isAdmin()) { return true; } return false; } function logEvent($action, $object, $id=null, $path=null, $label=null, $url=null) { $this->Context->logEvent('images', $action, $object, $id, $path, $label, $url); } function logCardEvent($action, $card, $no_url=false) { $url = ''; if (!$no_url) { $url = $this->Node->path .'cards/view?id='. $card->id; } $this->logEvent($action, 'card', $card->id, null, $card->from_address .' > '. $card->to_address, $url); } } ?>
PRINT_INFO
PRINT_ADDRESS: http://visitlatgale.com/ru/images/gallery?id=697

» Rugāju novads

Sporta klubs "Rugāji"

2007 Агентство развития Латгальского региона