예제 #1
0
파일: Settings.php 프로젝트: msigley/shopp
 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();
}