PHP 클래스 Blog\Model\Comment

상속: extends Eva\Mvc\Model\AbstractModel
파일 보기 프로젝트 열기: gotcms/gotcms 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$name string Table name

공개 메소드들

메소드 설명
add ( array $data, integer $documentId ) : boolean Add command
getDocumentList ( ) : array Return all documents with comment(s)
getList ( integer $documentId = null, null | boolean $isActive = true ) : array Return all comments in document

메소드 상세

add() 공개 메소드

Add command
public add ( array $data, integer $documentId ) : boolean
$data array Array of comments
$documentId integer Document id
리턴 boolean

getDocumentList() 공개 메소드

Return all documents with comment(s)
public getDocumentList ( ) : array
리턴 array

getList() 공개 메소드

Return all comments in document
public getList ( integer $documentId = null, null | boolean $isActive = true ) : array
$documentId integer Document id
$isActive null | boolean Is active
리턴 array

프로퍼티 상세

$name 보호되어 있는 프로퍼티

Table name
protected string $name
리턴 string