Documentation

ApiOpen extends ApiController
in package

Tags
Apidoc\Title

("API 博客")

Table of Contents

Properties

$guest  : mixed
$body_max_len  : mixed
$field  : mixed
$name  : mixed
$table  : mixed

Methods

do_add()  : mixed
do_del()  : mixed
do_edit()  : mixed
get_mine_pager()  : mixed
get_one()  : mixed
get_pager()  : mixed
pager()  : mixed
分页显示

Properties

$body_max_len

protected mixed $body_max_len = 500

$field

protected mixed $field = [ 'title', 'type_id', 'user_id', 'tag', 'image', 'images', 'body', 'blog_status', //draft published 'is_open', ]

$name

protected mixed $name = '博客'

$table

protected mixed $table = 'blog_content'

Methods

do_add()

public do_add() : mixed
Tags
Apidoc\Title

("添加")

Apidoc\Method

("POST")

Apidoc\Query

("title",type="string",require=true,desc="标题")

Apidoc\Query

("body",type="string",require=true,desc="内容")

Apidoc\Query

("type_id",type="string",require=false,desc="分类ID")

Apidoc\Query

("tag",type="string",require=true,desc="标签")

Apidoc\Query

("image",type="string",require=true,desc="主图")

Apidoc\Query

("images",type="string",require=true,desc="图片数组")

do_del()

public do_del() : mixed
Tags
Apidoc\Title

("删除")

Apidoc\Method

("POST")

Apidoc\Query

("id",type="string",require=false,desc="ID")

do_edit()

public do_edit() : mixed
Tags
Apidoc\Title

("修改")

Apidoc\Method

("POST")

Apidoc\Query

("title",type="string",require=true,desc="标题")

Apidoc\Query

("body",type="string",require=true,desc="内容")

Apidoc\Query

("type_id",type="string",require=false,desc="分类ID")

Apidoc\Query

("tag",type="string",require=true,desc="标签")

Apidoc\Query

("image",type="string",require=true,desc="主图")

Apidoc\Query

("images",type="string",require=true,desc="图片数组")

get_mine_pager()

public get_mine_pager() : mixed
Tags
Apidoc\Title

("我发布的")

Apidoc\Method

("POST")

Apidoc\Query

("title",type="string",require=true,desc="标题")

Apidoc\Query

("body",type="string",require=true,desc="内容")

Apidoc\Query

("type_id",type="string",require=false,desc="分类ID")

Apidoc\Query

("tag",type="string",require=true,desc="标签")

Apidoc\Query

("blog_status",type="string",require=true,desc="标签状态")

Apidoc\Query

("user_id",type="string",require=true,desc="")

get_one()

public get_one() : mixed
Tags
Apidoc\Title

("获取一条内容")

Apidoc\Method

("POST")

Apidoc\Query

("title",type="string",require=true,desc="标题")

Apidoc\Query

("body",type="string",require=false,desc="内容")

Apidoc\Query

("type_id",type="string",require=false,desc="分类ID")

Apidoc\Query

("tag",type="string",require=false,desc="标签")

Apidoc\Query

("blog_status",type="string",require=true,desc="标签状态")

get_pager()

public get_pager() : mixed
Tags
Apidoc\Title

("内容列表")

Apidoc\Method

("POST")

Apidoc\Query

("title",type="string",require=true,desc="标题")

Apidoc\Query

("body",type="string",require=true,desc="内容")

Apidoc\Query

("type_id",type="string",require=false,desc="分类ID")

Apidoc\Query

("tag",type="string",require=true,desc="标签")

Apidoc\Query

("blog_status",type="string",require=true,desc="标签状态")

Apidoc\Query

("user_id",type="string",require=true,desc="")

pager()

分页显示

protected pager([mixed $user_id = '' ][, mixed $blog_status = '' ][, mixed $is_open = '' ]) : mixed
Parameters
$user_id : mixed = ''
$blog_status : mixed = ''
$is_open : mixed = ''

        
On this page

Search results