久久调教,免费看黄色影片,www五月,国产精品免费一区二区区,亚洲欧美日韩综合一区,亚洲欧美日韩精品在线,2021免费日韩视频网

龍巖易富通網(wǎng)絡(luò)科技有限公司

龍巖小程序開(kāi)發(fā),龍巖分銷(xiāo)系統(tǒng)

ecshop 函數(shù)列表大全

2017.07.18 | 1800閱讀 | 0條評(píng)論 | 通用代碼

整理匯總?cè)缦拢┐蠹覅⒖肌?/span>

所有函數(shù)功能說(shuō)明: 
lib_time.php
gmtime() 
P: 獲得當(dāng)前格林威治時(shí)間的時(shí)間戳 /$0
server_timezone() 
P: 獲得服務(wù)器的時(shí)區(qū) /$0
local_mktime($hour = NULL , $minute= NULL, $second = NULL, $month = NULL, $day = NULL, $year = NULL) 
P: 生成一個(gè)用戶(hù)自定義時(shí)區(qū)日期的GMT時(shí)間戳
local_date($format, $time = NULL) 
P: 將GMT時(shí)間戳格式化為用戶(hù)自定義時(shí)區(qū)日期
gmstr2time($str) 
P: 轉(zhuǎn)換字符串形式的時(shí)間表達(dá)式為GMT時(shí)間戳
local_strtotime($str) 
P: 將一個(gè)用戶(hù)自定義時(shí)區(qū)的日期轉(zhuǎn)為GMT時(shí)間戳
local_gettime($timestamp = NULL) 
P: 獲得用戶(hù)所在時(shí)區(qū)指定的時(shí)間戳
local_getdate($timestamp = NULL) 
P: 獲得用戶(hù)所在時(shí)區(qū)指定的日期和時(shí)間信息


lib_base.php
sub_str($str, $length = 0, $append = true) 
P: 截取UTF-8編碼下字符串的函數(shù)
real_ip() 
P: 獲得用戶(hù)的真實(shí)IP地址
str_len($str) 
P: 計(jì)算字符串的長(zhǎng)度(漢字按照兩個(gè)字符計(jì)算)
get_crlf() 
P: 獲得用戶(hù)操作系統(tǒng)的換行符
send_mail($name, $email, $subject, $content, $type = 0, $notification=false) 
P: 郵件發(fā)送
gd_version() 
P: 獲得服務(wù)器上的 GD 版本
file_get_contents($file) 
P: 如果系統(tǒng)不存在file_get_contents函數(shù)則聲明該函數(shù)
file_put_contents($file, $data, $flags = ”) 
P: 如果系統(tǒng)不存在file_put_contents函數(shù)則聲明該函數(shù)
floatval($n) 
P: 如果系統(tǒng)不存在 floatval 函數(shù)則聲明該函數(shù)
file_mode_info($file_path) 
P: 文件或目錄權(quán)限檢查函數(shù)
log_write($arg, $file = ”, $line = ”) 
P: 寫(xiě)入日志內(nèi)容
make_dir($folder) 
P: 檢查目標(biāo)文件夾是否存在,如果不存在則自動(dòng)創(chuàng)建該目錄
gzip_enabled() 
P: 獲得系統(tǒng)是否啟用了 gzip
addslashes_deep($value) 
P: 遞歸方式的對(duì)變量中的特殊字符進(jìn)行轉(zhuǎn)義
addslashes_deep_obj($obj) 
P: 將對(duì)象成員變量或者數(shù)組的特殊字符進(jìn)行轉(zhuǎn)義
stripslashes_deep($value) 
P: 遞歸方式的對(duì)變量中的特殊字符去除轉(zhuǎn)義
make_semiangle($str) 
P: 將一個(gè)字串中含有全角的數(shù)字字符、字母、空格或’%+-()’字符轉(zhuǎn)換為相應(yīng)半角字符
check_file_type($filename, $realname = ”, $limit_ext_types = ”) 
P: 檢查文件類(lèi)型 /文件名/真實(shí)文件名/允許的文件類(lèi)型
mysql_like_quote($str) 
P: 對(duì) MYSQL LIKE 的內(nèi)容進(jìn)行轉(zhuǎn)義 過(guò)濾掉_ %等字符.
real_server_ip() 
P: 獲取服務(wù)器的ip
ecs_header($string, $replace = true, $http_response_code = 0) 
P: 自定義 header 函數(shù),用于過(guò)濾可能出現(xiàn)的安全隱患
ecs_iconv($source_lang, $target_lang, $source_string = ”) 
P: 自定義的編碼轉(zhuǎn)換
ecs_geoip($ip) 
P: 取得IP的地址,采用IP庫(kù)
trim_right($str) 
P: 去除字符串右側(cè)可能出現(xiàn)的亂碼
move_upload_file($file_name, $target_name = ”) 
P: 將上傳文件轉(zhuǎn)移到指定位置
json_str_iconv($str) 
P: 將JSON傳遞的參數(shù)轉(zhuǎn)碼
get_file_suffix($file_name, $allow_type = array()) 
P: 獲取文件后綴名,并判斷是否合法
read_static_cache($cache_name) 
P: 讀結(jié)果緩存文件
write_static_cache($cache_name, $caches) 
P: 寫(xiě)結(jié)果緩存文件


lib_common.php (公用函數(shù)庫(kù))
db_create_in($item_list, $field_name = ”) 
P: 創(chuàng)建像這樣的查詢(xún): “IN(’a',’b')” $item_list為數(shù)組
is_email($user_email) 
P: 驗(yàn)證輸入的郵件地址是否合法
is_time($time) 
P: 檢查是否為一個(gè)合法的時(shí)間格式
assign_query_info() 
P: 獲得查詢(xún)時(shí)間和次數(shù),并賦值給smarty
region_result($parent, $sel_name, $type) 
P: 創(chuàng)建地區(qū)的返回信息
get_regions($type = 0, $parent = 0) 
P: 獲得指定國(guó)家的所有省份, 函數(shù)需要數(shù)據(jù)庫(kù)支持.
get_shipping_config($area_id) 
P: 獲得配送區(qū)域中指定的配送方式的配送費(fèi)用的計(jì)算參數(shù) 比如快捷公司不同.
init_users() 
P: 初始化會(huì)員數(shù)據(jù)整合類(lèi)
cat_list($cat_id = 0, $selected = 0, $re_type = true, $level = 0, $is_show_all = true) 
P: 獲得指定分類(lèi)下的子分類(lèi)的數(shù)組, $re_type控制返回類(lèi)型
cat_options($spec_cat_id, $arr) 
P: 過(guò)濾和排序所有分類(lèi),返回一個(gè)帶有縮進(jìn)級(jí)別的數(shù)組
load_config() 
P: 載入配置信息
get_brand_list() 
P: 取得品牌列表
get_brands($cat = 0, $app = ‘brand’) 
P: 獲得某個(gè)分類(lèi)下的品牌列表
get_promotion_info($goods_id = ”) 
P: 所有的促銷(xiāo)活動(dòng)信息
get_children($cat = 0) 
P: 獲得指定分類(lèi)下所有底層分類(lèi)的ID
get_article_children ($cat = 0) 
P: 獲得指定文章分類(lèi)下所有底層分類(lèi)的ID
get_mail_template($tpl_name) 
P: 獲取郵件模板
order_action($order_sn, $order_status, $shipping_status, $pay_status, $note = ”, $username = null) 
P: 記錄訂單操作記錄
price_format($price, $change_price = true) 
P: 格式化商品價(jià)格
get_virtual_goods($order_id, $shipping = false) 
P: 返回訂單中的虛擬商品 記錄是否發(fā)貨.
virtual_goods_ship(&$virtual_goods, &$msg, $order_sn, $return_result = false, $process = ‘other’) 
P: 虛擬商品發(fā)貨
virtual_card_shipping ($goods, $order_sn, &$msg, $process = ‘other’) 
P: 虛擬卡發(fā)貨
virtual_card_result($order_sn, $goods) 
P: 返回虛擬卡信息
get_snatch_result($id) 
P: 獲取指定 id snatch 活動(dòng)的結(jié)果
clear_tpl_files($is_cache = true, $ext = ”) 
P: 清除指定后綴的模板緩存或編譯文件
clear_compiled_files($ext = ”) 
P: 清除模版編譯文件
clear_cache_files($ext = ”) 
P: 清除緩存文件
clear_all_files($ext = ”) 
P: 清除模版編譯和緩存文件
smarty_insert_scripts($args) 
P: 頁(yè)面上調(diào)用的js文件,組合功能.
smarty_create_pages($params) 
P: 創(chuàng)建分頁(yè)的列表
build_uri($app, $params, $append = ”, $page = 0, $size = 0) 
P: 重寫(xiě) URL 地址
formated_weight($weight) 
P: 格式化重量
log_account_change($user_id, $user_money = 0, $frozen_money = 0, $rank_points = 0, $pay_points = 0, $change_desc = ”, $change_type = ACT_OTHER) 
P: 記錄帳戶(hù)變動(dòng)
article_cat_list($cat_id = 0, $selected = 0, $re_type = true, $level = 0) 
P: 獲得指定分類(lèi)下的子分類(lèi)的數(shù)組/ 向下取數(shù)組.
article_cat_options($spec_cat_id, $arr) 
P: 過(guò)濾和排序所有文章分類(lèi),返回一個(gè)帶有縮進(jìn)級(jí)別的數(shù)組
uc_call($func, $params=null) 
P: 調(diào)用UCenter的函數(shù)
exception_handler($errno, $errstr, $errfile, $errline) 
P: error_handle回調(diào)函數(shù)未啟用.
get_image_path($goods_id, $image=”, $thumb=false, $call=’goods’, $del=false) 
P: 重新獲得商品圖片與商品相冊(cè)的地址
user_uc_call($func, $params = null) 
P: 調(diào)用使用UCenter插件時(shí)的函數(shù)
get_volume_price_list($goods_id, $price_type = ‘1′) 
P: 取得商品優(yōu)惠價(jià)格列表
get_final_price($goods_id, $goods_num = ‘1′, $is_spec_price = false, $spec = array()) 
P: 取得商品最終使用價(jià)格

get_package_info($id) 
P: 獲取指定id package 的信息
get_package_goods($package_id) 
P: 獲得指定禮包的商品


lib_main.php (前臺(tái)公用函數(shù)庫(kù))
update_user_info() 
P: 更新用戶(hù)SESSION,COOKIE及登錄時(shí)間、登錄次數(shù)。
get_user_info($id=0) 
P: 獲取用戶(hù)信息數(shù)組
assign_ur_here($cat = 0, $str = ”) 
P: 取得當(dāng)前位置和頁(yè)面標(biāo)題
get_parent_cats($cat) 
P: 獲得指定分類(lèi)的所有上級(jí)分類(lèi)
build_pagetitle($arr, $type = ‘category’) 
P: 根據(jù)提供的數(shù)組編譯成頁(yè)面標(biāo)題
build_urhere($arr, $type = ‘category’) 
P: 根據(jù)提供的數(shù)組編譯成當(dāng)前位置
assign_dynamic($tmp 
P: 獲得指定頁(yè)面的動(dòng)態(tài)內(nèi)容
assign_articles($id, $num) 
P: 分配文章列表給smarty
get_shop_help() 
P: 分配幫助信息
assign_pager($app, $cat, $record_count, $size, $sort, $order, $page = 1,$keywords = ”, $brand = 0, $price_min = 0, $price_max = 0, $display_type = ‘list’, $filter_attr=”, $url_format=”, $sch_array=”) 
P: 創(chuàng)建分頁(yè)信息.分頁(yè)函數(shù).
get_pager($url, $param, $record_count, $page = 1, $size = 10) 
P: 生成給pager.lbi賦值的數(shù)組
get_vote($id = ”) 
P: 調(diào)用調(diào)查內(nèi)容
get_user_browser() 
P: 獲得瀏覽器名稱(chēng)和版本
is_spider($record = true) 
P: 判斷是否為搜索引擎蜘蛛
get_os() 
P: 獲得客戶(hù)端的操作系統(tǒng)
visit_stats() 
P: 統(tǒng)計(jì)訪問(wèn)信息
save_searchengine_keyword($domain, $path) 
P: 保存搜索引擎關(guān)鍵字
get_tags($goods_id = 0, $user_id = 0) 
P: 獲得指定用戶(hù)、商品的所有標(biāo)記
get_dyna_libs($theme, $tmp) 
P: 獲取指定主題某個(gè)模板的主題的動(dòng)態(tài)模塊
dyna_libs_replace($matches) 
P: 換動(dòng)態(tài)模塊
upload_file($upload, $type) 
P: 處理上傳文件,并返回上傳圖片名(上傳失敗時(shí)返回圖片名為空)
show_message($content, $links = ”, $hrefs = ”, $type = ‘info’, $auto_redirect = true) 
P: 顯示一個(gè)提示信息
parse_rate_value($str, &$operate) 
P: 將一個(gè)形如+10, 10, -10, 10%的字串轉(zhuǎn)換為相應(yīng)數(shù)字,并返回操作符號(hào)
recalculate_price() 
P: 重新計(jì)算購(gòu)物車(chē)中的商品價(jià)格:目的是當(dāng)用戶(hù)登錄時(shí)享受會(huì)員價(jià)格,當(dāng)用戶(hù)退出登錄時(shí)不享受會(huì)員價(jià)格
assign_comment($id, $type, $page = 1) 
P: 查詢(xún)?cè)u(píng)論內(nèi)容
assign_template($ctype = ”, $catlist = array()) 
P: 默認(rèn)的smarty賦值
time2gmt($time) 
P: 將一個(gè)本地時(shí)間戳轉(zhuǎn)成GMT時(shí)間戳
get_user_bonus($user_id = 0) 
P: 查詢(xún)會(huì)員的紅包金額
set_affiliate() 
P: 保存推薦uid
get_affiliate() 
P: 獲取推薦uid
article_categories_tree($cat_id = 0) 
P: 獲得指定分類(lèi)同級(jí)的所有分類(lèi)以及該分類(lèi)下的子分類(lèi)
get_article_parent_cats($cat) 
P: 獲得指定文章分類(lèi)的所有上級(jí)分類(lèi)
get_library_number($library, $template = null) 
P: 取得某模板某庫(kù)設(shè)置的數(shù)量
get_navigator($ctype = ”, $catlist = array()) 
P: 取得自定義導(dǎo)航欄列表
license_info() 
P: 授權(quán)信息內(nèi)容


lib_insert.php (動(dòng)態(tài)內(nèi)容函數(shù)庫(kù))
insert_query_info() 
P: 獲得查詢(xún)次數(shù)以及查詢(xún)時(shí)間
insert_history() 
P: 調(diào)用瀏覽歷史
insert_cart_info() 
P: 調(diào)用購(gòu)物車(chē)信息
insert_ads($arr) 
P: 調(diào)用指定的廣告位的廣告
insert_member_info() 
P: 調(diào)用會(huì)員信息
insert_comments($arr) 
P: 調(diào)用評(píng)論信息
insert_vote() 
P: 調(diào)用在線(xiàn)調(diào)查信息


lib_goods.php (商品相關(guān)函數(shù)庫(kù))
goods_sort($goods_a, $goods_b) 
P: 商品推薦usort用自定義排序行數(shù)
get_categories_tree($cat_id = 0) 
P: 獲得指定分類(lèi)同級(jí)的所有分類(lèi)以及該分類(lèi)下的子分類(lèi)
get_child_tree($tree_id = 0) 
P: 取和指定分類(lèi)ID下的分類(lèi)樹(shù)
get_top10($cats = ”) 
P: 調(diào)用當(dāng)前分類(lèi)的銷(xiāo)售排行榜
get_recommend_goods($type = ”, $cats = ”) 
P: 獲得推薦商品
get_promote_goods($cats = ”) 
P: 獲得促銷(xiāo)商品
get_category_recommend_goods($type = ”, $cats = ”, $brand = 0, $min =0, $max = 0, $ext=”) 
P: 獲得指定分類(lèi)下的推薦商品
get_goods_info($goods_id) 
P: 獲得商品的詳細(xì)信息
get_goods_properties($goods_id) 
P: 獲得商品的屬性和規(guī)格
get_same_attribute_goods($attr) 
P: 獲得屬性相同的商品
get_goods_gallery($goods_id) 
P: 獲得指定商品的相冊(cè)
assign_cat_goods($cat_id, $num = 0, $from = ‘web’) 
P: 獲得指定分類(lèi)下的商品
assign_brand_goods($brand_id, $num = 0, $cat_id = 0) 
P: 獲得指定的品牌下的商品
get_extension_goods($cats) 
P: 獲得所有擴(kuò)展分類(lèi)屬于指定分類(lèi)的所有商品ID
bargain_price($price, $start, $end) 
P: 判斷某個(gè)商品是否正在特價(jià)促銷(xiāo)期
spec_price($spec) 
P: 獲得指定的規(guī)格的價(jià)格
group_buy_info($group_buy_id, $current_num = 0) 
P: 取得團(tuán)購(gòu)活動(dòng)信息
group_buy_stat($group_buy_id, $deposit) 
P: 取得某團(tuán)購(gòu)活動(dòng)統(tǒng)計(jì)信息
group_buy_status($group_buy) 
P: 獲得團(tuán)購(gòu)的狀態(tài)
auction_info($act_id, $config = false) 
P: 取得拍賣(mài)活動(dòng)信息
auction_log($act_id) 
P: 取得拍賣(mài)活動(dòng)出價(jià)記錄
auction_status($auction) 
P: 計(jì)算拍賣(mài)活動(dòng)狀態(tài)(注意參數(shù)一定是原始信息)
goods_info($goods_id) 
P: 取得商品信息
favourable_info($act_id) 
P: 取得優(yōu)惠活動(dòng)信息
wholesale_info($act_id) 
P: 批發(fā)信息
add_style($goods_name, $style) 
P: 添加商品名樣式
get_goods_attr($goods_id) 
P: 取得商品屬性
get_goods_fittings($goods_list = array()) 
P: 獲得購(gòu)物車(chē)中商品的配件


lib_article.php (文章及文章分類(lèi)相關(guān)函數(shù)庫(kù))
get_cat_articles($cat_id, $page = 1, $size = 20 ,$requirement=”) 
P: 獲得文章分類(lèi)下的文章列表
get_article_count($cat_id ,$requirement=”) 
P: 獲得指定分類(lèi)下的文章總數(shù)


贊 (

發(fā)表評(píng)論