ILIAS  release_7 Revision v7.30-3-g800a261c036
class.ilDclTableViewBaseDefaultValue.php
Go to the documentation of this file.
1<?php
2
9{
17 public static function findSingle($data_type_id, $tview_id) {
18 $storage_location = ilDclCache::getDatatype($data_type_id)->getStorageLocation();
19 if (is_null($storage_location) || $storage_location == 0) {
20 return null;
21 }
22
23 try {
25 return $class::getCollection()->where(array("tview_set_id" => $tview_id))->first();
26 } catch (Exception $ex) {
27 return null;
28 }
29 }
30
31
32 public static function findAll($data_type_id, $tview_id) {
33 $storage_location = ilDclCache::getDatatype($data_type_id)->getStorageLocation();
34 if (is_null($storage_location) || $storage_location == 0) {
35 return null;
36 }
37
38 try {
40 return $class::getCollection()->where(array("tview_set_id" => $tview_id))->get();
41 } catch (Exception $ex) {
42 return null;
43 }
44 }
45}
Class ActiveRecord.
An exception for terminatinating execution or to throw for unit testing.
static getDatatype($datatyp_id)
Get cached datatypes.
Class ilDclTableViewBaseDefaultValue.