From: Michael J. Rubinsky Date: Wed, 12 Aug 2009 15:35:29 +0000 (-0400) Subject: PHP 5 style X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=137c3dee4bf7a8d481612b2e92272a955cebe44a;p=horde.git PHP 5 style --- diff --git a/ansel/lib/Ansel.php b/ansel/lib/Ansel.php index 751becf2b..6337a5368 100644 --- a/ansel/lib/Ansel.php +++ b/ansel/lib/Ansel.php @@ -1,9 +1,15 @@ + * @author Michael J. Rubinsky + * @package Ansel */ /** Horde_Share */ @@ -12,13 +18,6 @@ require_once 'Horde/Share.php'; /** Need to bring this in explicitly since we extend the object class */ require_once 'Horde/Share/sql_hierarchical.php'; -/** - * Ansel Base Class. - * - * @author Chuck Hagenbuch - * @author Michael J. Rubinsky - * @package Ansel - */ class Ansel { /** @@ -26,7 +25,7 @@ class Ansel * * @return string */ - function initJSVars() + static public function initJSVars() { $code = array('Ansel = {ajax: {}, widgets: {}}'); return $code; @@ -37,7 +36,7 @@ class Ansel * * @return mixed MDB2 object || PEAR_Error */ - function &getDb() + static public function &getDb() { $config = $GLOBALS['conf']['sql']; unset($config['charset']); @@ -66,7 +65,7 @@ class Ansel * * @return VFS object or fatals on error. */ - function &getVFS() + static public function &getVFS() { $v_params = Horde::getVFSConfig('images'); if (is_a($v_params, 'PEAR_Error')) { @@ -80,6 +79,7 @@ class Ansel Horde::fatal(_("You must configure a VFS backend to use Ansel."), __FILE__, __LINE__); } + return $vfs; } @@ -103,7 +103,7 @@ class Ansel * * @return string The