public static function get_instance() { $global = null; $globals = EZP_CS_JSON_Entity_Base::get_by_type(self::TYPE); if ($globals != null) { $global = $globals[0]; } return $global; }