PHP 클래스 Contao\ArticleModel

상속: extends Model
파일 보기 프로젝트 열기: contao/core-bundle 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$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