PHP Класс Blog\Model\Comment

Наследование: extends Eva\Mvc\Model\AbstractModel
Показать файл Открыть проект Примеры использования класса

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

Свойство Тип Описание
$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