BaseRelation
extends BaseContent
in package
Table of Contents
- $storage : string
- is either a extension or a content relation
- __construct() : mixed
- Relation constructor.
- Directory() : Folder
- GetFolder() : string
- Get the parent folder of the relation
- Save() : Result|void|null
Properties
$storage
is either a extension or a content relation
protected
string
$storage
= ''
The storage, extensions|relations
Methods
__construct()
Relation constructor.
public
__construct(string $root[, string|null $id = null ][, string|null $language = null ][, string $sub_type = 'relation' ]) : mixed
Parameters
- $root : string
-
The root folder, cal also be the id
- $id : string|null = null
-
The relation id or, null for new relations
- $language : string|null = null
-
The local language
- $sub_type : string = 'relation'
-
A possible sub type
Return values
mixed —Directory()
public
Directory() : Folder
Return values
Folder —GetFolder()
Get the parent folder of the relation
public
GetFolder() : string
Return values
string —Save()
public
Save([false $force_new_id = false ]) : Result|void|null
Parameters
- $force_new_id : false = false