PHP Class Contao\ContentModel

Inheritance: extends Model
ファイルを表示 Open project: contao/core-bundle Class Usage Examples

Protected Properties

Property Type Description
$strTable string Table name

Public Methods

Method Description
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

Method Details

countPublishedByPidAndTable() public static method

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
return integer The number of matching rows

findPublishedByPidAndTable() public static method

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
return Contao\Model\Collection | ContentModel[] | ContentModel | null A collection of models or null if there are no content elements

Property Details

$strTable protected_oe static_oe property

Table name
protected static string $strTable
return string