\SimpleBlog\ModelCommentModel

Summary

Methods
Properties
Constants
getList()
get()
add()
update()
delete()
getListByArticle()
addData()
$table_name
No constants found
No protected methods found
No protected properties found
N/A
No private methods found
No private properties found
N/A

Properties

$table_name

$table_name : 

Type

Methods

getList()

getList(\SimpleBlog\Model\int  $page = 1, \SimpleBlog\Model\int  $page_size = 10) 

Parameters

\SimpleBlog\Model\int $page
\SimpleBlog\Model\int $page_size

get()

get(  $id) 

Parameters

$id

add()

add(  $data) 

Parameters

$data

update()

update(  $id,   $data) 

Parameters

$id
$data

delete()

delete(  $id) 

Parameters

$id

getListByArticle()

getListByArticle(  $article_id, \SimpleBlog\Model\int  $page = 1, \SimpleBlog\Model\int  $page_size = 10) 

Parameters

$article_id
\SimpleBlog\Model\int $page
\SimpleBlog\Model\int $page_size

addData()

addData(  $user_id,   $article_id,   $content) 

Parameters

$user_id
$article_id
$content