Example #1
0
 /**
  * @brief Gets the list of meta values that is associated with the valuelist
  * for a particular field.  The idea is that the options in a valuelist
  * can be categorized into classes.  This returns those classes.
  * @param Dataface_Record &$record The record that is being edited.
  * 
  * @param array &$field The config array for the field being edited.
  *
  * @returns array The associative array of classes [key => class]
  */
 public static function getVocabularyClasses($record, &$field)
 {
     $res = Dataface_FormTool::_getVocabAndClasses($record, $field);
     return $res['options__classes'];
 }