PHP Класс Contao\ArticleModel

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

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

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

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

Метод Описание
findByIdOrAliasAndPid ( mixed $varId, integer $intPid, array $arrOptions = [] ) : ArticleModel | null Find an article by its ID or alias and its page
findPublishedById ( integer $intId, array $arrOptions = [] ) : ArticleModel | null Find a published article by its ID
findPublishedByIdOrAliasAndPid ( mixed $varId, integer $intPid, array $arrOptions = [] ) : ArticleModel | null Find a published article by its ID or alias and its page
findPublishedByPidAndColumn ( integer $intPid, string $strColumn, array $arrOptions = [] ) : Collection | ArticleModel[] | ArticleModel | null Find all published articles by their parent ID and column
findPublishedWithTeaserByPid ( integer $intPid, array $arrOptions = [] ) : Collection | ArticleModel[] | ArticleModel | null Find all published articles with teaser by their parent ID
findPublishedWithTeaserByPidAndColumn ( integer $intPid, string $strColumn, array $arrOptions = [] ) : Collection | ArticleModel[] | ArticleModel | null Find all published articles with teaser by their parent ID and column

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

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

Find an article by its ID or alias and its page
public static findByIdOrAliasAndPid ( mixed $varId, integer $intPid, array $arrOptions = [] ) : ArticleModel | null
$varId mixed The numeric ID or alias name
$intPid integer The page ID
$arrOptions array An optional options array
Результат ArticleModel | null The model or null if there is no article

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

Find a published article by its ID
public static findPublishedById ( integer $intId, array $arrOptions = [] ) : ArticleModel | null
$intId integer The article ID
$arrOptions array An optional options array
Результат ArticleModel | null The model or null if there is no published article

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

Find a published article by its ID or alias and its page
public static findPublishedByIdOrAliasAndPid ( mixed $varId, integer $intPid, array $arrOptions = [] ) : ArticleModel | null
$varId mixed The numeric ID or alias name
$intPid integer The page ID
$arrOptions array An optional options array
Результат ArticleModel | null The model or null if there is no article

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

Find all published articles by their parent ID and column
public static findPublishedByPidAndColumn ( integer $intPid, string $strColumn, array $arrOptions = [] ) : Collection | ArticleModel[] | ArticleModel | null
$intPid integer The page ID
$strColumn string The column name
$arrOptions array An optional options array
Результат Contao\Model\Collection | ArticleModel[] | ArticleModel | null A collection of models or null if there are no articles in the given column

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

Find all published articles with teaser by their parent ID
public static findPublishedWithTeaserByPid ( integer $intPid, array $arrOptions = [] ) : Collection | ArticleModel[] | ArticleModel | null
$intPid integer The page ID
$arrOptions array An optional options array
Результат Contao\Model\Collection | ArticleModel[] | ArticleModel | null A collection of models or null if there are no articles in the given column

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

Find all published articles with teaser by their parent ID and column
public static findPublishedWithTeaserByPidAndColumn ( integer $intPid, string $strColumn, array $arrOptions = [] ) : Collection | ArticleModel[] | ArticleModel | null
$intPid integer The page ID
$strColumn string The column name
$arrOptions array An optional options array
Результат Contao\Model\Collection | ArticleModel[] | ArticleModel | null A collection of models or null if there are no articles in the given column

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

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

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