TypeRelations
Table of Contents
Methods
- __construct() : mixed
- createFromItem() : static
- Creates object instance from Item
- getParentFieldName() : string
- getParentTypeIds() : array<string|int, int>
- Returns parent relations type ids of item
- isParentFieldName() : bool
- isParentType() : bool
- Returns true if types are bound as parent child
Methods
__construct()
public
__construct(Factory $factory) : mixed
Parameters
- $factory : Factory
createFromItem()
Creates object instance from Item
public
static createFromItem(Item $item) : static
Parameters
- $item : Item
Return values
staticgetParentFieldName()
public
getParentFieldName(int $parentTypeId) : string
Parameters
- $parentTypeId : int
Return values
stringgetParentTypeIds()
Returns parent relations type ids of item
public
getParentTypeIds() : array<string|int, int>
Return values
array<string|int, int>isParentFieldName()
public
isParentFieldName(string $fieldName) : bool
Parameters
- $fieldName : string
Return values
boolisParentType()
Returns true if types are bound as parent child
public
isParentType(int $parentTypeId) : bool
Parameters
- $parentTypeId : int