\

Namespaces

application
Composer
ticky

Classes

AlipayDataDataserviceBillDownloadurlQueryRequest ALIPAY API: alipay.data.dataservice.bill.downloadurl.query request
AlipayTradeCloseContentBuilder
AlipayTradeCloseRequest ALIPAY API: alipay.trade.close request
AlipayTradeFastpayRefundQueryRequest ALIPAY API: alipay.trade.fastpay.refund.query request
AlipayTradePagePayContentBuilder
AlipayTradePagePayRequest ALIPAY API: alipay.trade.page.pay request
AlipayTradeQueryRequest ALIPAY API: alipay.trade.query request
AlipayTradeRefundContentBuilder
AlipayTradeRefundRequest ALIPAY API: alipay.trade.refund request
AlipayTradeService
AopClient
ComposerAutoloaderInit30f134d1f77d6850c0259a142c1864c4
content_form
form
notify 支付宝异步支付回调处理类
pagepay 支付宝电脑网站支付(扫码支付或账号支付)
qqapi qqapi.class.php QQ接口Api,用于以QQ登录网站
refund 支付宝统一收单交易退款接口
returnpay 支付宝跳转同步通知
SignData Created by PhpStorm.
Smarty This is the main Smarty class
Smarty_Autoloader Smarty Autoloader
Smarty_CacheResource Cache Handler API
Smarty_CacheResource_Apc APC CacheResource CacheResource Implementation based on the KeyValueStore API to use memcache as the storage resource for Smarty's output caching.
Smarty_CacheResource_Custom Cache Handler API
Smarty_CacheResource_KeyValueStore Smarty Cache Handler Base for Key/Value Storage Implementations This class implements the functionality required to use simple key/value stores for hierarchical cache groups. key/value stores like memcache or APC do not support wildcards in keys, therefore a cache group cannot be cleared like "a|*" - which is no problem to filesystem and RDBMS implementations.
Smarty_CacheResource_Memcache Memcache CacheResource CacheResource Implementation based on the KeyValueStore API to use memcache as the storage resource for Smarty's output caching.
Smarty_CacheResource_Mysql MySQL CacheResource CacheResource Implementation based on the Custom API to use MySQL as the storage resource for Smarty's output caching.
Smarty_CacheResource_Pdo PDO Cache Handler Allows you to store Smarty Cache files into your db.
Smarty_CacheResource_Pdo_Gzip PDO Cache Handler Allows you to store Smarty Cache files into your db.
Smarty_Data class for the Smarty data object The Smarty data object will hold Smarty variables in the current scope
Smarty_Internal_Block Smarty {block} tag class
Smarty_Internal_CacheResource_File This class does contain all necessary methods for the HTML cache on file system Implements the file system as resource for the HTML cache Version ussing nocache inserts.
Smarty_Internal_Compile_Append Smarty Internal Plugin Compile Append Class
Smarty_Internal_Compile_Assign Smarty Internal Plugin Compile Assign Class
Smarty_Internal_Compile_Block Smarty Internal Plugin Compile Block Class
Smarty_Internal_Compile_Block_Child Smarty Internal Plugin Compile Block Parent Class
Smarty_Internal_Compile_Block_Parent Smarty Internal Plugin Compile Block Parent Class
Smarty_Internal_Compile_Blockclose Smarty Internal Plugin Compile BlockClose Class
Smarty_Internal_Compile_Break Smarty Internal Plugin Compile Break Class
Smarty_Internal_Compile_Call Smarty Internal Plugin Compile Function_Call Class
Smarty_Internal_Compile_Capture Smarty Internal Plugin Compile Capture Class
Smarty_Internal_Compile_CaptureClose Smarty Internal Plugin Compile Captureclose Class
Smarty_Internal_Compile_Config_Load Smarty Internal Plugin Compile Config Load Class
Smarty_Internal_Compile_Continue Smarty Internal Plugin Compile Continue Class
Smarty_Internal_Compile_Debug Smarty Internal Plugin Compile Debug Class
Smarty_Internal_Compile_Else Smarty Internal Plugin Compile Else Class
Smarty_Internal_Compile_Elseif Smarty Internal Plugin Compile ElseIf Class
Smarty_Internal_Compile_Eval Smarty Internal Plugin Compile Eval Class
Smarty_Internal_Compile_Extends Smarty Internal Plugin Compile extend Class
Smarty_Internal_Compile_For Smarty Internal Plugin Compile For Class
Smarty_Internal_Compile_Forclose Smarty Internal Plugin Compile Forclose Class
Smarty_Internal_Compile_Foreach Smarty Internal Plugin Compile Foreach Class
Smarty_Internal_Compile_Foreachclose Smarty Internal Plugin Compile Foreachclose Class
Smarty_Internal_Compile_Foreachelse Smarty Internal Plugin Compile Foreachelse Class
Smarty_Internal_Compile_Forelse Smarty Internal Plugin Compile Forelse Class
Smarty_Internal_Compile_Function Smarty Internal Plugin Compile Function Class
Smarty_Internal_Compile_Functionclose Smarty Internal Plugin Compile Functionclose Class
Smarty_Internal_Compile_If Smarty Internal Plugin Compile If Class
Smarty_Internal_Compile_Ifclose Smarty Internal Plugin Compile Ifclose Class
Smarty_Internal_Compile_Include Smarty Internal Plugin Compile Include Class
Smarty_Internal_Compile_Include_Php Smarty Internal Plugin Compile Insert Class
Smarty_Internal_Compile_Insert Smarty Internal Plugin Compile Insert Class
Smarty_Internal_Compile_Ldelim Smarty Internal Plugin Compile Ldelim Class
Smarty_Internal_Compile_Make_Nocache Smarty Internal Plugin Compile Make_Nocache Class
Smarty_Internal_Compile_Nocache Smarty Internal Plugin Compile Nocache Class
Smarty_Internal_Compile_Nocacheclose Smarty Internal Plugin Compile Nocacheclose Class
Smarty_Internal_Compile_Private_Block_Plugin Smarty Internal Plugin Compile Block Plugin Class
Smarty_Internal_Compile_Private_ForeachSection Smarty Internal Plugin Compile ForeachSection Class
Smarty_Internal_Compile_Private_Function_Plugin Smarty Internal Plugin Compile Function Plugin Class
Smarty_Internal_Compile_Private_Modifier Smarty Internal Plugin Compile Modifier Class
Smarty_Internal_Compile_Private_Object_Block_Function Smarty Internal Plugin Compile Object Block Function Class
Smarty_Internal_Compile_Private_Object_Function Smarty Internal Plugin Compile Object Function Class
Smarty_Internal_Compile_Private_Php Smarty Internal Plugin Compile PHP Expression Class
Smarty_Internal_Compile_Private_Print_Expression Smarty Internal Plugin Compile Print Expression Class
Smarty_Internal_Compile_Private_Registered_Block Smarty Internal Plugin Compile Registered Block Class
Smarty_Internal_Compile_Private_Registered_Function Smarty Internal Plugin Compile Registered Function Class
Smarty_Internal_Compile_Private_Special_Variable Smarty Internal Plugin Compile special Smarty Variable Class
Smarty_Internal_Compile_Rdelim Smarty Internal Plugin Compile Rdelim Class
Smarty_Internal_Compile_Section Smarty Internal Plugin Compile Section Class
Smarty_Internal_Compile_Sectionclose Smarty Internal Plugin Compile Sectionclose Class
Smarty_Internal_Compile_Sectionelse Smarty Internal Plugin Compile Sectionelse Class
Smarty_Internal_Compile_Setfilter Smarty Internal Plugin Compile Setfilter Class
Smarty_Internal_Compile_Setfilterclose Smarty Internal Plugin Compile Setfilterclose Class
Smarty_Internal_Compile_Shared_Inheritance Smarty Internal Plugin Compile Shared Inheritance Class
Smarty_Internal_Compile_While Smarty Internal Plugin Compile While Class
Smarty_Internal_Compile_Whileclose Smarty Internal Plugin Compile Whileclose Class
Smarty_Internal_CompileBase This class does extend all internal compile plugins
Smarty_Internal_Config_File_Compiler Main config file compiler class
Smarty_Internal_Configfilelexer Smarty_Internal_Configfilelexer
Smarty_Internal_Configfileparser Smarty Internal Plugin Configfileparse
Smarty_Internal_Data Base class with template and variable methods
Smarty_Internal_Debug Smarty Internal Plugin Debug Class
Smarty_Internal_Extension_Handler Smarty Extension handler
Smarty_Internal_Method_AddAutoloadFilters Smarty Method AddAutoloadFilters
Smarty_Internal_Method_AddDefaultModifiers Smarty Method AddDefaultModifiers
Smarty_Internal_Method_Append Smarty Method Append
Smarty_Internal_Method_AppendByRef Smarty Method AppendByRef
Smarty_Internal_Method_AssignByRef Smarty Method AssignByRef
Smarty_Internal_Method_AssignGlobal Smarty Method AssignGlobal
Smarty_Internal_Method_ClearAllAssign Smarty Method ClearAllAssign
Smarty_Internal_Method_ClearAllCache Smarty Method ClearAllCache
Smarty_Internal_Method_ClearAssign Smarty Method ClearAssign
Smarty_Internal_Method_ClearCache Smarty Method ClearCache
Smarty_Internal_Method_ClearCompiledTemplate Smarty Method ClearCompiledTemplate
Smarty_Internal_Method_ClearConfig Smarty Method ClearConfig
Smarty_Internal_Method_CompileAllConfig Smarty Method CompileAllConfig
Smarty_Internal_Method_CompileAllTemplates Smarty Method CompileAllTemplates
Smarty_Internal_Method_ConfigLoad Smarty Method ConfigLoad
Smarty_Internal_Method_CreateData Smarty Method CreateData
Smarty_Internal_Method_GetAutoloadFilters Smarty Method GetAutoloadFilters
Smarty_Internal_Method_GetConfigVariable Smarty Method GetConfigVariable
Smarty_Internal_Method_GetConfigVars Smarty Method GetConfigVars
Smarty_Internal_Method_GetDebugTemplate Smarty Method GetDebugTemplate
Smarty_Internal_Method_GetDefaultModifiers Smarty Method GetDefaultModifiers
Smarty_Internal_Method_GetGlobal Smarty Method GetGlobal
Smarty_Internal_Method_GetRegisteredObject Smarty Method GetRegisteredObject
Smarty_Internal_Method_GetStreamVariable Smarty Method GetStreamVariable
Smarty_Internal_Method_GetTags Smarty Method GetTags
Smarty_Internal_Method_GetTemplateVars Smarty Method GetTemplateVars
Smarty_Internal_Method_LoadFilter Smarty Method LoadFilter
Smarty_Internal_Method_LoadPlugin Smarty Extension Loadplugin
Smarty_Internal_Method_MustCompile Smarty Method MustCompile
Smarty_Internal_Method_RegisterCacheResource Smarty Method RegisterCacheResource
Smarty_Internal_Method_RegisterClass Smarty Method RegisterClass
Smarty_Internal_Method_RegisterDefaultConfigHandler Smarty Method RegisterDefaultConfigHandler
Smarty_Internal_Method_RegisterDefaultPluginHandler Smarty Method RegisterDefaultPluginHandler
Smarty_Internal_Method_RegisterDefaultTemplateHandler Smarty Method RegisterDefaultTemplateHandler
Smarty_Internal_Method_RegisterFilter Smarty Method RegisterFilter
Smarty_Internal_Method_RegisterObject Smarty Method RegisterObject
Smarty_Internal_Method_RegisterPlugin Smarty Method RegisterPlugin
Smarty_Internal_Method_RegisterResource Smarty Method RegisterResource
Smarty_Internal_Method_SetAutoloadFilters Smarty Method SetAutoloadFilters
Smarty_Internal_Method_SetDebugTemplate Smarty Method SetDebugTemplate
Smarty_Internal_Method_SetDefaultModifiers Smarty Method SetDefaultModifiers
Smarty_Internal_Method_UnloadFilter Smarty Method UnloadFilter
Smarty_Internal_Method_UnregisterCacheResource Smarty Method UnregisterCacheResource
Smarty_Internal_Method_UnregisterFilter Smarty Method UnregisterFilter
Smarty_Internal_Method_UnregisterObject Smarty Method UnregisterObject
Smarty_Internal_Method_UnregisterPlugin Smarty Method UnregisterPlugin
Smarty_Internal_Method_UnregisterResource Smarty Method UnregisterResource
Smarty_Internal_Nocache_Insert Smarty Internal Plugin Compile Insert Class
Smarty_Internal_ParseTree
Smarty_Internal_ParseTree_Code Code fragment inside a tag .
Smarty_Internal_ParseTree_Dq Double quoted string inside a tag.
Smarty_Internal_ParseTree_DqContent Raw chars as part of a double quoted string.
Smarty_Internal_ParseTree_Tag A complete smarty tag.
Smarty_Internal_ParseTree_Template Template element
Smarty_Internal_ParseTree_Text Smarty Internal Plugin Templateparser Parse Tree These are classes to build parse tree in the template parser
Smarty_Internal_Resource_Eval Smarty Internal Plugin Resource Eval Implements the strings as resource for Smarty template {@internal unlike string-resources the compiled state of eval-resources is NOT saved for subsequent access}}
Smarty_Internal_Resource_Extends Smarty Internal Plugin Resource Extends Implements the file system as resource for Smarty which {extend}s a chain of template files templates
Smarty_Internal_Resource_File Smarty Internal Plugin Resource File Implements the file system as resource for Smarty templates
Smarty_Internal_Resource_Php Smarty Internal Plugin Resource PHP Implements the file system as resource for PHP templates
Smarty_Internal_Resource_Registered Smarty Internal Plugin Resource Registered Implements the registered resource for Smarty template
Smarty_Internal_Resource_Stream Smarty Internal Plugin Resource Stream Implements the streams as resource for Smarty template
Smarty_Internal_Resource_String Smarty Internal Plugin Resource String Implements the strings as resource for Smarty template {@internal unlike eval-resources the compiled state of string-resources is saved for subsequent access}}
Smarty_Internal_Runtime_CacheModify Inline Runtime Methods render, setSourceByUid, setupSubTemplate
Smarty_Internal_Runtime_CacheResourceFile Smarty Internal Runtime Cache Resource File Class
Smarty_Internal_Runtime_Capture Runtime Extension Capture
Smarty_Internal_Runtime_CodeFrame Class Smarty_Internal_Extension_CodeFrame Create code frame for compiled and cached templates
Smarty_Internal_Runtime_FilterHandler Class for filter processing
Smarty_Internal_Runtime_Foreach Foreach Runtime Methods count(), init(), restore()
Smarty_Internal_Runtime_GetIncludePath Smarty Internal Read Include Path Class
Smarty_Internal_Runtime_Inheritance Inheritance Runtime Methods processBlock, endChild, init
Smarty_Internal_Runtime_Make_Nocache {make_nocache} Runtime Methods save(), store()
Smarty_Internal_Runtime_TplFunction TplFunction Runtime Methods callTemplateFunction
Smarty_Internal_Runtime_UpdateCache Inline Runtime Methods render, setSourceByUid, setupSubTemplate
Smarty_Internal_Runtime_UpdateScope Runtime Extension updateScope
Smarty_Internal_Runtime_WriteFile Smarty Internal Write File Class
Smarty_Internal_SmartyTemplateCompiler Class SmartyTemplateCompiler
Smarty_Internal_Template Main class with template data structures and methods
Smarty_Internal_TemplateBase Class with shared smarty/template methods
Smarty_Internal_TemplateCompilerBase Main abstract compiler class
Smarty_Internal_Templatelexer Smarty_Internal_Templatelexer This is the template file lexer.
Smarty_Internal_Templateparser Smarty Template Parser Class
Smarty_Internal_TestInstall TestInstall class
Smarty_Internal_Undefined Smarty Internal Undefined
Smarty_Resource Smarty Resource Plugin Base implementation for resource plugins
Smarty_Resource_Custom Smarty Resource Plugin Wrapper Implementation for custom resource plugins
Smarty_Resource_Extendsall Extends All Resource Resource Implementation modifying the extends-Resource to walk through the template_dirs and inherit all templates of the same name
Smarty_Resource_Mysql MySQL Resource Resource Implementation based on the Custom API to use MySQL as the storage resource for Smarty's templates and configs.
Smarty_Resource_Mysqls MySQL Resource Resource Implementation based on the Custom API to use MySQL as the storage resource for Smarty's templates and configs.
Smarty_Resource_Recompiled Smarty Resource Plugin Base implementation for resource plugins that don't compile cache
Smarty_Resource_Uncompiled Smarty Resource Plugin Base implementation for resource plugins that don't use the compiler
Smarty_Security This class does contain the security settings
Smarty_Template_Cached Smarty Resource Data Object Cache Data Container for Template Files
Smarty_Template_Compiled Smarty Resource Data Object Meta Data Container for Template Files
Smarty_Template_Config Smarty Config Resource Data Object Meta Data Container for Template Files
Smarty_Template_Resource_Base Smarty Template Resource Base Object
Smarty_Template_Source Smarty Resource Data Object Meta Data Container for Template Files
Smarty_Undefined_Variable class for undefined variable object This class defines an object for undefined variable handling
Smarty_Variable class for the Smarty variable object This class defines the Smarty variable object
SmartyBC Smarty Backward Compatibility Wrapper Class
SmartyCompilerException Smarty compiler exception class
SmartyException Smarty exception class
TP_yyStackEntry
TP_yyToken
TPC_yyStackEntry
TPC_yyToken
Uploader Created by JetBrains PhpStorm.

Constants

ACTION_NAME

ACTION_NAME = self::route_a()

APP_DEBUG

APP_DEBUG = true

APP_DEBUG

APP_DEBUG = false

APP_ENV

APP_ENV = ini_get('app_env') ? ini_get('app_env') : 'develop'

APP_PATH

APP_PATH = ROOT_PATH . 'application'

APP_PATH

APP_PATH = ROOT_PATH . DS . 'application'

APPDIR

APPDIR = _dir_path(substr(dirname(__FILE__), 0, -8))

CACHE_PARAM

CACHE_PARAM = 'cache'

CHARSET

CHARSET = self::$config['default_charset']

CONFIG

CONFIG = PATH . DS . 'config'

CONFIG_PATH

CONFIG_PATH = MODULE_PATH . DS . 'config'

CONTROLLER_NAME

CONTROLLER_NAME = self::route_c()

CONTROLLER_PATH

CONTROLLER_PATH = MODULE_PATH . DS . 'controller'

DATETIME

DATETIME = 1

DEBUG_PARAM

DEBUG_PARAM = 'debug'

DEFAULT_MODULE

DEFAULT_MODULE = 'home'

DS

DS = DIRECTORY_SEPARATOR

EFFECTED_INIT

EFFECTED_INIT = 1

EXT

EXT = '.php'

EXT_OBGZIP

EXT_OBGZIP = function_exists('ob_gzhandler')

FILTER

FILTER = PATH . DS . 'filter'

FILTER_PATH

FILTER_PATH = MODULE_PATH . DS . 'filter'

HTTP_HOST

HTTP_HOST = isset($_SERVER['HTTP_HOST']) ? $_SERVER['HTTP_HOST'] : ''

HTTP_REFERER

HTTP_REFERER = isset($_SERVER['HTTP_REFERER']) ? $_SERVER['HTTP_REFERER'] : ''

ICONV_ENABLE

ICONV_ENABLE = function_exists('iconv')

IN_TICKYCMS

IN_TICKYCMS = true

IS_CGI

IS_CGI = 0 === strpos(PHP_SAPI, 'cgi') || false !== strpos(PHP_SAPI, 'fcgi') ? 1 : 0

LIB

LIB = PATH . DS . 'library'

LOG_PATH

LOG_PATH = RUNTIME_PATH . DS . 'log'

MAGIC_QUOTES_GPC

MAGIC_QUOTES_GPC = false

MB_ENABLE

MB_ENABLE = function_exists('mb_convert_encoding')

MODEL_PATH

MODEL_PATH = MODULE_PATH . DS . 'model'

MODULE_NAME

MODULE_NAME = self::route_m()

MODULE_PATH

MODULE_PATH = APP_PATH . DS . MODULE_NAME

MODULE_THEME

MODULE_THEME = $theme

NOW_DATE

NOW_DATE = date('Y-m-d H:i:s')

NOW_TIME

NOW_TIME = $_SERVER['REQUEST_TIME']

PATH

PATH = APP_PATH . DS . 'common'

PHP_FILE

PHP_FILE = rtrim($_SERVER['SCRIPT_NAME'], '/')

PUBLIC_PATH

PUBLIC_PATH = ROOT_PATH . DS . 'public'

ROOT_PATH

ROOT_PATH = __DIR__ . '/'

ROOT_PATH

ROOT_PATH = dirname(TICKY_PATH)

RUNTIME_PATH

RUNTIME_PATH = ROOT_PATH . 'runtime'

SERVER_PORT

SERVER_PORT = isset($_SERVER['SERVER_PORT']) && $_SERVER['SERVER_PORT'] == '443' ? 'https://' : 'http://'

SITE_PATH

SITE_PATH = str_replace('index.php', '', PHP_FILE)

SITE_URL

SITE_URL = SERVER_PORT . HTTP_HOST . SITE_PATH

SITEDIR

SITEDIR = dirname(APPDIR) . DIRECTORY_SEPARATOR

SMARTY_DIR

SMARTY_DIR = dirname(__FILE__) . DIRECTORY_SEPARATOR

SMARTY_MBSTRING

SMARTY_MBSTRING = function_exists('mb_get_info')

SMARTY_PLUGINS_DIR

SMARTY_PLUGINS_DIR = SMARTY_DIR . 'plugins' . DIRECTORY_SEPARATOR

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

SMARTY_SYSPLUGINS_DIR

SMARTY_SYSPLUGINS_DIR = SMARTY_DIR . 'sysplugins' . DIRECTORY_SEPARATOR

SOFTNAME

SOFTNAME = 'TickyCMS内容管理系统'

STATIC_PATH

STATIC_PATH = PUBLIC_PATH . DS . 'static'

STATIC_URL

STATIC_URL = '/static'

TICKY_CONFIG

TICKY_CONFIG = TICKY_PATH . DS . 'config'

TICKY_LIB

TICKY_LIB = TICKY_PATH . DS . 'library'

TICKY_PATH

TICKY_PATH = dirname(dirname(__FILE__)) . DS

TICKY_START_MEM

TICKY_START_MEM = memory_get_usage()

TICKY_VERSION

TICKY_VERSION = '2.0'

UPLOAD_PATH

UPLOAD_PATH = PUBLIC_PATH . DS . 'upload'

URL_MODEL

URL_MODEL = '3'

VENDOR_PATH

VENDOR_PATH = ROOT_PATH . DS . 'vendor'

VERSION

VERSION = 'TickyCMS 1.0'

VIEW

VIEW = PATH . DS . 'view'

VIEW_PATH

VIEW_PATH = MODULE_PATH . DS . 'view'

Functions

_dir_path()

_dir_path(  $path) 

Parameters

$path

addPKCS7Padding()

addPKCS7Padding(string  $source) : string

填充算法

Parameters

string $source

Returns

string

admin_show_field()

admin_show_field(  $field,   $type = 'open') 

加载字段显示

Parameters

$field
$type

array2string()

array2string(array  $data, boolean  $isformdata = 1) : string

将数组转换为字符串

Parameters

array $data

数组

boolean $isformdata

如果为0,则不使用new_stripslashes处理,可选参数,默认为1

Returns

string —

返回字符串,如果,data为空,则返回空

cache()

cache(  $name,   $value = '') 

Parameters

$name
$value

censor()

censor(  $message,   $modword = NULL,   $return = FALSE) : \成功返回原始文本,否则提示错误或被替换

词语过滤

Parameters

$message
  • 词语过滤文本
$modword
$return

Returns

\成功返回原始文本,否则提示错误或被替换

checkBOM()

checkBOM(  $filename) 

Parameters

$filename

checkdir()

checkdir(  $basedir) 

Parameters

$basedir

composerRequire30f134d1f77d6850c0259a142c1864c4()

composerRequire30f134d1f77d6850c0259a142c1864c4(  $fileIdentifier,   $file) 

Parameters

$fileIdentifier
$file

config()

config(  $name,   $key = null) 

Parameters

$name
$key

cookie()

cookie(  $name,   $value) 

Parameters

$name
$value

create_tradenum()

create_tradenum() : string

创建订单号

Returns

string —

字符串

cutstr()

cutstr(  $string,   $length,   $dot = '...') : \返回带省略号被裁减好的字符串

根据中文裁减字符串

Parameters

$string
  • 字符串
$length
  • 长度
$dot

Returns

\返回带省略号被裁减好的字符串

db()

db(  $dbname = 'tickycms') 

Parameters

$dbname

db()

db(  $table = '',   $driver = 'mysql') 

Parameters

$table
$driver

debug()

debug(  $var = null,   $vardump = false) 

Parameters

$var
$vardump

debug()

debug(  $var = null,   $vardump = false) 

Parameters

$var
$vardump

decrypt()

decrypt(string  $str,   $screct_key) : string

解密方法

Parameters

string $str
$screct_key

Returns

string

decrypt()

decrypt(  $str) 

Parameters

$str

delcache()

delcache(string  $name,   $flush = false) : boolean

删除缓存

Parameters

string $name

缓存名称

$flush

是否清空所有缓存

Returns

boolean

dintval()

dintval(  $int,   $allowarray = false) 

Parameters

$int
$allowarray

dmkdir()

dmkdir(  $dir,   $mode = 511,   $makeindex = TRUE) 

Parameters

$dir
$mode
$makeindex

dstripslashes()

dstripslashes(  $string) 

Parameters

$string

encrypt()

encrypt(  $str) 

Parameters

$str

encrypt()

encrypt(string  $str,   $screct_key) : string

加密方法

Parameters

string $str
$screct_key

Returns

string

file_down()

file_down(  $filepath,   $filename = '') 

文件下载

Parameters

$filepath

文件路径

$filename

文件名称

fileext()

fileext(  $filename) : \扩展名

取得文件扩展

Parameters

$filename

文件名

Returns

\扩展名

get()

get(  $key,   $default = null) 

Parameters

$key
$default

get_all_hits()

get_all_hits(  $params) 

Parameters

$params

get_category()

get_category(integer  $catid = '', string  $parameter = '') : array

获取栏目信息

Parameters

integer $catid
string $parameter

Returns

array —

or string

get_catname()

get_catname(integer  $catid) : string

根据栏目ID获取栏目名称

Parameters

integer $catid

Returns

string

get_childcat()

get_childcat(integer  $catid) : array

根据栏目ID获取子栏目信息

Parameters

integer $catid

Returns

array

get_config()

get_config(  $key = '') : array|string

获取系统配置信息

Parameters

$key

键值,可为空,为空获取整个数组

Returns

array|string

get_dir_chmod()

get_dir_chmod(  $dirName) 

Parameters

$dirName

get_groupinfo()

get_groupinfo(integer  $groupid = '') : array

获取组别信息

Parameters

integer $groupid

Returns

array

get_groupname()

get_groupname(integer  $groupid) : string

根据组别ID获取组别名称

Parameters

integer $groupid

Returns

string

get_ip_address()

get_ip_address(  $ip = '',   $type = null) : \所在位置

获取请求地区

Parameters

$ip
$type

Returns

\所在位置

get_location()

get_location(integer  $catid, boolean  $self = true, string  $symbol = '') : string

根据栏目ID获取当前位置

Parameters

integer $catid
boolean $self

是否包含本身 0为不包含

string $symbol

栏目间隔符

Returns

string

get_menu()

get_menu() 

获取菜单

get_modelinfo()

get_modelinfo(  $typeall) : array

获取模型信息

Parameters

$typeall

0只包含内容模型,1全部模型

Returns

array

get_sitehtml()

get_sitehtml() : string

获取站点HTML

Returns

string

get_siteinfo()

get_siteinfo(integer  $siteid = '') : array

获取站点信息

Parameters

integer $siteid

Returns

array

get_theme_list()

get_theme_list(string  $m = 'home') : array

获取模板主题列表

Parameters

string $m

模块

Returns

array

get_url()

get_url() 

获取当前页面完整URL地址

get_urlrule()

get_urlrule() : array

获取自定义URL规则

Returns

array

getcache()

getcache(string  $name) : string

读取缓存

Parameters

string $name

缓存名称

Returns

string

getip()

getip() 

getsitemodel()

getsitemodel() 

grab_image()

grab_image(string  $content, string  $targeturl = '') : string

获取远程图片并把它保存到本地, 确定您有把文件写入本地服务器的权限

Parameters

string $content

文章内容

string $targeturl

可选参数,对方网站的网址,防止对方网站的图片使用"/upload/1.jpg"这样的情况

Returns

string —

$content 处理后的内容

hits()

hits(  $data) 

点击排行榜标签

Parameters

$data

home_show_menu()

home_show_menu() 

前台头部菜单

id_decode()

id_decode(  $string) : string

id解密

Parameters

$string

Returns

string

id_encode()

id_encode(  $id) : string

id加密

Parameters

$id

Returns

string

input()

input(  $key,   $default = null) 

Parameters

$key
$default

ipaccess()

ipaccess(  $ip, \-  $accesslist) 

ip允许访问

Parameters

$ip

要检查的ip地址

\- $accesslist

允许访问的ip地址

is_badword()

is_badword(\char  $string) : TRUE

检测输入中是否含有错误字符

Parameters

\char $string

要检查的字符串名称

Returns

TRUE —

or FALSE

is_default_password()

is_default_password() : boolean

判断当前登录永丰虎密码是否是默认密码

Returns

boolean

is_email()

is_email(  $email) 

判断email格式是否正确

Parameters

$email

is_ie()

is_ie() 

IE浏览器判断

is_mobile()

is_mobile(  $mobile) 

判断手机格式是否正确

Parameters

$mobile

is_password()

is_password(STRING  $password) : TRUE

检查密码长度是否符合规定

Parameters

STRING $password

Returns

TRUE —

or FALSE

is_username()

is_username(STRING  $username) : TRUE

检查用户名是否符合规定

Parameters

STRING $username

要检查的用户名

Returns

TRUE —

or FALSE

L()

L(string|array  $name = null, mixed  $value = null) : mixed

获取和设置语言定义(不区分大小写)

Parameters

string|array $name

语言变量

mixed $value

语言值或者变量

Returns

mixed

load()

load(  $file,   $data) 

Parameters

$file
$data

load_extend()

load_extend(string  $path, string  $m = '') 

加载extend目录下的文件

Parameters

string $path

文件地址(包括文件全称)

string $m

模块(如果模块名为空,则加载根目录下的common)

M()

M(  $classname) : object

用于实例化一个model对象 如:M('article');

Parameters

$classname

model类名称 如 article.class.php,只传入article即可

Returns

object

match_img()

match_img(string  $content) : string

获取内容中的图片

Parameters

string $content

内容

Returns

string

model_field_init()

model_field_init(  $modelid,   $modelName) 

Parameters

$modelid
$modelName

model_news_testdata()

model_news_testdata() 

modelFieldInit()

modelFieldInit() 

new_html_special_chars()

new_html_special_chars(  $string) : mixed

返回经htmlspecialchars处理过的字符串或数组

Parameters

$string

Returns

mixed

new_stripslashes()

new_stripslashes(  $string) : mixed

返回经stripslashes处理过的字符串或数组

Parameters

$string

需要处理的字符串或数组

Returns

mixed

parse_related_link()

parse_related_link(  $content,   $extent) 

Parameters

$content
$extent

pass_time()

pass_time(  $time) 

Parameters

$time

password()

password(  $pass) : string

对用户的密码进行加密

Parameters

$pass

字符串

Returns

string —

字符串

post()

post(  $key,   $default = null) 

Parameters

$key
$default

random()

random(  $length,   $numeric) : \返回字符串

产生随机码

Parameters

$length
  • 要多长
$numeric

Returns

\返回字符串

redirect()

redirect(  $uri,   $refresh) 

Parameters

$uri
$refresh

remove_xss()

remove_xss(  $string) : string

xss过滤函数

Parameters

$string

Returns

string

return_bytes()

return_bytes(  $val) 

Parameters

$val

rewrite()

rewrite(  $filename,   $data) 

Parameters

$filename
$data

runlog()

runlog(  $file,   $message,   $halt) : boolean

记录日志

Parameters

$file

日志文件

$message

日志信息

$halt

exit()

Returns

boolean

safe_replace()

safe_replace(  $string) : string

安全过滤函数

Parameters

$string

Returns

string

select_category()

select_category(  $name = "parentid",   $value = "0",   $root = "",   $member_publish,   $attribute = '',   $parent_disabled = true,   $disabled = true,   $modelid) : string

获取栏目的select select_category('catid', $catid, '内容分类', 0, '', true, true, $modelid);

Parameters

$name

select的名称

$value

选中的id,用于修改

$root

顶级分类名称

$member_publish

是否仅显示投稿栏目

$attribute

外加属性

$parent_disabled

是否禁父级栏目

$disabled

是否禁单页和外部链接

$modelid

modelid

Returns

string

select_template()

select_template(  $style,   $pre = '') 

模板选择

Parameters

$style

风格

$pre

模板前缀

session()

session(  $name,   $value = '',   $expire = 1440) 

Parameters

$name
$value
$expire

set_config()

set_config(  $config) 

Parameters

$config

set_mapping()

set_mapping() 

设置路由映射

set_module_theme()

set_module_theme(  $theme = 'default') 

用于设置模块的主题

Parameters

$theme

setcache()

setcache(  $name,   $data,   $timeout) : integer

写入缓存

Parameters

$name

缓存名称

$data

缓存数据

$timeout

过期时间

Returns

integer

show_menu()

show_menu() 

显示后台菜单

showmsg()

showmsg(string  $msg, string  $gourl = '', integer  $limittime = 3) : void

提示信息页面跳转

Parameters

string $msg

消息提示信息

string $gourl

跳转地址,stop为停止

integer $limittime

限制时间

showselectrole()

showselectrole(string  $roleid = '',   $selname = 'roleid') : \string.

角色 显示树形下拉框.

Parameters

string $roleid

选中id.

$selname

Returns

\string.

showselectusergroup()

showselectusergroup(  $groupid = '',   $selname = 'groupid') : \string.

用户组 显示树形下拉框.

Parameters

$groupid
$selname

Returns

\string.

showsitemodel()

showsitemodel(  $modelid = '',   $selname = 'modelid',   $change = false) : \string.

内容模型 显示树形下拉框.

Parameters

$modelid
$selname
$change

Returns

\string.

sizecount()

sizecount(  $size) : \返回格式化后的文本

字节格式化单位

Parameters

$size

Returns

\返回格式化后的文本

smarty_block_hits()

smarty_block_hits(  $params,   $content,   $smarty,   $repeat) 

Parameters

$params
$content
$smarty
$repeat

smarty_block_textformat()

smarty_block_textformat(array  $params, string  $content, \Smarty_Internal_Template  $template,   $repeat) : string

Smarty {textformat}{/textformat} block plugin Type: block function<br> Name: textformat<br> Purpose: format text a certain way with preset styles or custom wrap/indent settings<br> Params: <pre> - style - string (email) - indent - integer (0) - wrap - integer (80) - wrap_char - string ("\n") - indent_char - string (" ") - wrap_boundary - boolean (true) </pre>

Parameters

array $params

parameters

string $content

contents of the block

\Smarty_Internal_Template $template

template object

$repeat

Returns

string —

content re-formatted

smarty_function_counter()

smarty_function_counter(array  $params, \Smarty_Internal_Template  $template) : string|null

Smarty {counter} function plugin Type: function<br> Name: counter<br> Purpose: print out a counter value

Parameters

array $params

parameters

\Smarty_Internal_Template $template

template object

Returns

string|null

smarty_function_cycle()

smarty_function_cycle(array  $params, \Smarty_Internal_Template  $template) : string|null

Smarty {cycle} function plugin Type: function<br> Name: cycle<br> Date: May 3, 2002<br> Purpose: cycle through given values<br> Params: <pre> - name - name of cycle (optional) - values - comma separated list of values to cycle, or an array of values to cycle (this can be left out for subsequent calls) - reset - boolean - resets given var to true - print - boolean - print var or not. default is true - advance - boolean - whether or not to advance the cycle - delimiter - the value delimiter, default is "," - assign - boolean, assigns to template var instead of printed.

Examples:

{cycle values="#eeeeee,#d0d0d0d"}
{cycle name=row values="one,two,three" reset=true}
{cycle name=row}

Parameters

array $params

parameters

\Smarty_Internal_Template $template

template object

Returns

string|null

smarty_function_escape_special_chars()

smarty_function_escape_special_chars(string  $string) : string

escape_special_chars common function Function: smarty_function_escape_special_chars<br> Purpose: used by other smarty functions to escape special chars except for already escaped ones

Parameters

string $string

text that should by escaped

Returns

string

smarty_function_fetch()

smarty_function_fetch(array  $params, \Smarty_Internal_Template  $template) : string|null

Smarty {fetch} plugin Type: function<br> Name: fetch<br> Purpose: fetch file, web or ftp data and display results

Parameters

array $params

parameters

\Smarty_Internal_Template $template

template object

Throws

\SmartyException

Returns

string|null —

if the assign parameter is passed, Smarty assigns the result to a template variable

smarty_function_html_checkboxes()

smarty_function_html_checkboxes(array  $params, object  $template) : string

Smarty {html_checkboxes} function plugin File: function.html_checkboxes.php<br> Type: function<br> Name: html_checkboxes<br> Date: 24.Feb.2003<br> Purpose: Prints out a list of checkbox input types<br> Examples: <pre> {html_checkboxes values=$ids output=$names} {html_checkboxes values=$ids name='box' separator='<br>' output=$names} {html_checkboxes values=$ids checked=$checked separator='<br>' output=$names} </pre> Params: <pre> - name (optional) - string default "checkbox" - values (required) - array - options (optional) - associative array - checked (optional) - array default not set - separator (optional) - ie <br> or &nbsp; - output (optional) - the output next to each checkbox - assign (optional) - assign the output as an array to this variable - escape (optional) - escape the content (not value), defaults to true </pre>

Parameters

array $params

parameters

object $template

template object

Returns

string

smarty_function_html_checkboxes_output()

smarty_function_html_checkboxes_output(  $name,   $value,   $output,   $selected,   $extra,   $separator,   $labels,   $label_ids,   $escape = true) 

Parameters

$name
$value
$output
$selected
$extra
$separator
$labels
$label_ids
$escape

smarty_function_html_image()

smarty_function_html_image(array  $params, \Smarty_Internal_Template  $template) : string

Smarty {html_image} function plugin Type: function<br> Name: html_image<br> Date: Feb 24, 2003<br> Purpose: format HTML tags for the image<br> Examples: {html_image file="/images/masthead.gif"}<br> Output: <img src="/images/masthead.gif" width=400 height=23><br> Params: <pre> - file - (required) - file (and path) of image - height - (optional) - image height (default actual height) - width - (optional) - image width (default actual width) - basedir - (optional) - base directory for absolute paths, default is environment variable DOCUMENT_ROOT - path_prefix - prefix for path output (optional, default empty) </pre>

Parameters

array $params

parameters

\Smarty_Internal_Template $template

template object

Throws

\SmartyException

Returns

string

smarty_function_html_options()

smarty_function_html_options(array  $params) : string

Smarty {html_options} function plugin Type: function<br> Name: html_options<br> Purpose: Prints the list of <option> tags generated from the passed parameters<br> Params: <pre> - name (optional) - string default "select" - values (required) - if no options supplied) - array - options (required) - if no values supplied) - associative array - selected (optional) - string default not set - output (required) - if not options supplied) - array - id (optional) - string default not set - class (optional) - string default not set </pre>

Parameters

array $params

parameters

Returns

string

smarty_function_html_options_optgroup()

smarty_function_html_options_optgroup(  $key,   $values,   $selected,   $id,   $class,   $idx) 

Parameters

$key
$values
$selected
$id
$class
$idx

smarty_function_html_options_optoutput()

smarty_function_html_options_optoutput(  $key,   $value,   $selected,   $id,   $class,   $idx) 

Parameters

$key
$value
$selected
$id
$class
$idx

smarty_function_html_radios()

smarty_function_html_radios(array  $params, \Smarty_Internal_Template  $template) : string

Smarty {html_radios} function plugin File: function.html_radios.php<br> Type: function<br> Name: html_radios<br> Date: 24.Feb.2003<br> Purpose: Prints out a list of radio input types<br> Params: <pre> - name (optional) - string default "radio" - values (required) - array - options (required) - associative array - checked (optional) - array default not set - separator (optional) - ie <br> or &nbsp; - output (optional) - the output next to each radio button - assign (optional) - assign the output as an array to this variable - escape (optional) - escape the content (not value), defaults to true </pre> Examples: <pre> {html_radios values=$ids output=$names} {html_radios values=$ids name='box' separator='<br>' output=$names} {html_radios values=$ids checked=$checked separator='<br>' output=$names} </pre>

Parameters

array $params

parameters

\Smarty_Internal_Template $template

template object

Returns

string

smarty_function_html_radios_output()

smarty_function_html_radios_output(  $name,   $value,   $output,   $selected,   $extra,   $separator,   $labels,   $label_ids,   $escape) 

Parameters

$name
$value
$output
$selected
$extra
$separator
$labels
$label_ids
$escape

smarty_function_html_select_date()

smarty_function_html_select_date(array  $params) : string

Smarty {html_select_date} plugin Type: function<br> Name: html_select_date<br> Purpose: Prints the dropdowns for date selection.

ChangeLog:

           - 1.0 initial release
           - 1.1 added support for +/- N syntax for begin
             and end year values. (Monte)
           - 1.2 added support for yyyy-mm-dd syntax for
             time value. (Jan Rosier)
           - 1.3 added support for choosing format for
             month values (Gary Loescher)
           - 1.3.1 added support for choosing format for
             day values (Marcus Bointon)
           - 1.3.2 support negative timestamps, force year
             dropdown to include given date unless explicitly set (Monte)
           - 1.3.4 fix behaviour of 0000-00-00 00:00:00 dates to match that
             of 0000-00-00 dates (cybot, boots)
           - 2.0 complete rewrite for performance,
             added attributes month_names, *_id

Parameters

array $params

parameters

Returns

string

smarty_function_html_select_time()

smarty_function_html_select_time(array  $params) : string

Smarty {html_select_time} function plugin Type: function<br> Name: html_select_time<br> Purpose: Prints the dropdowns for time selection

Parameters

array $params

parameters

Returns

string

smarty_function_html_table()

smarty_function_html_table(array  $params) : string

Smarty {html_table} function plugin Type: function<br> Name: html_table<br> Date: Feb 17, 2003<br> Purpose: make an html table from an array of data<br> Params: <pre> - loop - array to loop through - cols - number of columns, comma separated list of column names or array of column names - rows - number of rows - table_attr - table attributes - th_attr - table heading attributes (arrays are cycled) - tr_attr - table row attributes (arrays are cycled) - td_attr - table cell attributes (arrays are cycled) - trailpad - value to pad trailing cells with - caption - text for caption element - vdir - vertical direction (default: "down", means top-to-bottom) - hdir - horizontal direction (default: "right", means left-to-right) - inner - inner loop (default "cols": print $loop line by line, $loop will be printed column by column otherwise) </pre> Examples: <pre> {table loop=$data} {table loop=$data cols=4 tr_attr='"bgcolor=red"'} {table loop=$data cols="first,second,third" tr_attr=$colors} </pre>

Parameters

array $params

parameters

Returns

string

smarty_function_html_table_cycle()

smarty_function_html_table_cycle(  $name,   $var,   $no) 

Parameters

$name
$var
$no

smarty_function_include_file()

smarty_function_include_file(  $params,   $smarty) 

引入模板文件 function.include_file.php Author: 勾国印 (phper@gouguoyin.cn) Date: 2015年11月2日 下午3:58:56

Parameters

$params
$smarty

smarty_function_mailto()

smarty_function_mailto(array  $params) : string

Smarty {mailto} function plugin Type: function<br> Name: mailto<br> Date: May 21, 2002 Purpose: automate mailto address link creation, and optionally encode them.<br> Params: <pre> - address - (required) - e-mail address - text - (optional) - text to display, default is address - encode - (optional) - can be one of: * none : no encoding (default) * javascript : encode with javascript * javascript_charcode : encode with javascript charcode * hex : encode with hexidecimal (no javascript) - cc - (optional) - address(es) to carbon copy - bcc - (optional) - address(es) to blind carbon copy - subject - (optional) - e-mail subject - newsgroups - (optional) - newsgroup(s) to post to - followupto - (optional) - address(es) to follow up to - extra - (optional) - extra tags for the href link </pre> Examples: <pre> {mailto address="me@domain.com"} {mailto address="me@domain.com" encode="javascript"} {mailto address="me@domain.com" encode="hex"} {mailto address="me@domain.com" subject="Hello to you!"} {mailto address="me@domain.com" cc="you@domain.com,they@domain.com"} {mailto address="me@domain.com" extra='class="mailto"'} </pre>

Parameters

array $params

parameters

Returns

string

smarty_function_math()

smarty_function_math(array  $params, \Smarty_Internal_Template  $template) : string|null

Smarty {math} function plugin Type: function<br> Name: math<br> Purpose: handle math computations in template

Parameters

array $params

parameters

\Smarty_Internal_Template $template

template object

Returns

string|null

smarty_function_SITE_URL()

smarty_function_SITE_URL(  $params,   $smarty) 

静态资源路径 function.STATIC_PATH.php Author: 勾国印 (phper@gouguoyin.cn) Date: 2015年11月2日 下午3:58:56

Parameters

$params
$smarty

smarty_function_STATIC_URL()

smarty_function_STATIC_URL(  $params,   $smarty) 

静态资源路径 function.STATIC_PATH.php Author: 勾国印 (phper@gouguoyin.cn) Date: 2015年11月2日 下午3:58:56

Parameters

$params
$smarty

smarty_literal_compiler_param()

smarty_literal_compiler_param(array  $params, integer  $index, mixed  $default = null) : mixed

evaluate compiler parameter

Parameters

array $params

parameter array as given to the compiler function

integer $index

array index of the parameter to convert

mixed $default

value to be returned if the parameter is not present

Throws

\SmartyException

if parameter is not a literal (but an expression, variable, …)

Returns

mixed —

evaluated value of parameter or $default

smarty_make_timestamp()

smarty_make_timestamp(\DateTime|integer|string  $string) : integer

Function: smarty_make_timestamp<br> Purpose: used by other smarty functions to make a timestamp from a string.

Parameters

\DateTime|integer|string $string

date object, timestamp or string that can be converted using strtotime()

Returns

integer

smarty_mb_from_unicode()

smarty_mb_from_unicode(integer|array  $unicode, string  $encoding = null) : string

convert unicodes to the character of given encoding

Parameters

integer|array $unicode

single unicode or list of unicodes to convert

string $encoding

encoding of returned string, if null mb_internal_encoding() is used

Returns

string —

unicode as character sequence in given $encoding

smarty_mb_str_replace()

smarty_mb_str_replace(string  $search, string  $replace, string  $subject,   $count) : string

Multibyte string replace

Parameters

string $search

the string to be searched

string $replace

the replacement string

string $subject

the source string

$count

Returns

string —

replaced string

smarty_mb_to_unicode()

smarty_mb_to_unicode(string  $string, string  $encoding = null) : array

convert characters to their decimal unicode equivalents

Parameters

string $string

characters to calculate unicode of

string $encoding

encoding of $string, if null mb_internal_encoding() is used

Returns

array —

sequence of unicodes

smarty_mb_wordwrap()

smarty_mb_wordwrap(string  $str, integer  $width = 75, string  $break = "\n", boolean  $cut = false) : string

Wrap a string to a given number of characters

Parameters

string $str

the string to wrap

integer $width

the width of the output

string $break

the character used to break the line

boolean $cut

ignored parameter, just for the sake of

Returns

string —

wrapped string

smarty_mod_cap_mbconvert2_cb()

smarty_mod_cap_mbconvert2_cb(  $matches) 

Parameters

$matches

smarty_mod_cap_mbconvert_cb()

smarty_mod_cap_mbconvert_cb(  $matches) 

Parameters

$matches

smarty_mod_cap_ucfirst2_cb()

smarty_mod_cap_ucfirst2_cb(  $matches) 

Parameters

$matches

smarty_mod_cap_ucfirst_cb()

smarty_mod_cap_ucfirst_cb(  $matches) 

Parameters

$matches

smarty_modifier_capitalize()

smarty_modifier_capitalize(string  $string, boolean  $uc_digits = false, boolean  $lc_rest = false) : string

Smarty capitalize modifier plugin Type: modifier<br> Name: capitalize<br> Purpose: capitalize words in the string {@internal {$string|capitalize:true:true} is the fastest option for MBString enabled systems }}

Parameters

string $string

string to capitalize

boolean $uc_digits

also capitalize "x123" to "X123"

boolean $lc_rest

capitalize first letters, lowercase all following letters "aAa" to "Aaa"

Returns

string —

capitalized string

smarty_modifier_date_format()

smarty_modifier_date_format(string  $string, string  $format = null, string  $default_date = '', string  $formatter = 'auto') : string

Smarty date_format modifier plugin Type: modifier<br> Name: date_format<br> Purpose: format datestamps via strftime<br> Input:<br> - string: input date string - format: strftime format for output - default_date: default date if $string is empty

Parameters

string $string

input date string

string $format

strftime format for output

string $default_date

default date if $string is empty

string $formatter

either 'strftime' or 'auto'

Returns

string —

|void

smarty_modifier_debug_print_var()

smarty_modifier_debug_print_var(array|object  $var, integer  $max = 10, integer  $length = 40, integer  $depth, array  $objects = array()) : string

Smarty debug_print_var modifier plugin Type: modifier<br> Name: debug_print_var<br> Purpose: formats variable contents for display in the console

Parameters

array|object $var

variable to be formatted

integer $max

maximum recursion depth if $var is an array or object

integer $length

maximum string length if $var is a string

integer $depth

actual recursion depth

array $objects

processed objects in actual depth to prevent recursive object processing

Returns

string

smarty_modifier_escape()

smarty_modifier_escape(string  $string, string  $esc_type = 'html', string  $char_set = null, boolean  $double_encode = true) : string

Smarty escape modifier plugin Type: modifier<br> Name: escape<br> Purpose: escape string for output

Parameters

string $string

input string

string $esc_type

escape type

string $char_set

character set, used for htmlspecialchars() or htmlentities()

boolean $double_encode

encode already encoded entitites again, used for htmlspecialchars() or htmlentities()

Returns

string —

escaped input string

smarty_modifier_regex_replace()

smarty_modifier_regex_replace(string  $string, string|array  $search, string|array  $replace, integer  $limit = -1) : string

Smarty regex_replace modifier plugin Type: modifier<br> Name: regex_replace<br> Purpose: regular expression search/replace

Parameters

string $string

input string

string|array $search

regular expression(s) to search for

string|array $replace

string(s) that should be replaced

integer $limit

the maximum number of replacements

Returns

string

smarty_modifier_replace()

smarty_modifier_replace(string  $string, string  $search, string  $replace) : string

Smarty replace modifier plugin Type: modifier<br> Name: replace<br> Purpose: simple search/replace

Parameters

string $string

input string

string $search

text to search for

string $replace

replacement text

Returns

string

smarty_modifier_spacify()

smarty_modifier_spacify(string  $string, string  $spacify_char = ' ') : string

Smarty spacify modifier plugin Type: modifier<br> Name: spacify<br> Purpose: add spaces between characters in a string

Parameters

string $string

input string

string $spacify_char

string to insert between characters.

Returns

string

smarty_modifier_truncate()

smarty_modifier_truncate(string  $string, integer  $length = 80, string  $etc = '...', boolean  $break_words = false, boolean  $middle = false) : string

Smarty truncate modifier plugin Type: modifier<br> Name: truncate<br> Purpose: Truncate a string to a certain length if necessary, optionally splitting in the middle of a word, and appending the $etc string or inserting $etc into the middle.

Parameters

string $string

input string

integer $length

length of truncated text

string $etc

end string

boolean $break_words

truncate at word boundary

boolean $middle

truncate in the middle of text

Returns

string —

truncated string

smarty_modifiercompiler_cat()

smarty_modifiercompiler_cat(array  $params) : string

Smarty cat modifier plugin Type: modifier<br> Name: cat<br> Date: Feb 24, 2003<br> Purpose: catenate a value to a variable<br> Input: string to catenate<br> Example: {$var|cat:"foo"}

Parameters

array $params

parameters

Returns

string —

with compiled code

smarty_modifiercompiler_count_characters()

smarty_modifiercompiler_count_characters(array  $params) : string

Smarty count_characters modifier plugin Type: modifier<br> Name: count_characteres<br> Purpose: count the number of characters in a text

Parameters

array $params

parameters

Returns

string —

with compiled code

smarty_modifiercompiler_count_paragraphs()

smarty_modifiercompiler_count_paragraphs(array  $params) : string

Smarty count_paragraphs modifier plugin Type: modifier<br> Name: count_paragraphs<br> Purpose: count the number of paragraphs in a text

Parameters

array $params

parameters

Returns

string —

with compiled code

smarty_modifiercompiler_count_sentences()

smarty_modifiercompiler_count_sentences(array  $params) : string

Smarty count_sentences modifier plugin Type: modifier<br> Name: count_sentences Purpose: count the number of sentences in a text

Parameters

array $params

parameters

Returns

string —

with compiled code

smarty_modifiercompiler_count_words()

smarty_modifiercompiler_count_words(array  $params) : string

Smarty count_words modifier plugin Type: modifier<br> Name: count_words<br> Purpose: count the number of words in a text

Parameters

array $params

parameters

Returns

string —

with compiled code

smarty_modifiercompiler_default()

smarty_modifiercompiler_default(array  $params) : string

Smarty default modifier plugin Type: modifier<br> Name: default<br> Purpose: designate default value for empty variables

Parameters

array $params

parameters

Returns

string —

with compiled code

smarty_modifiercompiler_escape()

smarty_modifiercompiler_escape(array  $params,   $compiler) : string

Smarty escape modifier plugin Type: modifier<br> Name: escape<br> Purpose: escape string for output

Parameters

array $params

parameters

$compiler

Returns

string —

with compiled code

smarty_modifiercompiler_from_charset()

smarty_modifiercompiler_from_charset(array  $params) : string

Smarty from_charset modifier plugin Type: modifier<br> Name: from_charset<br> Purpose: convert character encoding from $charset to internal encoding

Parameters

array $params

parameters

Returns

string —

with compiled code

smarty_modifiercompiler_indent()

smarty_modifiercompiler_indent(array  $params) : string

Smarty indent modifier plugin Type: modifier<br> Name: indent<br> Purpose: indent lines of text

Parameters

array $params

parameters

Returns

string —

with compiled code

smarty_modifiercompiler_lower()

smarty_modifiercompiler_lower(array  $params) : string

Smarty lower modifier plugin Type: modifier<br> Name: lower<br> Purpose: convert string to lowercase

Parameters

array $params

parameters

Returns

string —

with compiled code

smarty_modifiercompiler_noprint()

smarty_modifiercompiler_noprint() : string

Smarty noprint modifier plugin Type: modifier<br> Name: noprint<br> Purpose: return an empty string

Returns

string —

with compiled code

smarty_modifiercompiler_string_format()

smarty_modifiercompiler_string_format(array  $params) : string

Smarty string_format modifier plugin Type: modifier<br> Name: string_format<br> Purpose: format strings via sprintf

Parameters

array $params

parameters

Returns

string —

with compiled code

smarty_modifiercompiler_strip()

smarty_modifiercompiler_strip(array  $params) : string

Smarty strip modifier plugin Type: modifier<br> Name: strip<br> Purpose: Replace all repeated spaces, newlines, tabs with a single space or supplied replacement string.<br> Example: {$var|strip} {$var|strip:"&nbsp;"}<br> Date: September 25th, 2002

Parameters

array $params

parameters

Returns

string —

with compiled code

smarty_modifiercompiler_strip_tags()

smarty_modifiercompiler_strip_tags(array  $params) : string

Smarty strip_tags modifier plugin Type: modifier<br> Name: strip_tags<br> Purpose: strip html tags from text

Parameters

array $params

parameters

Returns

string —

with compiled code

smarty_modifiercompiler_to_charset()

smarty_modifiercompiler_to_charset(array  $params) : string

Smarty to_charset modifier plugin Type: modifier<br> Name: to_charset<br> Purpose: convert character encoding from internal encoding to $charset

Parameters

array $params

parameters

Returns

string —

with compiled code

smarty_modifiercompiler_unescape()

smarty_modifiercompiler_unescape(array  $params) : string

Smarty unescape modifier plugin Type: modifier<br> Name: unescape<br> Purpose: unescape html entities

Parameters

array $params

parameters

Returns

string —

with compiled code

smarty_modifiercompiler_upper()

smarty_modifiercompiler_upper(array  $params) : string

Smarty upper modifier plugin Type: modifier<br> Name: lower<br> Purpose: convert string to uppercase

Parameters

array $params

parameters

Returns

string —

with compiled code

smarty_modifiercompiler_wordwrap()

smarty_modifiercompiler_wordwrap(array  $params,   $compiler) : string

Smarty wordwrap modifier plugin Type: modifier<br> Name: wordwrap<br> Purpose: wrap a string of text at a given length

Parameters

array $params

parameters

$compiler

Returns

string —

with compiled code

smarty_outputfilter_trimwhitespace()

smarty_outputfilter_trimwhitespace(string  $source) : string

Smarty trimwhitespace outputfilter plugin Trim unnecessary whitespace from HTML markup.

Parameters

string $source

input string

Returns

string —

filtered output

smarty_variablefilter_htmlspecialchars()

smarty_variablefilter_htmlspecialchars(string  $source) : string

Smarty htmlspecialchars variablefilter plugin

Parameters

string $source

input string

Returns

string —

filtered output

sql_split()

sql_split(  $sql,   $tablepre) 

Parameters

$sql
$tablepre

strexists()

strexists(  $string,   $find) : boolean

判断一个字符串是否在另一个字符串中存在

Parameters

$string
$find

Returns

boolean

string2array()

string2array(string  $data) : array

将字符串转换为数组

Parameters

string $data

字符串

Returns

array —

返回数组格式,如果,data为空,则返回空数组

stripPKSC7Padding()

stripPKSC7Padding(string  $source) : string

移去填充算法

Parameters

string $source

Returns

string

template()

template(  $template = 'index',   $module = '') : \unknown_type

模板调用

Parameters

$template

public/header

$module

Returns

\unknown_type

testwrite()

testwrite(  $d) 

Parameters

$d

thumb()

thumb(  $imgurl,   $width = 300,   $height = 200,   $autocut,   $smallpic = 'nopic.jpg') : string

生成缩略图函数

Parameters

$imgurl

图片路径

$width

缩略图宽度

$height

缩略图高度

$autocut

是否自动裁剪 默认不裁剪,当高度或宽度有一个数值为0时,自动关闭

$smallpic

无图片是默认图片路径

Returns

string

trim_script()

trim_script(  $str) : mixed

转义 javascript 代码标记

Parameters

$str

Returns

mixed

update_status()

update_status(  $url,   $table_name,   $id_name,   $id_value,   $field,   $status) 

更新状态 1开启

Parameters

$url
$table_name
$id_name
$id_value
$field
$status

url()

url(  $url = '',   $vars = '',   $domain = false) 

Parameters

$url
$vars
$domain

watermark()

watermark(  $source,   $target = '') : string

水印添加

Parameters

$source

原图片路径

$target

生成水印图片途径,默认为空,覆盖原图

Returns

string