helper.php
Table of Contents
Constants
- thefunpower_mongo_dir = __DIR__
Functions
- get_env() : mixed
- 获取ENV
- set_env() : mixed
- 设置ENV
- set_config() : mixed
- get_config() : mixed
- get_id_by_auto_insert() : mixed
- 设置或取ID
- get_all_or_one() : mixed
- 取一条或多条记录 get_all_or_one("novel_book",$where,'get_novel_book_row');
- db_set_field_type() : mixed
- db_reset_data_by_filed_type() : mixed
- 权限字段类型设置值
Constants
thefunpower_mongo_dir
public
mixed
thefunpower_mongo_dir
= __DIR__
Functions
get_env()
获取ENV
get_env(mixed $key) : mixed
Parameters
- $key : mixed
set_env()
设置ENV
set_env(mixed $key, mixed $val) : mixed
Parameters
- $key : mixed
- $val : mixed
set_config()
set_config(mixed $title, mixed $body) : mixed
Parameters
- $title : mixed
- $body : mixed
get_config()
get_config(mixed $title) : mixed
Parameters
- $title : mixed
get_id_by_auto_insert()
设置或取ID
get_id_by_auto_insert(mixed $table[, mixed $data = [] ][, mixed $where = [] ][, mixed $has_time_and_update = false ]) : mixed
Parameters
- $table : mixed
- $data : mixed = []
- $where : mixed = []
- $has_time_and_update : mixed = false
get_all_or_one()
取一条或多条记录 get_all_or_one("novel_book",$where,'get_novel_book_row');
get_all_or_one(mixed $table, mixed $where[, mixed $fun = '' ][, mixed $limit = '' ]) : mixed
Parameters
- $table : mixed
- $where : mixed
- $fun : mixed = ''
- $limit : mixed = ''
db_set_field_type()
db_set_field_type(mixed $table, mixed $data) : mixed
Parameters
- $table : mixed
- $data : mixed
db_reset_data_by_filed_type()
权限字段类型设置值
db_reset_data_by_filed_type(mixed $table, mixed &$data) : mixed
Parameters
- $table : mixed
- $data : mixed