trait GroupInherit

Trait that overrides some BaseObject functions to allow inheriting properties from Groups

Classes using this trait must implement GetGroups()

Methods

GetScalar(string $field, bool $allowTemp = true)

No description

TryGetScalar(string $field, bool $allowTemp = true)

No description

GetObject(string $field)

No description

BaseObject|null
TryGetObject(string $field)

No description

BaseObject|null
TryGetInheritsScalarFrom(string $field)

Returns the object that the value of the given field is inherited from

BaseObject|null
TryGetInheritsObjectFrom(string $field)

Returns the object that the value of the given field is inherited from

TryGetInheritable(string $field, bool $useobj = false)

Returns an inherited property value and source pair

Details

at line 817
protected GetScalar(string $field, bool $allowTemp = true)

No description

Parameters

string $field
bool $allowTemp

at line 825
protected TryGetScalar(string $field, bool $allowTemp = true)

No description

Parameters

string $field
bool $allowTemp

at line 832
protected BaseObject GetObject(string $field)

No description

Parameters

string $field

Return Value

BaseObject

at line 840
protected BaseObject|null TryGetObject(string $field)

No description

Parameters

string $field

Return Value

BaseObject|null

at line 848
protected BaseObject|null TryGetInheritsScalarFrom(string $field)

Returns the object that the value of the given field is inherited from

Parameters

string $field

Return Value

BaseObject|null

at line 854
protected BaseObject|null TryGetInheritsObjectFrom(string $field)

Returns the object that the value of the given field is inherited from

Parameters

string $field

Return Value

BaseObject|null

at line 868
protected InheritedProperty TryGetInheritable(string $field, bool $useobj = false)

Returns an inherited property value and source pair

Values can be inherited from this account, from any group it is a member of, or if using a default value, null

Parameters

string $field

the inherited property to find

bool $useobj

true if this is an object reference, not a scalar

Return Value

InheritedProperty

value/source pair