PHP Class Blog\Model\Comment

Inheritance: extends Eva\Mvc\Model\AbstractModel
Datei anzeigen Open project: gotcms/gotcms Class Usage Examples

Protected Properties

Property Type Description
$name string Table name

Public Methods

Method Description
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

Method Details

add() public method

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

getDocumentList() public method

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

getList() public method

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

Property Details

$name protected_oe property

Table name
protected string $name
return string