/** * Load the module settings from the storage */ static function initSettings() { $db = Zend_Registry::get('db'); $stmt = $db->query("SELECT * FROM " . self::PAYPAL_TABLE); $row = $stmt->fetch(); foreach ($row as $key => $value) { /** * unfortunately PHP < 5.1.0 does not allow you set or get * dynamic static variables, We will use eval for now to get around * this problem, since these settings are coming from storage and are * entered by an administrator then there should be no threat of unexpected * code executed within eval * PHP BUG Report: http://bugs.php.net/bug.php?id=30716&edit=1 */ //eval("self::\$$key = '$value';"); self::set($key, $value); } self::$curl = new CurlWrapper(); }