FileAccess Orion

NamedBaseContent extends BaseContent
in package

Implement named object

In the fileAccess context most contents are children of this class. With this class the DAB for named object is implemented, these objects do not use a numeric autoincrement id

Tags
category

Content type

author

Tobias Teichner webmaster@teichner.biz

since

File available since v0.137

Table of Contents

__construct()  : mixed
NamedBaseContent constructor.
Delete()  : Result
delete entity from file system and git repository this method can delete this content object from our local storage system
GetPath()  : string|null
Save()  : Result
No automatic if allocation for named based contents

Methods

__construct()

NamedBaseContent constructor.

public __construct(string $type[, string|null $id = null ][, string|null $language = null ]) : mixed

Construct a name based element object

Parameters
$type : string

The element type name

$id : string|null = null

The element id

$language : string|null = null

The local language

Return values
mixed

Delete()

delete entity from file system and git repository this method can delete this content object from our local storage system

public Delete([bool $skip = false ]) : Result
Parameters
$skip : bool = false

Skip hooks on demand

Return values
Result

A default system result set

GetPath()

public GetPath() : string|null
Tags
inheritDoc
Return values
string|null

Save()

No automatic if allocation for named based contents

public Save([bool $force_new_id = false ]) : Result
Parameters
$force_new_id : bool = false
Return values
Result

Search results