Property | Type | Description | |
---|---|---|---|
$cache | array | ||
$indexes | array | ||
$paths | array | ||
$prefix | string | Path to resource files | |
$translationsPrefix | string | Path to translation files |
Method | Description | |
---|---|---|
__construct ( string $prefix = null, string $translationsPrefix = null ) | File constructor. | |
getData ( $class, array $params ) : array | ||
getPath ( string $class, string $prefix, array $params ) : string | ||
getTranslations ( MenaraSolutions\Geographer\Contracts\IdentifiableInterface $subject, $language ) : array | ||
getTranslationsPath ( MenaraSolutions\Geographer\Contracts\IdentifiableInterface $subject, $language ) : string | ||
getTranslationsPrefix ( ) : string | ||
guessTranslationsPrefix ( ) : string | ||
indexSearch ( integer $id, string $class ) : array | ||
loadJson ( string $path ) : array | ||
setPrefix ( string $prefix ) | ||
setTranslationsPrefix ( string $prefix ) |
Method | Description | |
---|---|---|
getCodeFromIndex ( $path, $id ) : mixed | ||
loadTranslations ( string $path ) |
Method | Description | |
---|---|---|
getDefaultPath ( ) : string |
public __construct ( string $prefix = null, string $translationsPrefix = null ) | ||
$prefix | string | |
$translationsPrefix | string |
protected getCodeFromIndex ( $path, $id ) : mixed | ||
$path | ||
$id | ||
return | mixed |
public getTranslations ( MenaraSolutions\Geographer\Contracts\IdentifiableInterface $subject, $language ) : array | ||
$subject | MenaraSolutions\Geographer\Contracts\IdentifiableInterface | |
$language | ||
return | array |
public getTranslationsPath ( MenaraSolutions\Geographer\Contracts\IdentifiableInterface $subject, $language ) : string | ||
$subject | MenaraSolutions\Geographer\Contracts\IdentifiableInterface | |
$language | ||
return | string |
public setTranslationsPrefix ( string $prefix ) | ||
$prefix | string |
protected string $translationsPrefix | ||
return | string |