PHP 클래스 Owl\Repositories\Fluent\CommentRepository

상속: extends AbstractFluent, implements Owl\Repositories\CommentRepositoryInterface
파일 보기 프로젝트 열기: owl/owl

보호된 프로퍼티들

프로퍼티 타입 설명
$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