\FAA\Obj\GenericTranslation

Summary

Methods
Properties
Constants
__construct()
SearchFields()
Save()
IsSystem()
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  $id = null,string  $language = null)

Translation constructor.

Parameters

string $id

A translation id

string $language

The base language

SearchFields()

SearchFields(): array

Return search indexer fields Convert instance to search indexer values

Returns

array —

The search indexer fields

Save()

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

Save translation

Update in custom cache and save using the parent method

Parameters

boolean $force_new_id

Compatibility reason

Returns

\FAA\Obj\Result —

A result object

IsSystem()

IsSystem(): boolean

Is a known system translation?

Returns

boolean

GetPath()

GetPath(): string

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

Returns

string —

the object storage path