PHP Class Blog\Model\Comment

Inheritance: extends Eva\Mvc\Model\AbstractModel
Afficher le fichier Open project: gotcms/gotcms Class Usage Examples

Protected Properties

Свойство Type Description
$name string Table name

Méthodes publiques

Méthode 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 méthode

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

getDocumentList() public méthode

Return all documents with comment(s)
public getDocumentList ( ) : array
Résultat array

getList() public méthode

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

Property Details

$name protected_oe property

Table name
protected string $name
Résultat string