class RulesDataUITaxonomyVocabulary

UI for taxonomy vocabularies.

Hierarchy

Expanded class hierarchy of RulesDataUITaxonomyVocabulary

See also

RulesTaxonomyVocabularyWrapper

1 string reference to 'RulesDataUITaxonomyVocabulary'
rules_rules_core_data_info in modules/rules_core.rules.inc
Implements hook_rules_data_info() on behalf of the pseudo rules_core module.

File

ui/ui.data.inc, line 657

View source
class RulesDataUITaxonomyVocabulary extends RulesDataUIEntity implements RulesDataInputOptionsListInterface {
    
    /**
     * Overrides RulesDataUI::getDefaultMode().
     */
    public static function getDefaultMode() {
        return 'input';
    }
    
    /**
     * Implements RulesDataInputOptionsListInterface::optionsList().
     */
    public static function optionsList(RulesPlugin $element, $name) {
        $options = array();
        foreach (taxonomy_vocabulary_get_names() as $machine_name => $vocab) {
            $options[$machine_name] = $vocab->name;
        }
        return $options;
    }

}

Members

Title Sort descending Modifiers Object type Summary Overriden Title Overrides
RulesDataUI::getTypeInfo public static function Returns the data type and parameter information for the given arguments.
RulesDataUI::renderOptionsLabel public static function Renders the value with a label if an options list is available.
RulesDataUI::selectionForm public static function Provides the selection form for a parameter.
RulesDataUIEntity::inputForm public static function Implements RulesDataDirectInputFormInterface::inputForm(). Overrides RulesDataUIText::inputForm
RulesDataUITaxonomyVocabulary::getDefaultMode public static function Overrides RulesDataUI::getDefaultMode(). Overrides RulesDataUIEntity::getDefaultMode
RulesDataUITaxonomyVocabulary::optionsList public static function Implements RulesDataInputOptionsListInterface::optionsList(). Overrides RulesDataInputOptionsListInterface::optionsList
RulesDataUIText::render public static function Implements RulesDataDirectInputFormInterface::render(). Overrides RulesDataDirectInputFormInterface::render 4