\Home\ControllerArticleController

ThinkPHP API模式控制器基类

Summary

Methods
Properties
Constants
__construct()
__call()
getListArticle()
getArticle()
getArticleIsSelf()
getArticleIsNoSelf()
getSelfTag()
showOneArticle()
getThisArtAuth()
GetArticleComment()
UserComment()
ReadNum()
getAdminArticle()
No public properties found
No constants found
ajaxReturn()
redirect()
No protected properties found
N/A
No private methods found
No private properties found
N/A

Methods

__construct()

__construct() 

架构函数

__call()

__call(string  $method, array  $args) : mixed

魔术方法 有不存在的操作的时候执行

Parameters

string $method

方法名

array $args

参数

Returns

mixed

getListArticle()

getListArticle() 

getArticle()

getArticle(  $num,   $order) 

Parameters

$num
$order

getArticleIsSelf()

getArticleIsSelf(  $num,   $order) 

Parameters

$num
$order

getArticleIsNoSelf()

getArticleIsNoSelf(  $num,   $order) 

Parameters

$num
$order

getSelfTag()

getSelfTag(  $num) 

Parameters

$num

showOneArticle()

showOneArticle() 

getThisArtAuth()

getThisArtAuth(  $user_id) 

Parameters

$user_id

GetArticleComment()

GetArticleComment(  $table,   $article_id) 

Parameters

$table
$article_id

UserComment()

UserComment(  $table,   $data) 

Parameters

$table
$data

ReadNum()

ReadNum(  $table,   $array,   $word) 

Parameters

$table
$array
$word

getAdminArticle()

getAdminArticle(  $num,   $order) 

Parameters

$num
$order

ajaxReturn()

ajaxReturn(mixed  $data, String  $type = '') : void

Ajax方式返回数据到客户端

Parameters

mixed $data

要返回的数据

String $type

AJAX返回数据格式

redirect()

redirect(string  $url, array  $params = array(), integer  $delay, string  $msg = '') : void

Action跳转(URL重定向) 支持指定模块和延时跳转

Parameters

string $url

跳转的URL表达式

array $params

其它URL参数

integer $delay

延时跳转的时间 单位为秒

string $msg

跳转提示信息