PhpBotFramework  2.0.2
A framework for Telegram Bots' APIs.
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
PhpBotFramework\Localization\File Class Reference

Handle localizations files, load them from disk. More...

Inheritance diagram for PhpBotFramework\Localization\File:
PhpBotFramework\Localization\Localization

Public Member Functions

bool loadAllLanguages (string $dir='./localization')
 Load all localization files (like JSON) from a folder and set them in $local variable. More...
 
bool loadCurrentLocalization (string $dir='')
 
 setLocalizationDir (string $dir)
 Change source directory for localization files. More...
 

Protected Member Functions

bool loadSingleLanguage (string $lang='en', string $dir='./localization')
 

Protected Attributes

 $local
 
 $localization_dir = './localization'
 Source for localization files.
 

Detailed Description

Handle localizations files, load them from disk.

handler


The documentation for this class was generated from the following file: