Ip\Internal\Design\Helper::instance PHP Method

instance() public static method

public static instance ( ) : Helper
return Helper
    public static function instance()
    {
        return new Helper();
    }

Usage Example

Beispiel #1
0
 protected function parseThemeJson($file)
 {
     if (!file_exists($file) || !is_file($file)) {
         return array();
     }
     $configJson = file_get_contents($file);
     $config = Helper::instance()->json_clean_decode($configJson, true);
     if ($config) {
         return $config;
     } else {
         return array();
     }
 }