16 return self::DB_TABLE_NAME;
172 $option = self::where(array(
"field_id" =>
$field_id,
"opt_id" =>
$opt_id))->first();
174 $option =
new self();
179 $option->setValue(
$value);
189 foreach (self::getAllForField(
$field_id) as $option) {
202 return self::where(array(
"field_id" =>
$field_id))->orderBy(
'sorting')->get();
208 $operators = array(
'field_id' =>
'=');
209 if (is_array($opt_ids)) {
210 if (empty($opt_ids)) {
213 $operators[
'opt_id'] =
'IN';
215 $operators[
'opt_id'] =
'=';
218 foreach (self::where(array(
"field_id" =>
$field_id,
"opt_id" => $opt_ids), $operators)->
orderBy(
'sorting')->
get() as $opt) {
219 $return[] = $opt->getValue();
cloneOption(ilDclSelectionOption $original_option)
static returnDbTableName()
static getValues($field_id, $opt_ids)
static flushOptions($field_id)
static getAllForField($field_id)
Class ilDclSelectionOption.
static orderBy($orderBy, $orderDirection='ASC')