*
* @param string The generated URL
*/
- static public getUrlFor($controller, $data, $full = false, $append_session = 0)
+ static public function getUrlFor($controller, $data, $full = false, $append_session = 0)
{
global $prefs;
*
* @return string The image path.
*/
- static public getImageUrl($imageId, $view = 'screen', $full = false,
+ static public function getImageUrl($imageId, $view = 'screen', $full = false,
$style = null)
{
global $conf, $ansel_storage;
*
* @return Horde_Image object | PEAR_Error
*/
- static public getImageObject($params = array())
+ static public function getImageObject($params = array())
{
global $conf;
$context = array('tmpdir' => Horde::getTempDir());
*
* @return array The image data of the file as an array or PEAR_Error
*/
- static public getImageFromFile($file, $override = array())
+ static public function getImageFromFile($file, $override = array())
{
if (!file_exists($file)) {
return PEAR::raiseError(sprintf(_("The file \"%s\" doesn't exist."),
*
* @return boolean True if the function is available.
*/
- static public isAvailable($feature)
+ static public function isAvailable($feature)
{
static $capabilities;
/**
* Build Ansel's list of menu items.
*/
- static public getMenu()
+ static public function getMenu()
{
global $conf, $registry;
* Generate a list of breadcrumbs showing where we are in the gallery
* tree.
*/
- static public getBreadCrumbs($separator = ' » ', $gallery = null)
+ static public function getBreadCrumbs($separator = ' » ', $gallery = null)
{
global $prefs, $ansel_storage;
*
* @return string The HTML for the <select> element.
*/
- static public getStyleSelect($element_name, $selected = '')
+ static public function getStyleSelect($element_name, $selected = '')
{
$styles = Horde::loadConfiguration('styles.php', 'styles', 'ansel');
/**
* Get an array of all currently viewable styles.
*/
- static public getAvailableStyles()
+ static public function getAvailableStyles()
{
/* Brings in the $styles array in this scope only */
$styles = Horde::loadConfiguration('styles.php', 'styles', 'ansel');
* @return array The definition of the requested style if it's available
* otherwise, the ansel_default style is returned.
*/
- static public getStyleDefinition($style)
+ static public function getStyleDefinition($style)
{
if (isset($GLOBALS['ansel_styles'][$style])) {
$style_def = $GLOBALS['ansel_styles'][$style];
* to $themesfs
* @param boolean $link Immediately output the CSS link
*/
- static public attachStylesheet($stylesheet, $link = false)
+ static public function attachStylesheet($stylesheet, $link = false)
{
$GLOBALS['ansel_stylesheets'][] = $stylesheet;
if ($link) {
*
* @param boolean $custom_only Don't include ansel's base CSS file
*/
- static public stylesheetLinks($custom_only = false)
+ static public function stylesheetLinks($custom_only = false)
{
/* Custom CSS */
$themesuri = $GLOBALS['registry']->get('themesuri', 'ansel');
*
* @return A trimmed down (if necessary) date parts array.
*/
- static public getDateParameter($date = array())
+ static public function getDateParameter($date = array())
{
if (!count($date)) {
$date = array(
* @param array $gallery
* @param array $images
*/
- static public downloadImagesAsZip($gallery = null, $images = array())
+ static public function downloadImagesAsZip($gallery = null, $images = array())
{
if (empty($GLOBALS['conf']['gallery']['downloadzip'])) {
*
* @return string The javascript
*/
- static public embedCode($options)
+ static public function embedCode($options)
{
if (empty($options['container'])) {
$domid = md5(uniqid());