PHP Класс Owl\Repositories\Fluent\CommentRepository

Наследование: extends AbstractFluent, implements Owl\Repositories\CommentRepositoryInterface
Показать файл Открыть проект

Защищенные свойства (Protected)

Свойство Тип Описание
$table

Открытые методы

Метод Описание
createComment ( $comment ) : Illuminate\Database\Eloquent\Model Create a new comment.
deleteComment ( $id ) : boolean Delete a comment.
getCommentById ( $id ) : Illuminate\Database\Eloquent\Model Get a comment by comment id.
getCommentUserById ( $id ) : Illuminate\Database\Eloquent\Model Get a comment user by comment id.
getTableName ( ) : string Get a table name.
updateComment ( $id, $body ) : Illuminate\Database\Eloquent\Model Update a comment's body.

Описание методов

createComment() публичный Метод

Create a new comment.
public createComment ( $comment ) : Illuminate\Database\Eloquent\Model
$comment object item_id, user_id, body, username, email
Результат Illuminate\Database\Eloquent\Model

deleteComment() публичный Метод

Delete a comment.
public deleteComment ( $id ) : boolean
$id int
Результат boolean

getCommentById() публичный Метод

Get a comment by comment id.
public getCommentById ( $id ) : Illuminate\Database\Eloquent\Model
$id int
Результат Illuminate\Database\Eloquent\Model

getCommentUserById() публичный Метод

Get a comment user by comment id.
public getCommentUserById ( $id ) : Illuminate\Database\Eloquent\Model
$id int
Результат Illuminate\Database\Eloquent\Model

getTableName() публичный Метод

Get a table name.
public getTableName ( ) : string
Результат string

updateComment() публичный Метод

Update a comment's body.
public updateComment ( $id, $body ) : Illuminate\Database\Eloquent\Model
$id int
$body string
Результат Illuminate\Database\Eloquent\Model

Описание свойств

$table защищенное свойство

protected $table