15 return self::DB_TABLE_NAME;
176 $option =
new self();
181 $option->setValue(
$value);
191 foreach (self::getAllForField(
$field_id) as $option) {
204 return self::where(
array(
"field_id" =>
$field_id))->orderBy(
'sorting')->get();
209 $operators =
array(
'field_id' =>
'=');
210 if (is_array($opt_ids)) {
211 if (empty($opt_ids)) {
214 $operators[
'opt_id'] =
'IN';
216 $operators[
'opt_id'] =
'=';
219 foreach (self::where(
array(
"field_id" =>
$field_id,
"opt_id" => $opt_ids), $operators)->
orderBy(
'sorting')->
get() as $opt) {
220 $return[] = $opt->getValue();
cloneOption(ilDclSelectionOption $original_option)
static returnDbTableName()
static getValues($field_id, $opt_ids)
static flushOptions($field_id)
static getAllForField($field_id)
Create styles array
The data for the language used.
Class ilDclSelectionOption.
static orderBy($orderBy, $orderDirection='ASC')