You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Once you include the main PHP and Arabic Language library file:
require'/path/to/Arabic.php';
You can create an instance of that class in one standard way regardless of the sub-class functionalities that you are going to call:
$Arabic = new \ArPHP\I18N\Arabic();
This line of code replaced all the following varieties of new constructor calls to create an object of this library class:
Version 4.0 Constructor Calls
$Arabic = new I18N_Arabic();
$Arabic = new I18N_Arabic('AutoSummarize');
$Arabic = new I18N_Arabic('Date');
$Arabic = new I18N_Arabic('Gender');
$Arabic = new I18N_Arabic('Glyphs');
$Arabic = new I18N_Arabic('Identifier');
$Arabic = new I18N_Arabic('KeySwap');
$Arabic = new I18N_Arabic('Mktime');
$Arabic = new I18N_Arabic('Numbers');
$Arabic = new I18N_Arabic('Query');
$Arabic = new I18N_Arabic('Salat');
$Arabic = new I18N_Arabic('Soundex');
$Arabic = new I18N_Arabic('Standard');
$Arabic = new I18N_Arabic('StrToTime');
$Arabic = new I18N_Arabic('Transliteration');
Version 5.0 has no static methods anymore, so if you have any call of type I18N_Arabic::methodName(); then you have to replace it by $Arabic->methodName(); after creating an object instance like the way mentioned before.
Once you update the way of constructing your Arabic object, the rest of your code should work transparently with no changes but if you have any of the following listed cases:
Please note that changes mainly occurred on the method name only keeping parameters type and order as they are, to minimize the required migration efforts. AutoSummarize methods are the only exception to this rule.
All the functionalities/methods of deprecated sub-classes have been removed from the library entirely and are not supported anymore. If you believe that any of them deserves to migrate into the latest version of the library, then please let us know.