PHP Class PublicSearchModel, thinksns

Author: jason ([email protected])
Inheritance: extends Model
Afficher le fichier Open project: medz/thinksns-4

Méthodes publiques

Свойство Type Description
$appid

Protected Properties

Свойство Type Description
$fields
$tableName

Méthodes publiques

Méthode Description
getTablist ( integer $type, string $tabkey = '' ) : array 根据类型获取提供筛选的Tab数组
initData ( ) 初始化数据,用户数据与分享数据
search ( string $key, integer $limit = 10, integer $type = 1, string $tabkey = '', string $tabvalue = '' ) : array 搜索引擎接口
searchInAll ( string $key ) : array 全站查找接口

Private Methods

Méthode Description
foramtList ( array $list, integer $type ) : array 格式化搜索结果的数据
getWhere ( string $key, integer $type, string $tabkey, string $tabvalue ) : string 获取查询的Query的条件语句
initFeed ( ) : array 初始化分享数据 搜索引擎参数说明 string01:动态title int01: 0 表示应用为核心 int02: 2 表示feed数据 int03: feed_id int04: type int05: uid int06: publish_time int07: is_del 是否删除 int08: from 数据来源(客户端还是网站) content :用户配置数据组合进来
initUser ( ) : array 初始化用户数据 搜索引擎参数说明 string01:用户名 string02:email int01: 0 表示应用为核心 int02: 1 表示用户数据 int03: uid int04: ctime int05: is_active 是否激活 int06: is_audit 是否审核 int07: is_del 是否删除 int08: is_init 是否初始化 content :用户配置数据组合进来int02: 1 表示用户数据

Method Details

getTablist() public méthode

根据类型获取提供筛选的Tab数组
public getTablist ( integer $type, string $tabkey = '' ) : array
$type integer 数据类型
$tabkey string 选定的Tab的Key值
Résultat array 提供筛选的Tab数组

initData() public méthode

初始化数据,用户数据与分享数据
public initData ( )

searchInAll() public méthode

全站查找接口
public searchInAll ( string $key ) : array
$key string 关键字
Résultat array 搜索结果列表数据

Property Details

$appid public_oe property

public $appid

$fields protected_oe property

protected $fields

$tableName protected_oe property

protected $tableName