PHP Класс Contao\ContentModel

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

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

Свойство Тип Описание
$strTable string Table name

Открытые методы

Метод Описание
countPublishedByPidAndTable ( integer $intPid, string $strParentTable, array $arrOptions = [] ) : integer Find all published content elements by their parent ID and parent table
findPublishedByPidAndTable ( integer $intPid, string $strParentTable, array $arrOptions = [] ) : Collection | ContentModel[] | ContentModel | null Find all published content elements by their parent ID and parent table

Описание методов

countPublishedByPidAndTable() публичный статический Метод

Find all published content elements by their parent ID and parent table
public static countPublishedByPidAndTable ( integer $intPid, string $strParentTable, array $arrOptions = [] ) : integer
$intPid integer The article ID
$strParentTable string The parent table name
$arrOptions array An optional options array
Результат integer The number of matching rows

findPublishedByPidAndTable() публичный статический Метод

Find all published content elements by their parent ID and parent table
public static findPublishedByPidAndTable ( integer $intPid, string $strParentTable, array $arrOptions = [] ) : Collection | ContentModel[] | ContentModel | null
$intPid integer The article ID
$strParentTable string The parent table name
$arrOptions array An optional options array
Результат Contao\Model\Collection | ContentModel[] | ContentModel | null A collection of models or null if there are no content elements

Описание свойств

$strTable защищенное статическое свойство

Table name
protected static string $strTable
Результат string