Пример #1
0
 public static function object()
 {
     if (!self::$object instanceof self) {
         self::$object = new self();
     }
     return self::$object;
 }
Пример #2
0
/**
 * Helper to access the Shopp settings registry
 *
 * @api
 * @since 1.1
 *
 * @return ShoppSettings The ShoppSettings object
 **/
function ShoppSettings()
{
    return ShoppSettings::object();
}