PHP 클래스 Contao\ContentModel

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

보호된 프로퍼티들

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