\FAA\Obj\GenericNamedBaseContent

Summary

Methods
Properties
Constants
__construct()
Save()
Delete()
GetPath()
No public properties found
No constants found
No protected methods found
No protected properties found
N/A
No private methods found
No private properties found
N/A

Methods

__construct()

__construct(string  $type,string  $id = null,string  $language = null)

NamedBaseContent constructor.

Construct a name based element object

Parameters

string $type

The element type name

string $id

The element id

string $language

The local language

Save()

Save(boolean  $force_new_id = false): \FAA\Obj\Result

No automatic if allocation for named based contents

Parameters

boolean $force_new_id

Returns

\FAA\Obj\Result

Delete()

Delete(boolean  $skip = false): \FAA\Obj\Result

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

Parameters

boolean $skip

Skip hooks on demand

Returns

\FAA\Obj\Result —

A default system result set

GetPath()

GetPath(): string

expose the storage path provide an interface to extract the current path of this object

Returns

string —

the object storage path