$name
$name = (int) $cache[$name]
CodeIgniter |
Config |
My |
Phpcmf |
Psr |
Xcx |
Zend |
AlipayNotify | |
AlipayNotify | |
AlipaySubmit | |
AlipaySubmit | |
FrameFiller | |
JsApiPay | JSAPI支付实现类 该类实现了从微信公众平台获取code、通过code获取openid和access_token、 生成jsapi支付js接口所需的参数、生成获取共享收货地址所需的参数 |
NativePay | 刷卡支付实现类 |
Oauth | |
OAuthException | |
PayNotifyCallBack | 回调基础类 |
php5replace | |
PHPExcel | PHPExcel |
QC | |
QRbitstream | |
QRcode | |
QRencode | |
QRimage | |
QRinput | |
QRinputItem | |
QRmask | |
QRrawcode | |
QRrs | |
QRrsblock | |
QRrsItem | |
QRspec | |
QRsplit | |
qrstr | |
QRtools | |
SaeTClientV2 | 新浪微博操作类V2 |
SaeTOAuthV2 | 新浪微博 OAuth 认证类(OAuth2) |
Uploader | UEditor编辑器通用上传类 |
URL | |
WxPayApi | 接口访问类,包含所有微信支付API列表的封装,类中方法为static方法, 每个接口有默认超时时间(除提交被扫支付为10s,上报超时时间为1s外,其他均为6s) |
WxPayBizPayUrl | 扫码支付模式一生成二维码参数 |
WxPayCloseOrder | 关闭订单输入对象 |
WxPayDataBase | 数据对象基础类,该类中定义数据类最基本的行为,包括: 计算/设置/获取签名、输出xml格式的参数、从xml读取数据对象等 |
WxPayDownloadBill | 下载对账单输入对象 |
WxPayJsApiPay | 提交JSAPI输入对象 |
WxPayMicroPay | 提交被扫输入对象 |
WxPayNotify | 回调基础类 |
WxPayNotifyReply | 回调基础类 |
WxPayOrderQuery | 订单查询输入对象 |
WxPayRefund | 提交退款输入对象 |
WxPayRefundQuery | 退款查询输入对象 |
WxPayReport | 测速上报输入对象 |
WxPayResults | 接口调用结果类 |
WxPayReverse | 撤销输入对象 |
WxPayShortUrl | 短链转换输入对象 |
WxPayUnifiedOrder | 统一下单输入对象 |
_media(string $name, array $types = array(), string $unsupportedMessage = '', string $attributes = '', array $tracks = array()) : string
Generate media based tag
string | $name | |
array | $types | |
string | $unsupportedMessage | The message to display if the media tag is not supported by the browser. |
string | $attributes | |
array | $tracks |
anchor(mixed $uri = '', string $title = '', mixed $attributes = '', \Config\App|null $altConfig = null) : string
Anchor Link
Creates an anchor based on the local URL.
mixed | $uri | URI string or array of URI segments |
string | $title | The link title |
mixed | $attributes | Any attributes |
\Config\App|null | $altConfig | Alternate configuration to use |
anchor_popup(string $uri = '', string $title = '', mixed $attributes = false, \Config\App|null $altConfig = null) : string
Anchor Link - Pop-up version
Creates an anchor based on the local URL. The link opens a new window based on the attributes specified.
string | $uri | the URL |
string | $title | the link title |
mixed | $attributes | any attributes |
\Config\App|null | $altConfig | Alternate configuration to use |
audio(mixed $src, string $unsupportedMessage = '', string $attributes = '', array $tracks = array(), boolean $indexPage = false) : string
Audio
Generates an audio element to embed sounds
mixed | $src | Either a source string or an array of sources |
string | $unsupportedMessage | The message to display if the media tag is not supported by the browser. |
string | $attributes | HTML attributes |
array | $tracks | |
boolean | $indexPage |
auto_link(string $str, string $type = 'both', boolean $popup = false) : string
Auto-linker
Automatically links URL and Email addresses. Note: There's a bit of extra code here to deal with URLs or emails that end in a period. We'll strip these off and add them after the link.
string | $str | the string |
string | $type | the type: email, url, or both |
boolean | $popup | whether to create pop-up links |
character_limiter(string $str, integer $n = 500, string $end_char = '…') : string
Character Limiter
Limits the string based on the character count. Preserves complete words so the character count may not be exactly as specified.
string | $str | |
integer | $n | |
string | $end_char | the end character. Usually an ellipsis |
current_url(boolean $returnObject = false) : string|\CodeIgniter\HTTP\URI
Current URL
Returns the full URL (including segments) of the page where this function is placed
boolean | $returnObject | True to return an object instead of a strong |
delete_files(string $path, boolean $del_dir = false, boolean $htdocs = false, integer $_level) : boolean
Delete Files
Deletes all files contained in the supplied directory path. Files must be writable or owned by the system in order to be deleted. If the second parameter is set to true, any directories contained within the supplied base directory will be nuked as well.
string | $path | File path |
boolean | $del_dir | Whether to delete any directories found in the path |
boolean | $htdocs | Whether to skip deleting .htaccess and index page files |
integer | $_level | Current directory depth level (default: 0; internal use only) |
directory_map(string $source_dir, integer $directory_depth, boolean $hidden = false) : array
Create a Directory Map
Reads the specified directory and builds an array representation of it. Sub-folders contained with the directory will be mapped as well.
string | $source_dir | Path to source |
integer | $directory_depth | Depth of directories to traverse (0 = fully recursive, 1 = current dir, etc) |
boolean | $hidden | Whether to show hidden files |
doctype(string $type = 'html5') : string
Doctype
Generates a page document type declaration
Examples of valid options: html5, xhtml-11, xhtml-strict, xhtml-trans, xhtml-frame, html4-strict, html4-trans, and html4-frame. All values are saved in the doctypes config file.
string | $type | The doctype to be generated |
dr_dir_map(string $source_dir, integer $directory_depth, boolean $hidden = FALSE) : array
目录扫描
string | $source_dir | Path to source |
integer | $directory_depth | Depth of directories to traverse (0 = fully recursive, 1 = current dir, etc) |
boolean | $hidden | Whether to show hidden files |
dr_directory_map(string $source_dir, integer $directory_depth, boolean $hidden = FALSE) : array
Create a Directory Map
Reads the specified directory and builds an array representation of it. Sub-folders contained with the directory will be mapped as well.
string | $source_dir | Path to source |
integer | $directory_depth | Depth of directories to traverse (0 = fully recursive, 1 = current dir, etc) |
boolean | $hidden | Whether to show hidden files |
ellipsize(string $str, integer $max_length, mixed $position = 1, string $ellipsis = '…') : string
Ellipsize String
This function will strip tags from a string, split it at its max_length and ellipsize
string | $str | String to ellipsize |
integer | $max_length | Max length of string |
mixed | $position | int (1|0) or float, .5, .2, etc for position to split |
string | $ellipsis | ellipsis ; Default '...' |
Ellipsized string
excerpt(string $text, string $phrase = null, integer $radius = 100, string $ellipsis = '...') : string
Excerpt.
Allows to extract a piece of text surrounding a word or phrase.
string | $text | String to search the phrase |
string | $phrase | Phrase that will be searched for. |
integer | $radius | The amount of characters returned around the phrase. |
string | $ellipsis | Ending that will be appended |
If no $phrase is passed, will generate an excerpt of $radius characters from the beginning of $text.
form_hidden(string|array $name, string|array $value = '', boolean $recursing = false) : string
Hidden Input Field
Generates hidden fields. You can pass a simple key/value string or an associative array with multiple values.
string|array | $name | Field name or associative array to create multiple fields |
string|array | $value | Field value |
boolean | $recursing |
form_input(mixed $data = '', string $value = '', mixed $extra = '', string $type = 'text') : string
Text Input Field. If 'type' is passed in the $type field, it will be used as the input type, for making 'email', 'phone', etc input fields.
mixed | $data | |
string | $value | |
mixed | $extra | |
string | $type |
form_open(string $action = '', array|string $attributes = array(), array $hidden = array()) : string
Form Declaration
Creates the opening portion of the form.
string | $action | the URI segments of the form destination |
array|string | $attributes | a key/value pair of attributes, or string representation |
array | $hidden | a key/value pair hidden data |
form_open_multipart(string $action = '', array|string $attributes = array(), array $hidden = array()) : string
Form Declaration - Multipart type
Creates the opening portion of the form, but with "multipart/form-data".
string | $action | The URI segments of the form destination |
array|string | $attributes | A key/value pair of attributes, or the same as a string |
array | $hidden | A key/value pair hidden data |
get_dir_file_info(string $source_dir, boolean $top_level_only = true, boolean $recursion = false) : array
Get Directory File Information
Reads the specified directory and builds an array containing the filenames, filesize, dates, and permissions
Any sub-folders contained within the specified path are read as well.
string | $source_dir | Path to source |
boolean | $top_level_only | Look only at the top level directory specified? |
boolean | $recursion | Internal variable to determine recursion status - do not use in calls |
get_file_info(string $file, mixed $returned_values = array('name', 'server_path', 'size', 'date')) : array|null
Get File Info
Given a file and path, returns the name, path, size, date modified Second parameter allows you to explicitly declare what information you want returned Options are: name, server_path, size, date, readable, writable, executable, fileperms Returns false if the file cannot be found.
string | $file | Path to file |
mixed | $returned_values | Array or comma separated string of information returned |
get_filenames(string $source_dir, boolean $include_path = false, boolean $recursion = false) : array
Get Filenames
Reads the specified directory and builds an array containing the filenames. Any sub-folders contained within the specified path are read as well.
string | $source_dir | Path to source |
boolean | $include_path | Whether to include the path as part of the filename |
boolean | $recursion | Internal variable to determine recursion status - do not use in calls |
getHttpResponsePOST( $url, $cacert_url, $para, $input_charset = '')
远程获取数据,POST模式 注意: 1.使用Crul需要修改服务器中php.ini文件的设置,找到php_curl.dll去掉前面的";"就行了 2.文件夹中cacert.pem是SSL证书请保证其路径有效,目前默认路径是:getcwd().'\\cacert.pem'
$url | 指定URL完整路径地址 |
|
$cacert_url | 指定当前工作目录绝对路径 |
|
$para | 请求的数据 |
|
$input_charset | 编码格式。默认值:空值 return 远程输出的数据 |
getHttpResponsePOST( $url, $cacert_url, $para, $input_charset = '')
远程获取数据,POST模式 注意: 1.使用Crul需要修改服务器中php.ini文件的设置,找到php_curl.dll去掉前面的";"就行了 2.文件夹中cacert.pem是SSL证书请保证其路径有效,目前默认路径是:getcwd().'\\cacert.pem'
$url | 指定URL完整路径地址 |
|
$cacert_url | 指定当前工作目录绝对路径 |
|
$para | 请求的数据 |
|
$input_charset | 编码格式。默认值:空值 return 远程输出的数据 |
highlight_phrase(string $str, string $phrase, string $tag_open = '<mark>', string $tag_close = '</mark>') : string
Phrase Highlighter
Highlights a phrase within a text string
string | $str | the text string |
string | $phrase | the phrase you'd like to highlight |
string | $tag_open | the opening tag to precede the phrase with |
string | $tag_close | the closing tag to end the phrase with |
increment_string(string $str, string $separator = '_', integer $first = 1) : string
Add's _1 to a string or increment the ending number to allow _2, _3, etc
string | $str | Required |
string | $separator | What should the duplicate number be appended with |
integer | $first | Which number should be used for the first dupe increment |
index_page(\Config\App|null $altConfig = null) : string
Index page
Returns the "index_page" from your config file
\Config\App|null | $altConfig | Alternate configuration to use |
link_tag(mixed $href = '', string $rel = 'stylesheet', string $type = 'text/css', string $title = '', string $media = '', boolean $indexPage = false) : string
Link
Generates link to a CSS file
mixed | $href | Stylesheet href or an array |
string | $rel | |
string | $type | |
string | $title | |
string | $media | |
boolean | $indexPage | should indexPage be added to the CSS path. |
object(string $data, string $type = 'unknown', string $attributes = '', array $params = array(), boolean $indexPage = false) : string
Object
Generates an object element that represents the media as either image or a resource plugin such as audio, video, Java applets, ActiveX, PDF and Flash
string | $data | A resource URL |
string | $type | Content-type of the resource |
string | $attributes | HTML attributes |
array | $params | |
boolean | $indexPage |
param(string $name, string $value, string $type = 'ref', string $attributes = '') : string
Param
Generates a param element that defines parameters for the object element.
string | $name | The name of the parameter |
string | $value | The value of the parameter |
string | $type | The MIME-type |
string | $attributes | HTML attributes |
previous_url(boolean $returnObject = false) : \CodeIgniter\HTTP\URI|mixed|string
Returns the previous URL the current visitor was on. For security reasons we first check in a saved session variable, if it exists, and use that.
If that's not available, however, we'll use a sanitized url from $_SERVER['HTTP_REFERER'] which can be set by the user so is untrusted and not set by certain browsers/servers.
boolean | $returnObject |
random_string(string $type = 'alnum', integer $len = 8) : string
Create a Random String
Useful for generating passwords or hashes.
string | $type | Type of random string. basic, alpha, alnum, numeric, nozero, md5, sha1, and crypto |
integer | $len | Number of characters |
reduce_double_slashes(string $str) : string
Reduce Double Slashes
Converts double slashes in a string to a single slash, except those found in http://
http://www.some-site.com//index.php
becomes:
http://www.some-site.com/index.php
string | $str |
reduce_multiples(string $str, string $character = ',', boolean $trim = false) : string
Reduce Multiples
Reduces multiple instances of a particular character. Example:
Fred, Bill,, Joe, Jimmy
becomes:
Fred, Bill, Joe, Jimmy
string | $str | |
string | $character | the character you wish to reduce |
boolean | $trim | TRUE/FALSE - whether to trim the character from the beginning/end |
set_checkbox(string $field, string $value = '', boolean $default = false) : string
Set Checkbox
Let's you set the selected value of a checkbox via the value in the POST array. If Form Validation is active it retrieves the info from the validation class
string | $field | |
string | $value | |
boolean | $default |
set_cookie(string|array $name, string $value = '', string $expire = '', string $domain = '', string $path = '/', string $prefix = '', boolean $secure = false, boolean $httpOnly = false)
Set cookie
Accepts seven parameters, or you can submit an associative array in the first parameter containing all the values.
string|array | $name | Cookie name or array containing binds |
string | $value | The value of the cookie |
string | $expire | The number of seconds until expiration |
string | $domain | For site-wide cookie. Usually: .yourdomain.com |
string | $path | The cookie path |
string | $prefix | The cookie prefix |
boolean | $secure | True makes the cookie secure |
boolean | $httpOnly | True makes the cookie accessible via http(s) only (no javascript) |
set_radio(string $field, string $value = '', boolean $default = false) : string
Set Radio
Let's you set the selected value of a radio field via info in the POST array. If Form Validation is active it retrieves the info from the validation class
string | $field | |
string | $value | |
boolean | $default |