s1/appextend.php

零起飞-(07FLY-CRM) ============================================== 版权所有 2015-2028 成都零起飞网络,并保留所有权利。 网站地址: http://www.07fly.xyz ---------------------------------------------------------------------------- 如果商业用途务必到官方购买正版授权, 以免引起不必要的法律纠纷.

============================================== Author: kfrs goodkfrs@QQ.com 574249366 Date: 2019-10-3

Functions

export_excel()

export_excel(string  $titles = '', string  $keys = '', array  $data = array(), string  $file_name = '导出文件') 

导出excel信息

Parameters

string $titles

导出的表格标题

string $keys

需要导出的键名

array $data

需要导出的数据

string $file_name

导出的文件名称

get_excel_obj()

get_excel_obj(  $file_name = '导出文件') 

获取excel

Parameters

$file_name

get_excel_data()

get_excel_data(  $file_url = '',   $start_row = 1,   $start_col) 

读取excel返回数据

Parameters

$file_url
$start_row
$start_col

string_from_column_index()

string_from_column_index(  $pColumnIndex) 

数字转字母

Parameters

$pColumnIndex

send_email()

send_email(  $address,   $title,   $message) 

发送邮件

Parameters

$address
$title
$message

create_barcode()

create_barcode(string  $text = '', string  $file_name = '', string  $path = '', string  $codebar = 'BCGcode39') 

生成条形码

Parameters

string $text

写入内容

string $file_name

文件名称

string $path

条形码保存路径

string $codebar

条形码类型 'BCGcodabar','BCGcode11','BCGcode39','BCGcode39extended','BCGcode93', 'BCGcode128','BCGean8','BCGean13','BCGisbn','BCGi25','BCGs25','BCGmsi', 'BCGupca','BCGupce','BCGupcext2','BCGupcext5','BCGpostnet','BCGothercode'

create_qrcode()

create_qrcode(string  $data = '', string  $path = '', string  $ecc = 'H', integer  $size = 10) 

生成二维码

Parameters

string $data

写入数据

string $path

二维码保存路径

string $ecc

错误修正水平 'L','M','Q','H'

integer $size

二维码大小 1 - 10

getKeywords()

getKeywords(  $title = "",   $content = "") : array

关键字提取方法

Parameters

$title

string 进行分词的标题

$content

string 进行分词的内容

Returns

array —

得到的关键词数组

http()

http(  $method,   $url,   $params = '',   $header = array(),   $timeout = 30,   $options = array()) 

http请求函数

Parameters

$method
$url
$params
$header
$timeout
$options

httpRpc()

httpRpc(  $url,   $params = array(),   $method = 'get') 

httpRpc请求函数=仅供内部使用

Parameters

$url
$params
$method