ThinkPHP/Library/Vendor/SmartySmarty.class.php

Project: Smarty: the PHP compiling template engine File: Smarty.class.php SVN: $Id: Smarty.class.php 2504 2011-12-28 07:35:29Z liu21st $

This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version.

This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.

You should have received a copy of the GNU Lesser General Public License along with this library; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA

For questions, help, comments, discussion, etc., please join the Smarty mailing list. Send a blank e-mail to smarty-discussion-subscribe@googlegroups.com

Classes

Smarty This is the main Smarty class
SmartyException Smarty exception class
SmartyCompilerException Smarty compiler exception class

Constants

DS

DS = DIRECTORY_SEPARATOR

SMARTY_DIR

SMARTY_DIR = dirname(__FILE__) . DS

SMARTY_SYSPLUGINS_DIR

SMARTY_SYSPLUGINS_DIR = SMARTY_DIR . 'sysplugins' . DS

SMARTY_PLUGINS_DIR

SMARTY_PLUGINS_DIR = SMARTY_DIR . 'plugins' . DS

SMARTY_MBSTRING

SMARTY_MBSTRING = function_exists('mb_strlen')

SMARTY_RESOURCE_CHAR_SET

SMARTY_RESOURCE_CHAR_SET = SMARTY_MBSTRING ? 'UTF-8' : 'ISO-8859-1'

SMARTY_RESOURCE_DATE_FORMAT

SMARTY_RESOURCE_DATE_FORMAT = '%b %e, %Y'

SMARTY_SPL_AUTOLOAD

SMARTY_SPL_AUTOLOAD = 0

Functions

smartyAutoload()

smartyAutoload(  $class) 

Autoloader

Parameters

$class