PHP Class Contao\ContentModel

Inheritance: extends Model
Afficher le fichier Open project: contao/core-bundle Class Usage Examples

Protected Properties

Свойство Type Description
$strTable string Table name

Méthodes publiques

Méthode 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 méthode

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
Résultat integer The number of matching rows

findPublishedByPidAndTable() public static méthode

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
Résultat 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
Résultat string