SelectableOptionManager::addOptions() SelectableOptionManager::addOptions(Field $field, $options) SelectableOptionManager::addOptions(Field $field, $options) | int | Add the given option titles for $field | |
SelectableOptionManager::deleteAllOptionsForField() SelectableOptionManager::deleteAllOptionsForField(Field $field) SelectableOptionManager::deleteAllOptionsForField(Field $field) | int | Delete all options for given field | |
SelectableOptionManager::deleteOptions() SelectableOptionManager::deleteOptions(Field $field, $options) SelectableOptionManager::deleteOptions(Field $field, $options) | int | Delete the given options for $field | |
SelectableOptionManager::deleteOptionsByID() SelectableOptionManager::deleteOptionsByID(Field $field, array $ids) SelectableOptionManager::deleteOptionsByID(Field $field, array $ids) | int | Delete the given option IDs | |
SelectableOptionManager::findOptionsByProperty() SelectableOptionManager::findOptionsByProperty(Field $field, string $property, string $operator, string $value) SelectableOptionManager::findOptionsByProperty(Field $field, string $property, string $operator, string $value) | SelectableOptionArray | Perform a partial match on title of options | |
SelectableOptionManager::getOptions() SelectableOptionManager::getOptions(Field $field) SelectableOptionManager::getOptions(Field $field, array $filters = []) | SelectableOptionArray SelectableOption | Return array of current options for $field | |
SelectableOptionManager::getOptionsByID() SelectableOptionManager::getOptionsByID(Field $field, array $ids) SelectableOptionManager::getOptionsByID(Field $field, array $ids) | SelectableOptionArray SelectableOption | Shortcut to get options by ID number | |
SelectableOptionManager::getOptionsString() SelectableOptionManager::getOptionsString(SelectableOptionArray $options) SelectableOptionManager::getOptionsString(SelectableOptionArray $options, $language = '') | string | Get the options input string used for | |
SelectableOptionManager::getRemovedOptionIDs() SelectableOptionManager::getRemovedOptionIDs() SelectableOptionManager::getRemovedOptionIDs() | array | Return the option IDs found to have been removed from the last setOptions() call. | |
SelectableOptionManager::install() SelectableOptionManager::install() SelectableOptionManager::install() | (nothing) | Install | |
SelectableOptionManager::setOptions() SelectableOptionManager::setOptions(Field $field, $options) SelectableOptionManager::setOptions(Field $field, $options, bool $allowDelete = true) | array | Set current options for $field, identify and acting on added, deleted, updated options | |
SelectableOptionManager::setOptionsString() SelectableOptionManager::setOptionsString(Field $field, string $value) SelectableOptionManager::setOptionsString(Field $field, string $value, bool $allowDelete = true) | array | Set an options string | |
SelectableOptionManager::setOptionsStringLanguages() SelectableOptionManager::setOptionsStringLanguages(Field $field, array $values) SelectableOptionManager::setOptionsStringLanguages(Field $field, array $values, bool $allowDelete = true) | (nothing) | Set options string, but for each language | |
SelectableOptionManager::uninstall() SelectableOptionManager::uninstall() SelectableOptionManager::uninstall() | (nothing) | Uninstall | |
SelectableOptionManager::updateLanguages() SelectableOptionManager::updateLanguages() SelectableOptionManager::updateLanguages($event = null) | (nothing) | Hook method called when a language is added or deleted | |
SelectableOptionManager::updateOptions() SelectableOptionManager::updateOptions(Field $field, $options) SelectableOptionManager::updateOptions(Field $field, $options) | int | Update options for field | |
SelectableOptionManager::upgrade() SelectableOptionManager::upgrade(string $fromVersion, string $toVersion) SelectableOptionManager::upgrade(string $fromVersion, string $toVersion) | (nothing) | Upgrade fieldtype_options table | |
SelectableOptionManager::useLanguages() SelectableOptionManager::useLanguages() SelectableOptionManager::useLanguages() | bool | Whether or not multi-language support is in use | |
SelectableOptionManager::wired() SelectableOptionManager::wired() SelectableOptionManager::wired() | (nothing) | | |