PHP Class Contao\MemberGroupModel

Inheritance: extends Model
Mostra file Open project: contao/core-bundle

Protected Properties

Property Type Description
$strTable string Table name

Public Methods

Method Description
findAllActive ( array $arrOptions = [] ) : Collection | MemberGroupModel | null Find all active groups
findFirstActiveWithJumpToByIds ( string $arrIds ) : MemberGroupModel | null Find the first active group with a published jumpTo page
findPublishedById ( integer $intId, array $arrOptions = [] ) : MemberGroupModel | null Find a published group by its ID

Method Details

findAllActive() public static method

Find all active groups
public static findAllActive ( array $arrOptions = [] ) : Collection | MemberGroupModel | null
$arrOptions array An optional options array
return Contao\Model\Collection | MemberGroupModel | null A collection of models or null if there are no member groups

findFirstActiveWithJumpToByIds() public static method

Find the first active group with a published jumpTo page
Deprecation: Deprecated since Contao 4.0, to be removed in Contao 5.0. Use PageModel::findFirstActiveByMemberGroups() instead.
public static findFirstActiveWithJumpToByIds ( string $arrIds ) : MemberGroupModel | null
$arrIds string An array of member group IDs
return MemberGroupModel | null The model or null if there is no matching member group

findPublishedById() public static method

Find a published group by its ID
public static findPublishedById ( integer $intId, array $arrOptions = [] ) : MemberGroupModel | null
$intId integer The member group ID
$arrOptions array An optional options array
return MemberGroupModel | null The model or null if there is no member group

Property Details

$strTable protected_oe static_oe property

Table name
protected static string $strTable
return string