return $this->_modeHelper->getGalleryChildren($perm, $from, $to, $noauto);
}
-
/**
* Return the count of this gallery's children
*
* @author Michael J. Rubinsky <mrubinsk@horde.org>
* @package Ansel
*/
-
class Ansel_GalleryMode_Normal extends Ansel_GalleryMode_Base
{
/**
return $this->_gallery->data['attribute_images'];
}
-
}
}
/**
- *
+ * Todo
*
* @param integer $galleryId The gallery id
* @param string $slug The gallery slug
*
* @param array $params An array of parameters for this method:
* <pre>
- * images - Array of Ansel_Images to generate JSON for [null]
- * full - Should a full URL be generated? [false]
- * from - Starting image count [0]
- * count - The number of images to include (starting at from) [0]
+ * images - Array of Ansel_Images to generate JSON for [null]
+ * full - Should a full URL be generated? [false]
+ * from - Starting image count [0]
+ * count - The number of images to include (starting at from) [0]
* image_view - The type of ImageGenerator to obtain the src url for. [screen]
* view_links - Should the JSON include links to the Image and/or Gallery View? [false]
* perpage - Number of images per page [from user prefs]
{
global $conf, $prefs;
- $default = array('full' => false,
- 'from' => 0,
- 'count' => 0,
- 'image_view' => 'screen',
- 'view_links' => false,
- 'perpage' => $prefs->getValue('tilesperpage', $conf['thumbnail']['perpage']));
+ $default = array(
+ 'full' => false,
+ 'from' => 0,
+ 'count' => 0,
+ 'image_view' => 'screen',
+ 'view_links' => false,
+ 'perpage' => $prefs->getValue('tilesperpage', $conf['thumbnail']['perpage']),
+ );
$params = array_merge($default, $params);
true);
$params = array('gallery' => $this->gallery->id, 'url' => $galleryurl);
-
Horde::applicationUrl('disclamer.php')->add($params)->setRaw(true)->redirect();
exit;
}
'day' => isset($this->_params['day']) ? $this->_params['day'] : 0));
$galleryurl = Ansel::getUrlFor('view', array_merge(
- array('gallery' => $this->gallery->id,
- 'slug' => empty($params['slug']) ? '' : $params['slug'],
- 'page' => empty($params['page']) ? 0 : $params['page'],
- 'view' => 'Gallery'),
- $date),
- true);
+ array('gallery' => $this->gallery->id,
+ 'slug' => empty($params['slug']) ? '' : $params['slug'],
+ 'page' => empty($params['page']) ? 0 : $params['page'],
+ 'view' => 'Gallery'),
+ $date),
+ true);
$params = array('gallery' => $this->gallery->id, 'url' => $galleryurl);
Horde::applicationUrl('protect.php')->add($params)->setRaw(true)->redirect();
// Since this is a gallery view, the resource is just a reference to the
// gallery. We keep both instance variables becuase both gallery and
// image views are assumed to have a gallery object.
- $this->resource = &$this->gallery;
+ $this->resource = $this->gallery;
/* Do we have an explicit style set? If not, use the gallery's */
if (!empty($this->_params['style'])) {
{
return 'Gallery';
}
-
}
* Constructor
*
* @param Ansel_View_Gallery The view object for this renderer.
- *
- * @return Ansel_View_Renderer_Gallery
*/
- public function __construct($view)
+ public function __construct(Ansel_View_Gallery $view)
{
$this->view = $view;
}
return Horde::endBuffer();
}
-
}