PKPLocale::uninstallLocale PHP Method

uninstallLocale() static public method

Uninstall support for an existing locale.
static public uninstallLocale ( $locale )
$locale string
    static function uninstallLocale($locale)
    {
        // Delete locale-specific data
        $emailTemplateDao = DAORegistry::getDAO('EmailTemplateDAO');
        $emailTemplateDao->deleteEmailTemplatesByLocale($locale);
        $emailTemplateDao->deleteDefaultEmailTemplatesByLocale($locale);
    }

Usage Example

Esempio n. 1
0
 /**
  * Uninstall support for a new locale.
  * @param $locale string
  */
 function uninstallLocale($locale)
 {
     parent::uninstallLocale($locale);
     $genreDao =& DAORegistry::getDAO('GenreDAO');
     $genreDao->uninstallLocale($locale);
     $publicationFormatDao =& DAORegistry::getDAO('PublicationFormatDAO');
     $publicationFormatDao->uninstallLocale($locale);
     $userGroupDao =& DAORegistry::getDAO('UserGroupDAO');
     $userGroupDao->deleteSettingsByLocale($locale);
 }
All Usage Examples Of PKPLocale::uninstallLocale