>  기사  >  백엔드 개발  >  ECshop 기본 기능 전체 목록

ECshop 기본 기능 전체 목록

巴扎黑
巴扎黑원래의
2016-11-23 15:52:171123검색

lib_time.php
gmtime()
P: 현재 그리니치 시간 타임스탬프/$0 가져오기
server_timezone()
P: 서버의 시간대 가져오기/$0
local_mktime( $hour = NULL, $분= NULL, $second = NULL, $month = NULL, $day = NULL, $year = NULL)
P: 사용자 정의 시간대 날짜의 GMT 타임스탬프 생성
local_date ( $format, $time = NULL)
P: GMT 타임스탬프를 사용자 정의 시간대 날짜로 형식 지정
gmstr2time($str)
P: 문자열 형식의 시간 표현을 GMT 타임스탬프
local_strtotime으로 변환 ($str)
P: 사용자 정의 시간대의 날짜를 GMT 타임스탬프로 변환
local_gettime($timestamp = NULL)
P: 사용자 시간대에 지정된 타임스탬프 가져오기
local_getdate($timestamp = NULL)
P: 사용자의 시간대에 지정된 날짜 및 시간 정보를 가져옵니다.

lib_base.php
sub_str($str, $length = 0, $append = true )
P: UTF-8로 인코딩된 문자열을 가로채는 함수
real_ip()
P: 사용자의 실제 IP 주소 가져오기
str_len($str)
P: 문자열 계산 길이 ( 한자는 2자로 계산됩니다.)
get_crlf()
P: 사용자 운영체제의 줄바꿈 ​​문자를 가져옵니다.
send_mail($name, $email, $subject, $content, $type = 0 , $notification=false)
P: 이메일 보내기
gd_version()
P: 서버에서 GD 버전 가져오기
file_get_contents($file)
P: file_get_contents 함수가 수행하는지 선언 시스템에 존재하지 않습니다. 이 함수
file_put_contents($file, $data, $flags = '')
P: file_put_contents 함수가 시스템에 없으면 이 함수를 선언하세요.
floatval($n )
P: 시스템이 그렇지 않은 경우 floatval 함수가 있는 경우
file_mode_info($file_path) 함수 선언
P: 파일 또는 디렉터리 권한 확인 함수
log_write($arg, $file = '', $line = '')
P : 로그 내용 쓰기
make_dir($folder)
P : 대상 폴더가 있는지 확인하고, 없으면 자동으로 디렉터리를 생성합니다.
gzip_enabled()
P: 시스템에서 gzip이 활성화되어 있는지 확인
addslashes_deep($value)
P: 변수의 특수 문자를 재귀적으로 이스케이프
addslashes_deep_obj($obj)
P: 이스케이프 객체 멤버 변수 또는 배열의 특수 문자
stripslashes_deep($value)
P: 변수의 특수 문자를 재귀적으로 제거
make_semiangle($str)
P: 전폭 숫자 및 문자를 포함 string , 공백 또는 '%+-()' 문자는 해당 반각 문자로 변환됩니다.
check_file_type($filename, $realname = '', $limit_ext_types = '')
P: 파일 유형/파일 확인 이름/실제 파일 이름/허용되는 파일 유형
mysql_like_quote($str)
P: MYSQL LIKE의 내용을 이스케이프하고 _ %와 같은 문자를 필터링합니다.
real_server_ip()
P: 가져오기 서버의 IP
ecs_header($string, $replace = true, $http_response_code = 0)
P: 가능한 보안 위험을 필터링하는 데 사용되는 사용자 정의 헤더 기능
ecs_iconv($source_lang, $target_lang, $source_string = ' ')
P: 사용자 정의 인코딩 변환
ecs_geoip($ip)
P: IP 라이브러리를 사용하여 IP 주소 가져오기
trim_right($str)
P: 올바른 문자열 제거 가능 측면의 깨진 문자
move_upload_file($file_name, $target_name = '')
P: 업로드된 파일을 지정된 위치로 이동
json_str_iconv($str)
P: 전달된 매개변수를 변환 JSON 코드
get_file_suffix($file_name, $allow_type = array())
P: 파일 접미사 이름을 가져오고 적합한지 확인
read_static_cache($cache_name)
P: 결과 캐시 읽기 file
write_static_cache($cache_name, $caches)
P: 쓰기 결과 캐시 파일

lib_common.php(공용 함수 라이브러리)
db_create_in($item_list, $field_name = '')
P: 다음과 같은 쿼리를 생성하세요: "IN('a','b')" $item_list는 배열입니다
is_email($user_email)
P: 입력한 이메일 주소가 합법적인지 확인하세요
is_time($time)
P: 적법한 시간 형식인지 확인
asset_query_info()
P: 쿼리 시간과 번호를 가져와서 smarty
region_result($parent, $sel_name, $type)
P: 지역 생성을 위한 정보 반환
get_regions($type = 0, $parent = 0)
P: 지정된 국가의 모든 주를 가져옵니다. 이 기능에는 데이터베이스 지원이 필요합니다.
get_shipping_config($area_id)
P: 택배사 등 배송 지역에 지정된 배송 방법에 대한 배송비 계산 매개변수를 가져옵니다.
init_users()
P: 회원을 초기화합니다. 데이터 통합 ​​클래스
cat_list($cat_id = 0, $selected = 0, $re_type = true, $level = 0, $is_show_all = true)
P: 지정된 카테고리 $re_type 아래의 하위 카테고리 배열을 가져옵니다. 반환 유형 제어
cat_options($spec_cat_id, $arr)
P: 모든 카테고리를 필터링 및 정렬하고 들여쓰기 수준이 있는 배열을 반환합니다.
load_config()
P: 구성 정보 로드
get_brand_list()
P: 브랜드 목록 가져오기
get_brands($cat = 0, $app = '브랜드')
P: 특정 카테고리의 브랜드 목록 가져오기
get_promotion_info($goods_id = '')
P: 모든 프로모션 정보
get_children($cat = 0)
P: 지정된 카테고리 아래의 모든 기본 카테고리 ID 가져오기
get_article_children($cat = 0)
P: 지정된 기사 카테고리 아래의 모든 기본 카테고리 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: 제품 가격 형식
get_virtual_goods($order_id, $shipping = false)
P: 주문의 가상 제품 기록이 변경되었는지 여부를 반환합니다.
virtual_goods_ship(&$virtual_goods, &$msg, $order_sn, $return_result = false, $process = 'other')
P: 가상 상품 배송
virtual_card_shipping($goods, $order_sn, & $ msg, $process = 'other')
P: 가상 카드 배송
virtual_card_result($order_sn, $goods)
P: 가상 카드 정보 반환
get_snatch_result($id)
P : 지정된 ID를 가진 스내치 활동의 결과를 가져옵니다.
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: 페이지에서 호출된 js 파일, 결합된 함수
smarty_create_pages($params)
P: 페이지 매김 목록 생성
build_uri( $app, $params, $append = '', $page = 0, $size = 0)
P: 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: 계정 변경 사항 기록
article_cat_list($cat_id = 0, $selected = 0, $re_type = true, $level = 0)
P: 지정된 카테고리 아래의 하위 카테고리 배열 가져오기/아래로 배열 가져오기
article_cat_options($spec_cat_id, $arr)
P: 모든 기사 카테고리를 필터링하고 정렬하고 들여쓰기 수준의 배열을 반환합니다.
uc_call($func, $params=null)
P: UCenter 함수 호출
Exception_handler($errno, $errstr, $errfile , $errline)
P: error_handle 콜백 기능이 활성화되지 않았습니다.
get_image_path($goods_id, $image='', $thumb=false, $call='goods', $del=false)
P : 제품 사진, 제품 앨범 주소 조회
user_uc_call($func, $params = null)
P : UCenter 플러그인 사용 시 함수 호출
get_volume_price_list($goods_id, $ Price_type = '1')
P: 제품 할인 가격 목록 가져오기
get_final_price($goods_id, $goods_num = '1', $is_spec_price = false, $spec = array())
P: 가져오기 상품의 최종 가격
get_package_info($id)
P: 지정된 ID 패키지의 정보 가져오기
get_package_goods($package_id)
P: 지정된 선물 패키지의 상품 가져오기

lib_main.php(프런트 엔드 공용 함수 라이브러리)
update_user_info()
P: 사용자 SESSION, COOKIE, 로그인 시간 및 로그인 횟수를 업데이트합니다.
get_user_info($id=0)
P: 사용자 정보 배열 가져오기
asset_ur_here($cat = 0, $str = '')
P: 현재 위치 및 페이지 제목 가져오기
get_parent_cats ($cat)
P: 지정된 카테고리의 모든 상위 카테고리 가져오기
build_pagetitle($arr, $type = 'category')
P: 제공된 배열에 따라 페이지 제목 컴파일
build_urhere($ arr, $type = 'category')
P: 제공된 배열에 따라 현재 위치를 컴파일
sign_dynamic($tmp
P: 지정된 페이지의 동적 콘텐츠 가져오기
할당_articles($id, $num )
P: 기사 목록을 smarty에 할당
get_shop_help()
P: 도움말 정보 할당
sign_pager($app, $cat, $record_count, $size, $ 정렬, $order, $page = 1,$keywords = '', $brand = 0, $price_min = 0, $price_max = 0, $display_type = 'list', $filter_attr='', $url_format='', $sch_array='')
P: 페이징 정보를 생성합니다.
get_pager($url, $param, $record_count, $page = 1, $size = 10)
P: 배열을 생성합니다. pager.lbi에 할당됨
get_vote($id = '')
P: 설문조사 콘텐츠 호출
get_user_browser()
P: 브라우저 이름 및 버전 가져오기
is_spider($record = true)
P: 검색엔진 스파이더인지 확인
get_os()
P: 클라이언트 운영체제 가져오기
visit_stats()
P: 통계적 접근 정보
save_searchengine_keyword($domain, $path)
P: 검색 엔진 키워드 저장
get_tags($goods_id = 0, $user_id = 0)
P: 지정된 사용자 및 제품의 모든 태그 가져오기
get_dyna_libs($theme, $tmp)
P: 지정된 테마 템플릿의 테마 동적 모듈 가져오기
dyna_libs_replace($matches)
P: 동적 모듈 교체
upload_file( $upload, $type )
P: 업로드된 파일을 처리하고 업로드된 이미지 이름을 반환합니다(업로드 실패 시 반환된 이미지 이름은 비어 있음)
show_message($content, $links = '', $hrefs = '', $type = 'info', $auto_redirect = true)
P: 프롬프트 메시지 표시
parse_rate_value($str, &$operate)
P: +10 형식으로 문자열 변환 , 10, -10, 10% 해당 숫자로 변환하고 연산 기호를 반환
recalculate_price()
P: 장바구니에 담긴 상품의 가격을 다시 계산합니다. 목적은 구매 시 회원 가격을 누리는 것입니다. 사용자가 로그인하고 로그아웃 시 회원가를 즐길 수 없습니다.
sign_comment($id, $type, $page = 1)
P: 댓글 내용 쿼리
sign_template($ctype = '' , $catlist = array())
P: 기본 스마트 할당
time2gmt($time)
P: 로컬 타임스탬프를 GMT 타임스탬프로 변환
get_user_bonus($user_id = 0)
P: 회원의 빨간 봉투 금액 조회
set_affiliate()
P: 추천 uid 저장
get_affiliate()
P: 추천 uid 가져오기
article_categories_tree($cat_id = 0)
P : 지정된 카테고리와 동일한 수준에 있는 모든 카테고리 및 이 카테고리 아래의 하위 카테고리를 가져옵니다.
get_article_parent_cats($cat)
P: 지정된 기사 카테고리의 모든 상위 카테고리를 가져옵니다.
get_library_number($library, $template = null)
P: 특정 템플릿 및 라이브러리 설정 수 가져오기
get_navigator($ctype = '', $catlist = array())
P: 사용자 정의 탐색 모음 목록 가져오기
license_info( )
P: 인증 정보 콘텐츠

lib_insert.php (동적 콘텐츠 함수 라이브러리)
insert_query_info()
P: 쿼리 횟수 및 쿼리 시간 가져오기
insert_history()
P: 검색 기록 호출
insert_cart_info()
P: 장바구니 정보 호출
insert_ads($arr)
P: 지정된 광고 슬롯의 광고 호출
insert_member_info( )
P: 회원정보 호출
insert_comments($arr)
P: 댓글 정보 호출
insert_vote()
P: 온라인 설문조사 정보 호출

lib_goods. php (제품 관련 함수 라이브러리)
goods_sort($goods_a, $goods_b)
P: 제품 추천 usort 사용자 정의 정렬 수 행 사용
get_categories_tree($cat_id = 0)
P: 모두 가져오기 지정된 카테고리와 동일한 레벨의 카테고리 및 이 카테고리 아래의 하위 카테고리
get_child_tree($tree_id = 0)
P : 지정된 카테고리 ID 아래의 분류 트리 가져오기 및 가져오기
get_top10($cats = '' )
P: 현재 카테고리의 판매 순위 호출
get_recommend_goods($type = '', $cats = '')
P: 추천 상품 받기
get_promote_goods($cats = '')
P: 프로모션 제품 받기
get_category_recommend_goods($type = '', $cats = '', $brand = 0, $ min =0, $max = 0, $ext='')
P : 해당 카테고리의 추천상품을 조회
get_goods_info($goods_id)
P : 상품 상세정보 조회
get_goods_properties( $goods_id)
P : 상품의 속성, 스펙 조회
get_same_attribute_goods($attr)
P: 동일한 속성의 상품 가져오기
get_goods_gallery($goods_id)
P: 지정된 상품의 사진 앨범 가져오기
asset_cat_goods($cat_id, $ num = 0, $from = 'web')
P: 지정된 카테고리에서 상품 가져오기
asset_brand_goods($brand_id, $num = 0, $cat_id = 0)
P: 지정된 카테고리에서 상품 가져오기 지정된 브랜드
get_extension_goods($cats)
P: 지정된 카테고리에 속하는 모든 확장 카테고리의 모든 제품 ID를 가져옵니다.
bargain_price($price, $start, $end)
P: 결정 특별 프로모션 기간인지 여부
spec_price($spec)
P: 지정된 사양의 가격을 가져옵니다.
group_buy_info($group_buy_id, $current_num = 0)
P: 공동 구매를 가져옵니다. 활동 정보
group_buy_stat($group_buy_id, $deposit)
P: 특정 공동 구매 활동에 대한 통계 정보 가져오기
group_buy_status($group_buy)
P: 공동 구매 상태 가져오기
auction_info ($act_id , $config = false)
P: 경매 활동 정보 가져오기
auction_log($act_id)
P: 경매 활동 입찰 기록 가져오기
auction_status($auction)
P: 계산 경매 활동 상태 (매개변수는 원본 정보여야 함)
goods_info($goods_id)
P: 상품 정보 가져오기
favourable_info($act_id)
P: 프로모션 정보 가져오기
Wholesale_info($act_id)
P: 도매 정보
add_style($goods_name, $style)
P: 상품명 스타일 추가
get_goods_attr($goods_id)
P: 상품 속성 가져오기
get_goods_fittings($goods_list = array())
P: 장바구니에 담긴 상품의 액세서리 가져오기

lib_article.php(상품 관련 함수 라이브러리 및 상품 분류)
get_cat_articles($ cat_id, $page = 1, $size = 20 ,$requirement='')
P: 기사 카테고리 아래 기사 목록 가져오기
get_article_count($cat_id ,$requirement='')
P : 지정된 카테고리의 기사 목록을 가져옵니다. 총 기사 수

성명:
본 글의 내용은 네티즌들의 자발적인 기여로 작성되었으며, 저작권은 원저작자에게 있습니다. 본 사이트는 이에 상응하는 법적 책임을 지지 않습니다. 표절이나 침해가 의심되는 콘텐츠를 발견한 경우 admin@php.cn으로 문의하세요.