Esempio n. 1
0
 /**
  * Get a label from the language-file
  *
  * @param string $key The key to get.
  * @param string[optional] $module The module wherein we should search.
  * @return string
  */
 public static function lbl($key, $module = null)
 {
     return BackendLanguage::getLabel($key, $module);
 }
Esempio n. 2
0
 /**
  * Fetch the list of status, but for a dropdown.
  *
  * @return	array
  */
 public static function getStatusForDropDown()
 {
     // fetch types
     $status = BackendModel::getDB()->getEnumValues('profiles', 'status');
     // init
     $labels = $status;
     // loop and build labels
     foreach ($labels as &$row) {
         $row = ucfirst(BackendLanguage::getLabel(ucfirst($row)));
     }
     // build array
     return array_combine($status, $labels);
 }