Пример #1
0
function labelize($fname) {
  return labify($fname);
}
Пример #2
0
 /** Tries to return a description of the attribute for a label
  * If there is a 'desc' property for the attribute, return it.
  * Else, if there is a 'comment' property for the attribute, return it
  * Else, return ucfirst $attname
  */
 public static function attdesc($attname)
 {
     $defs = static::getTableFieldDefs();
     if (!in_array($attname, array_keys($defs), 1)) {
         return false;
         //ucfirst($attname);
     }
     $attprops = $defs[$attname];
     $desc = keyVal('desc', $attprops, keyVal('comment', $attprops, labify($attname)));
     return $desc;
 }