127 $option =
new self();
132 $option->setValue(
$value);
138 foreach (self::getAllForField(
$field_id) as $option) {
157 $operators = array(
'field_id' =>
'=');
158 if (is_array($opt_ids)) {
159 if (empty($opt_ids)) {
162 $operators[
'opt_id'] =
'IN';
164 $operators[
'opt_id'] =
'=';
167 foreach (self::where(
168 array(
"field_id" =>
$field_id,
"opt_id" => $opt_ids),
170 )->
orderBy(
'sorting')->
get() as $opt) {
171 $return[] = $opt->getValue();
static orderBy($orderBy, string $orderDirection='ASC')
static where($where, $operator=null)
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
static returnDbTableName()
static getAllForField(int $field_id)
cloneOption(ilDclSelectionOption $original_option)
setFieldId(int $field_id)
static getValues(int $field_id, $opt_ids)
static flushOptions(int $field_id)