public static function getFieldOptions($field, $optionKey = false)
    {
        if ($optionKey) {
            return static::$_classFields[get_called_class()][$field][$optionKey];
        } else {
            return static::$_classFields[get_called_class()][$field];
        }
    }
public static function getFieldOptions($field, $optionKey = false)
    {
        if ($optionKey) {
            return static::$_classFields[get_called_class()][$field][$optionKey];
        } else {
            return static::$_classFields[get_called_class()][$field];
        }
    }
public static function getFieldOptions ( $ field , $ optionKey = false ) { if ( $ optionKey ) { return static :: $ _classFields [ get_called_class ( ) ] [ $ field ] [ $ optionKey ] ; } else { return static :: $ _classFields [ get_called_class ( ) ] [ $ field ] ; } }
Returns either a field option or an array of all the field options.

@param string $field Name of the field.
@param boolean $optionKey
@return void
Returns either a field option or an array of all the field options .