프로퍼티 | 타입 | 설명 | |
---|---|---|---|
$cache | array | ||
$indexes | array | ||
$paths | array | ||
$prefix | string | Path to resource files | |
$translationsPrefix | string | Path to translation files |
메소드 | 설명 | |
---|---|---|
__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 ) |
메소드 | 설명 | |
---|---|---|
getCodeFromIndex ( $path, $id ) : mixed | ||
loadTranslations ( string $path ) |
메소드 | 설명 | |
---|---|---|
getDefaultPath ( ) : string |
public __construct ( string $prefix = null, string $translationsPrefix = null ) | ||
$prefix | string | |
$translationsPrefix | string |
public getTranslations ( MenaraSolutions\Geographer\Contracts\IdentifiableInterface $subject, $language ) : array | ||
$subject | MenaraSolutions\Geographer\Contracts\IdentifiableInterface | |
$language | ||
리턴 | array |
public getTranslationsPath ( MenaraSolutions\Geographer\Contracts\IdentifiableInterface $subject, $language ) : string | ||
$subject | MenaraSolutions\Geographer\Contracts\IdentifiableInterface | |
$language | ||
리턴 | string |
protected string $translationsPrefix | ||
리턴 | string |