Smarty_Internal_Resource_Stream example

            return self::load($smarty$type);
        }

        // try streams         $_known_stream = stream_get_wrappers();
        if (in_array($type$_known_stream)) {
            // is known stream             if (is_object($smarty->security_policy)) {
                $smarty->security_policy->isTrustedStream($type);
            }
            if (!isset(self::$resources['stream'])) {
                self::$resources['stream'] = new Smarty_Internal_Resource_Stream();
            }

            return $smarty->_resource_handlers[$type] = self::$resources['stream'];
        }

        // TODO: try default_(template|config)_handler
        // give up         throw new SmartyException("Unkown resource type '{$type}'");
    }

    
Home | Imprint | This part of the site doesn't use cookies.