mirror of
https://github.com/smarty-php/smarty.git
synced 2025-08-06 11:24:27 +02:00
(phpdoc indentation)
This commit is contained in:
@@ -1,55 +1,55 @@
|
|||||||
<?php
|
<?php
|
||||||
/**
|
/**
|
||||||
* Project: Smarty: the PHP compiling template engine
|
* Project: Smarty: the PHP compiling template engine
|
||||||
* File: Smarty.class.php
|
* File: Smarty.class.php
|
||||||
* SVN: $Id$
|
* SVN: $Id$
|
||||||
*
|
*
|
||||||
* This library is free software; you can redistribute it and/or
|
* This library is free software; you can redistribute it and/or
|
||||||
* modify it under the terms of the GNU Lesser General Public
|
* modify it under the terms of the GNU Lesser General Public
|
||||||
* License as published by the Free Software Foundation; either
|
* License as published by the Free Software Foundation; either
|
||||||
* version 2.1 of the License, or (at your option) any later version.
|
* 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,
|
* This library is distributed in the hope that it will be useful,
|
||||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||||
* Lesser General Public License for more details.
|
* Lesser General Public License for more details.
|
||||||
*
|
*
|
||||||
* You should have received a copy of the GNU Lesser General Public
|
* You should have received a copy of the GNU Lesser General Public
|
||||||
* License along with this library; if not, write to the Free Software
|
* License along with this library; if not, write to the Free Software
|
||||||
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
||||||
*
|
*
|
||||||
* For questions, help, comments, discussion, etc., please join the
|
* For questions, help, comments, discussion, etc., please join the
|
||||||
* Smarty mailing list. Send a blank e-mail to
|
* Smarty mailing list. Send a blank e-mail to
|
||||||
* smarty-discussion-subscribe@googlegroups.com
|
* smarty-discussion-subscribe@googlegroups.com
|
||||||
*
|
*
|
||||||
* @link http://www.smarty.net/
|
* @link http://www.smarty.net/
|
||||||
* @copyright 2008 New Digital Group, Inc.
|
* @copyright 2008 New Digital Group, Inc.
|
||||||
* @author Monte Ohrt <monte at ohrt dot com>
|
* @author Monte Ohrt <monte at ohrt dot com>
|
||||||
* @author Uwe Tews
|
* @author Uwe Tews
|
||||||
* @author Rodney Rehm
|
* @author Rodney Rehm
|
||||||
* @package Smarty
|
* @package Smarty
|
||||||
* @version 3.1-DEV
|
* @version 3.1-DEV
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* define shorthand directory separator constant
|
* define shorthand directory separator constant
|
||||||
*/
|
*/
|
||||||
if (!defined('DS')) {
|
if (!defined('DS')) {
|
||||||
define('DS', DIRECTORY_SEPARATOR);
|
define('DS', DIRECTORY_SEPARATOR);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* set SMARTY_DIR to absolute path to Smarty library files.
|
* set SMARTY_DIR to absolute path to Smarty library files.
|
||||||
* Sets SMARTY_DIR only if user application has not already defined it.
|
* Sets SMARTY_DIR only if user application has not already defined it.
|
||||||
*/
|
*/
|
||||||
if (!defined('SMARTY_DIR')) {
|
if (!defined('SMARTY_DIR')) {
|
||||||
define('SMARTY_DIR', dirname(__FILE__) . DS);
|
define('SMARTY_DIR', dirname(__FILE__) . DS);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* set SMARTY_SYSPLUGINS_DIR to absolute path to Smarty internal plugins.
|
* set SMARTY_SYSPLUGINS_DIR to absolute path to Smarty internal plugins.
|
||||||
* Sets SMARTY_SYSPLUGINS_DIR only if user application has not already defined it.
|
* Sets SMARTY_SYSPLUGINS_DIR only if user application has not already defined it.
|
||||||
*/
|
*/
|
||||||
if (!defined('SMARTY_SYSPLUGINS_DIR')) {
|
if (!defined('SMARTY_SYSPLUGINS_DIR')) {
|
||||||
define('SMARTY_SYSPLUGINS_DIR', SMARTY_DIR . 'sysplugins' . DS);
|
define('SMARTY_SYSPLUGINS_DIR', SMARTY_DIR . 'sysplugins' . DS);
|
||||||
}
|
}
|
||||||
@@ -68,8 +68,8 @@ if (!defined('SMARTY_RESOURCE_DATE_FORMAT')) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* register the class autoloader
|
* register the class autoloader
|
||||||
*/
|
*/
|
||||||
if (!defined('SMARTY_SPL_AUTOLOAD')) {
|
if (!defined('SMARTY_SPL_AUTOLOAD')) {
|
||||||
define('SMARTY_SPL_AUTOLOAD', 0);
|
define('SMARTY_SPL_AUTOLOAD', 0);
|
||||||
}
|
}
|
||||||
@@ -84,8 +84,8 @@ if (SMARTY_SPL_AUTOLOAD && set_include_path(get_include_path() . PATH_SEPARATOR
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Load always needed external class files
|
* Load always needed external class files
|
||||||
*/
|
*/
|
||||||
include_once SMARTY_SYSPLUGINS_DIR.'smarty_internal_data.php';
|
include_once SMARTY_SYSPLUGINS_DIR.'smarty_internal_data.php';
|
||||||
include_once SMARTY_SYSPLUGINS_DIR.'smarty_internal_templatebase.php';
|
include_once SMARTY_SYSPLUGINS_DIR.'smarty_internal_templatebase.php';
|
||||||
include_once SMARTY_SYSPLUGINS_DIR.'smarty_internal_template.php';
|
include_once SMARTY_SYSPLUGINS_DIR.'smarty_internal_template.php';
|
||||||
@@ -95,9 +95,9 @@ include_once SMARTY_SYSPLUGINS_DIR.'smarty_cacheresource.php';
|
|||||||
include_once SMARTY_SYSPLUGINS_DIR.'smarty_internal_cacheresource_file.php';
|
include_once SMARTY_SYSPLUGINS_DIR.'smarty_internal_cacheresource_file.php';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* This is the main Smarty class
|
* This is the main Smarty class
|
||||||
* @package Smarty
|
* @package Smarty
|
||||||
*/
|
*/
|
||||||
class Smarty extends Smarty_Internal_TemplateBase {
|
class Smarty extends Smarty_Internal_TemplateBase {
|
||||||
|
|
||||||
/**#@+
|
/**#@+
|
||||||
@@ -1433,22 +1433,22 @@ class Smarty extends Smarty_Internal_TemplateBase {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Smarty exception class
|
* Smarty exception class
|
||||||
* @package Smarty
|
* @package Smarty
|
||||||
*/
|
*/
|
||||||
class SmartyException extends Exception {
|
class SmartyException extends Exception {
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Smarty compiler exception class
|
* Smarty compiler exception class
|
||||||
* @package Smarty
|
* @package Smarty
|
||||||
*/
|
*/
|
||||||
class SmartyCompilerException extends SmartyException {
|
class SmartyCompilerException extends SmartyException {
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Autoloader
|
* Autoloader
|
||||||
*/
|
*/
|
||||||
function smartyAutoload($class)
|
function smartyAutoload($class)
|
||||||
{
|
{
|
||||||
$_class = strtolower($class);
|
$_class = strtolower($class);
|
||||||
|
Reference in New Issue
Block a user