ILIAS  release_5-1 Revision 5.0.0-5477-g43f3e3fab5f
ilDataCollectionRecordViewViewdefinition Class Reference

Class ilDataCollectionField. More...

+ Inheritance diagram for ilDataCollectionRecordViewViewdefinition:
+ Collaboration diagram for ilDataCollectionRecordViewViewdefinition:

Public Member Functions

 removeDclView ($table_id)
 
 getParentType ()
 Get parent type. More...
 
 setTableId ($a_id)
 Set Table ID. More...
 
 getTableId ()
 Get Table ID. More...
 
 getType ()
 Get type. More...
 
 getFormtype ()
 Get Formtype. More...
 
 doRead ()
 Read Viewdefinition. More...
 
 create ($prevent_page_creation=false)
 Create new Viewdefinition. More...
 
 update ($a_validate=true, $a_no_history=false)
 Update Viewdefinition. More...
 
- Public Member Functions inherited from ilPageObject
 ilPageObject ($a_id=0, $a_old_nr=0, $a_lang="-")
 Constructor public. More...
 
 afterConstructor ()
 After constructor. More...
 
 getParentType ()
 Get parent type. More...
 
 initPageConfig ()
 Init page config. More...
 
 setLanguage ($a_val)
 Set language. More...
 
 getLanguage ()
 Get language. More...
 
 setPageConfig ($a_val)
 Set page config object. More...
 
 getPageConfig ()
 Get page config object. More...
 
 setRenderMd5 ($a_rendermd5)
 Set Render MD5. More...
 
 getRenderMd5 ()
 Get Render MD5. More...
 
 setRenderedContent ($a_renderedcontent)
 Set Rendered Content. More...
 
 getRenderedContent ()
 Get Rendered Content. More...
 
 setRenderedTime ($a_renderedtime)
 Set Rendered Time. More...
 
 getRenderedTime ()
 Get Rendered Time. More...
 
 setLastChange ($a_lastchange)
 Set Last Change. More...
 
 getLastChange ()
 Get Last Change. More...
 
 setLastChangeUser ($a_val)
 Set last change user. More...
 
 getLastChangeUser ()
 Get last change user. More...
 
 setShowActivationInfo ($a_val)
 Set show page activation info. More...
 
 getShowActivationInfo ()
 Get show page activation info. More...
 
 read ()
 Read page data. More...
 
 buildDom ($a_force=false)
 
 freeDom ()
 
 getDom ()
 Deprecated php4DomDocument. More...
 
 getDomDoc ()
 Get dom doc (php5 dom document) More...
 
 setId ($a_id)
 set id More...
 
 getId ()
 
 setParentId ($a_id)
 
 getParentId ()
 
 addUpdateListener (&$a_object, $a_method, $a_parameters="")
 
 callUpdateListeners ()
 
 setActive ($a_active)
 set activation More...
 
 getActive ($a_check_scheduled_activation=false)
 get activation More...
 
 _writeActive ($a_id, $a_parent_type, $a_active, $a_reset_scheduled_activation=true, $a_lang="-")
 write activation status More...
 
 _lookupActivationData ($a_id, $a_parent_type, $a_lang="-")
 Lookup activation data. More...
 
 _writeParentId ($a_parent_type, $a_pg_id, $a_par_id)
 Write parent id. More...
 
 setActivationStart ($a_activationstart)
 Set Activation Start. More...
 
 getActivationStart ()
 Get Activation Start. More...
 
 setActivationEnd ($a_activationend)
 Set Activation End. More...
 
 getActivationEnd ()
 Get Activation End. More...
 
 getContentObject ($a_hier_id, $a_pc_id="")
 Get a content object of the page. More...
 
getContentNode ($a_hier_id, $a_pc_id="")
 Get content node from dom. More...
 
 checkForTag ($a_content_tag, $a_hier_id, $a_pc_id="")
 Get content node from dom. More...
 
 lookforhier ($a_hier_id)
 
getNode ()
 
 setXMLContent ($a_xml, $a_encoding="UTF-8")
 set xml content of page, start with <PageObject...>, end with </PageObject>, comply with ILIAS DTD, omit MetaData, use utf-8! More...
 
 appendXMLContent ($a_xml)
 append xml content to page setXMLContent must be called before and the same encoding must be used More...
 
 getXMLContent ($a_incl_head=false)
 get xml content of page More...
 
 copyXmlContent ($a_clone_mobs=false)
 Copy content of page; replace page components with copies where necessary (e.g. More...
 
 handleCopiedContent ($a_dom, $a_self_ass=true, $a_clone_mobs=false)
 Handle copied content. More...
 
 newIIMCopies ($temp_dom)
 Replaces media objects in interactive images with copies of the interactive images. More...
 
 newMobCopies ($temp_dom)
 Replaces media objects with copies. More...
 
 newQuestionCopies (&$temp_dom)
 Replaces existing question content elements with new copies. More...
 
 removeQuestions (&$temp_dom)
 Remove questions from document. More...
 
 countPageContents ()
 Remove questions from document. More...
 
 getXMLFromDom ($a_incl_head=false, $a_append_mobs=false, $a_append_bib=false, $a_append_str="", $a_omit_pageobject_tag=false)
 get xml content of page from dom (use this, if any changes are made to the document) More...
 
 getLanguageVariablesXML ()
 Get language variables as XML. More...
 
 appendLangVarXML (&$xml, $var)
 
 getFirstParagraphText ()
 
 setParagraphContent ($a_hier_id, $a_content)
 Set content of paragraph. More...
 
 setContainsIntLink ($a_contains_link)
 lm parser set this flag to true, if the page contains intern links (this method should only be called by the import parser) More...
 
 containsIntLink ()
 returns true, if page was marked as containing an intern link (via setContainsIntLink) (this method should only be called by the import parser) More...
 
 setImportMode ($a_val)
 Set import mode. More...
 
 getImportMode ()
 Get import mode. More...
 
 needsImportParsing ($a_parse="")
 
 setContainsQuestion ($a_val)
 Set contains question. More...
 
 getContainsQuestion ()
 Get contains question. More...
 
 collectMediaObjects ($a_inline_only=true)
 get all media objects, that are referenced and used within the page More...
 
 getInternalLinks ($a_cnt_multiple=false)
 get all internal links that are used within the page More...
 
 getMultimediaXML ()
 get a xml string that contains all media object elements, that are referenced by any media alias in the page More...
 
 getMediaAliasElement ($a_mob_id, $a_nr=1)
 get complete media object (alias) element More...
 
 validateDom ()
 Validate the page content agains page DTD. More...
 
 addHierIDs ()
 Add hierarchical ID (e.g. More...
 
 getHierIds ()
 get all hierarchical ids More...
 
 getFirstRowIds ()
 get ids of all first table rows More...
 
 getFirstColumnIds ()
 get ids of all first table columns More...
 
 getListItemIds ()
 get ids of all list items More...
 
 getFileItemIds ()
 get ids of all file items More...
 
 stripHierIDs ()
 strip all hierarchical id attributes out of the dom tree More...
 
 getHierIdsForPCIds ($a_pc_ids)
 Get hier ids for a set of pc ids. More...
 
 addFileSizes ()
 add file sizes More...
 
 resolveIntLinks ($a_link_map=null)
 Resolves all internal link targets of the page, if targets are available (after import) More...
 
 resolveMediaAliases ($a_mapping, $a_reuse_existing_by_import=false)
 Resolve media aliases (after import) More...
 
 resolveIIMMediaAliases ($a_mapping)
 Resolve iim media aliases (in ilContObjParse) More...
 
 resolveFileItems ($a_mapping)
 Resolve file items (after import) More...
 
 resolveQuestionReferences ($a_mapping)
 Resolve all quesion references (after import) More...
 
 moveIntLinks ($a_from_to)
 Move internal links from one destination to another. More...
 
 handleImportRepositoryLink ($a_rep_import_id, $a_rep_type, $a_rep_ref_id)
 
 createFromXML ()
 Create new page object with current xml content. More...
 
 updateFromXML ()
 Updates page object with current xml content. More...
 
 afterUpdate ()
 After update. More...
 
 update ($a_validate=true, $a_no_history=false)
 update complete page content in db (dom xml content is used) More...
 
 delete ()
 delete page object More...
 
 saveStyleUsage ($a_domdoc, $a_old_nr=0)
 Save all style class/template usages. More...
 
 deleteStyleUsages ($a_old_nr=0)
 Delete style usages. More...
 
 getLastUpdateOfIncludedElements ()
 Get last update of included elements (media objects and files). More...
 
 deleteInternalLinks ()
 Delete internal links. More...
 
 saveInternalLinks ($a_domdoc)
 save internal links of page More...
 
 create ()
 create new page (with current xml data) More...
 
 deleteContent ($a_hid, $a_update=true, $a_pcid="")
 delete content object with hierarchical id $a_hid More...
 
 deleteContents ($a_hids, $a_update=true, $a_self_ass=false)
 Delete multiple content objects. More...
 
 cutContents ($a_hids)
 Copy contents to clipboard and cut them from the page. More...
 
 copyContents ($a_hids)
 Copy contents to clipboard. More...
 
 pasteContents ($a_hier_id, $a_self_ass=false)
 Paste contents from pc clipboard. More...
 
 switchEnableMultiple ($a_hids, $a_update=true, $a_self_ass=false)
 (De-)activate elements More...
 
 deleteContentFromHierId ($a_hid, $a_update=true)
 delete content object with hierarchical id >= $a_hid More...
 
 deleteContentBeforeHierId ($a_hid, $a_update=true)
 delete content object with hierarchical id < $a_hid More...
 
 _moveContentAfterHierId (&$a_source_page, &$a_target_page, $a_hid)
 move content of hierarchical id >= $a_hid to other page More...
 
 insertContent (&$a_cont_obj, $a_pos, $a_mode=IL_INSERT_AFTER, $a_pcid="")
 insert a content node before/after a sibling or as first child of a parent More...
 
 insertContentNode (&$a_cont_node, $a_pos, $a_mode=IL_INSERT_AFTER, $a_pcid="")
 insert a content node before/after a sibling or as first child of a parent More...
 
 moveContentBefore ($a_source, $a_target, $a_spcid="", $a_tpcid="")
 move content object from position $a_source before position $a_target (both hierarchical content ids) More...
 
 moveContentAfter ($a_source, $a_target, $a_spcid="", $a_tpcid="")
 move content object from position $a_source before position $a_target (both hierarchical content ids) More...
 
 bbCode2XML (&$a_content)
 transforms bbCode to corresponding xml More...
 
 insertInstIntoIDs ($a_inst, $a_res_ref_to_obj_id=true)
 inserts installation id into ids (e.g. More...
 
 checkPCIds ()
 Check, whether (all) page content hashes are set. More...
 
 getAllPCIds ()
 Get all pc ids. More...
 
 existsPCId ($a_pc_id)
 existsPCId More...
 
 generatePcId ($a_pc_ids=false)
 Generate new pc id. More...
 
 insertPCIds ()
 Insert Page Content IDs. More...
 
 getPageContentsHashes ()
 Get page contents hashes. More...
 
 getQuestionIds ()
 Get question ids. More...
 
 send_paragraph ($par_id, $filename)
 
 getFO ()
 get fo page content More...
 
 registerOfflineHandler ($handler)
 
 getOfflineHandler ()
 Get offline handler. More...
 
 containsDeactivatedElements ($a_content)
 Check whether content contains deactivated elements. More...
 
 getHistoryEntries ()
 Get History Entries. More...
 
 getHistoryEntry ($a_old_nr)
 Get History Entry. More...
 
 getHistoryInfo ($a_nr)
 Get information about a history entry, its predecessor and its successor. More...
 
 addChangeDivClasses ($a_hashes)
 
 compareVersion ($a_left, $a_right)
 Compares to revisions of the page. More...
 
 increaseViewCnt ()
 Increase view cnt. More...
 
 writeRenderedContent ($a_content, $a_md5)
 Write rendered content. More...
 
 containsIntLinks ($a_content)
 Check whether content contains internal links. More...
 
 performAutomaticModifications ()
 Perform automatic modifications (may be overwritten by sub classes) More...
 
 saveInitialOpenedContent ($a_type, $a_id, $a_target)
 Save initial opened content. More...
 
 getInitialOpenedContent ()
 Get initial opened content. More...
 
 beforePageContentUpdate ($a_page_content)
 Before page content update. More...
 
 copy ($a_id, $a_parent_type="", $a_parent_id=0, $a_clone_mobs=false)
 Copy page. More...
 
 copyPageToTranslation ($a_target_lang)
 Copy page to translation. More...
 
 getEditLock ()
 Get page lock. More...
 
 releasePageLock ()
 Release page lock. More...
 
 getEditLockInfo ()
 Get edit lock info. More...
 
 getContentTemplates ()
 Get content templates. More...
 
 getAllFileObjIds ()
 Get all file object ids. More...
 

Static Public Member Functions

static getInstance ($key)
 
static getIdByTableId ($a_table_id)
 Get view definition id by table id. More...
 
static getInstanceByTableId ($table_id)
 
static getAvailablePlaceholders ($a_table_id, $a_verbose=false)
 Get all placeholders for table id. More...
 
- Static Public Member Functions inherited from ilPageObject
static _exists ($a_parent_type, $a_id, $a_lang="", $a_no_cache=false)
 Checks whether page exists. More...
 
static _existsAndNotEmpty ($a_parent_type, $a_id, $a_lang="-")
 Checks whether page exists and is not empty (may return true on some empty pages) More...
 
static preloadActivationDataByParentId ($a_parent_id)
 Preload activation data by Parent Id. More...
 
static _lookupActive ($a_id, $a_parent_type, $a_check_scheduled_activation=false, $a_lang="-")
 lookup activation status More...
 
static _isScheduledActivation ($a_id, $a_parent_type, $a_lang="-")
 Check whether page is activated by time schedule. More...
 
static lookupParentId ($a_id, $a_type)
 Lookup parent id. More...
 
static _handleImportRepositoryLinks ($a_rep_import_id, $a_rep_type, $a_rep_ref_id)
 Change targest of repository links. More...
 
static _lookupContainsDeactivatedElements ($a_id, $a_parent_type, $a_lang="-")
 lookup whether page contains deactivated elements More...
 
static getRecentChanges ($a_parent_type, $a_parent_id, $a_period=30, $a_lang="")
 Get recent pages changes for parent object. More...
 
static getAllPages ($a_parent_type, $a_parent_id, $a_lang="-")
 Get all pages for parent object. More...
 
static getNewPages ($a_parent_type, $a_parent_id, $a_lang="-")
 Get new pages. More...
 
static getParentObjectContributors ($a_parent_type, $a_parent_id, $a_lang="-")
 Get all contributors for parent object. More...
 
static getPageContributors ($a_parent_type, $a_page_id, $a_lang="-")
 Get all contributors for parent object. More...
 
static getPagesWithLinks ($a_parent_type, $a_parent_id, $a_lang="-")
 Get all pages for parent object that contain internal links. More...
 
static lookupTranslations ($a_parent_type, $a_id)
 Lookup translations. More...
 
static truncateHTML ($a_text, $a_length=100, $a_ending='...', $a_exact=false, $a_consider_html=true)
 Truncate (html) string. More...
 
static getLastChangeByParent ($a_parent_type, $a_parent_id, $a_lang="")
 Get all pages for parent object. More...
 

Protected Attributes

 $active = false
 
 $table_id
 
 $type = 0
 
 $formtype = 0
 
- Protected Attributes inherited from ilPageObject
 $import_mode = false
 
 $log
 

Static Protected Attributes

static $record_view_cache = array()
 
static $instances = array()
 
- Static Protected Attributes inherited from ilPageObject
static $activation_data = array()
 

Additional Inherited Members

- Data Fields inherited from ilPageObject
 $id
 
 $ilias
 
 $dom
 
 $xml
 
 $encoding
 
 $node
 
 $cur_dtd = "ilias_pg_5_1.dtd"
 
 $contains_int_link
 
 $needs_parsing
 
 $parent_type
 
 $parent_id
 
 $update_listeners
 
 $update_listener_cnt
 
 $offline_handler
 
 $dom_builded
 
 $history_saved
 
 $language = "-"
 
- Static Public Attributes inherited from ilPageObject
static $exists = array()
 
- Protected Member Functions inherited from ilPageObject
 __afterUpdate ($a_domdoc, $a_xml, $a_creation=false, $a_empty=false)
 After update event handler (internal). More...
 
 __beforeDelete ()
 Before deletion handler (internal). More...
 
 __afterHistoryEntry ($a_old_domdoc, $a_old_content, $a_old_nr)
 Before deletion handler (internal). More...
 

Detailed Description

Member Function Documentation

◆ create()

ilDataCollectionRecordViewViewdefinition::create (   $prevent_page_creation = false)

Create new Viewdefinition.

Definition at line 148 of file class.ilDataCollectionRecordViewViewdefinition.php.

References ilPageObject\$id, $ilDB, $query, getFormtype(), ilPageObject\getId(), getTableId(), getType(), ilPageObject\setActive(), and ilPageObject\setId().

148  {
149  global $ilDB;
150  $this->setActive(false);
151  $id = $ilDB->nextId("il_dcl_view");
152  $this->setId($id);
153 
154  $query = "INSERT INTO il_dcl_view (" . "id" . ", table_id" . ", type" . ", formtype" . " ) VALUES (" . $ilDB->quote($this->getId(), "integer")
155  . "," . $ilDB->quote($this->getTableId(), "integer") . "," . $ilDB->quote($this->getType(), "integer") . ","
156  . $ilDB->quote($this->getFormtype(), "integer") . ")";
157  $ilDB->manipulate($query);
158 
159  if (! $prevent_page_creation) {
160  parent::create();
161  }
162  }
setActive($a_active)
set activation
setId($a_id)
set id
global $ilDB
+ Here is the call graph for this function:

◆ doRead()

ilDataCollectionRecordViewViewdefinition::doRead ( )

Read Viewdefinition.

Definition at line 130 of file class.ilDataCollectionRecordViewViewdefinition.php.

References $ilDB, $query, ilPageObject\getId(), ilPageObject\setActive(), and setTableId().

130  {
131  global $ilDB;
132 
133  $query = "SELECT * FROM il_dcl_view WHERE table_id = " . $ilDB->quote($this->getId(), "integer");
134  $set = $ilDB->query($query);
135  $rec = $ilDB->fetchAssoc($set);
136 
137  $this->setActive(false);
138 
139  $this->setTableId($rec["table_id"]);
140  $this->type = $rec["type"];
141  $this->formtype = $rec["formtype"];
142  }
setActive($a_active)
set activation
global $ilDB
+ Here is the call graph for this function:

◆ getAvailablePlaceholders()

static ilDataCollectionRecordViewViewdefinition::getAvailablePlaceholders (   $a_table_id,
  $a_verbose = false 
)
static

Get all placeholders for table id.

Parameters
int$a_table_id
bool$a_verbose
Returns
array

Definition at line 231 of file class.ilDataCollectionRecordViewViewdefinition.php.

References ilDataCollectionCache\getTableCache(), and ilDataCollectionDatatype\INPUTFORMAT_REFERENCE.

Referenced by ilDataCollectionRecordViewViewdefinitionGUI\executeCommand(), and ilDataCollectionRecordViewViewdefinitionGUI\postOutputProcessing().

231  {
232  $all = array();
233 
234  require_once("./Modules/DataCollection/classes/class.ilDataCollectionTable.php");
235  $objTable = ilDataCollectionCache::getTableCache($a_table_id);
236  $fields = $objTable->getRecordFields();
237  $standardFields = $objTable->getStandardFields();
238 
239  foreach ($fields as $field) {
240 
241  if (! $a_verbose) {
242  $all[] = "[" . $field->getTitle() . "]";
243 
244  if ($field->getDatatypeId() == ilDataCollectionDatatype::INPUTFORMAT_REFERENCE) {
245  $all[] = '[dclrefln field="' . $field->getTitle() . '"][/dclrefln]';
246  }
247  // SW 14.10.2015 http://www.ilias.de/mantis/view.php?id=16874
248  // if ($field->getDatatypeId() == ilDataCollectionDatatype::INPUTFORMAT_ILIAS_REF) {
249  // $all[] = '[dcliln field="' . $field->getTitle() . '"][/dcliln]';
250  // }
251  } else {
252  $all["[" . $field->getTitle() . "]"] = $field;
253 
254  if ($field->getDatatypeId() == ilDataCollectionDatatype::INPUTFORMAT_REFERENCE) {
255  $all['[dclrefln field="' . $field->getTitle() . '"][/dclrefln]'] = $field;
256  }
257  // SW: 14.10.2015 http://www.ilias.de/mantis/view.php?id=16874
258  // if ($field->getDatatypeId() == ilDataCollectionDatatype::INPUTFORMAT_ILIAS_REF) {
259  // $all['[dcliln field="' . $field->getTitle() . '"][/dcliln]'] = $field;
260  // }
261  }
262  }
263 
264  foreach ($standardFields as $field) {
265  $all[] = "[" . $field->getId() . "]";
266  }
267 
268  return $all;
269  }
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ getFormtype()

ilDataCollectionRecordViewViewdefinition::getFormtype ( )

Get Formtype.

Returns
int

Definition at line 122 of file class.ilDataCollectionRecordViewViewdefinition.php.

References $formtype.

Referenced by create().

+ Here is the caller graph for this function:

◆ getIdByTableId()

static ilDataCollectionRecordViewViewdefinition::getIdByTableId (   $a_table_id)
static

Get view definition id by table id.

In the moment we have only one View-Viewdefinition per Table

Parameters
int$a_table_id
Returns
inte

Definition at line 195 of file class.ilDataCollectionRecordViewViewdefinition.php.

References $ilDB, $query, and $row.

Referenced by ilDataCollectionRecordViewGUI\_getViewDefinitionId(), ilDataCollectionTable\cloneStructure(), ilDataCollectionRecordViewViewdefinitionGUI\deleteView(), and ilDataCollectionDatatype\parseHTML().

195  {
196  if (! isset(self::$record_view_cache[$a_table_id])) {
197  global $ilDB;
198  //FIXME die werte bei type und formtype sollten vom constructor genommen werden
199  $query = "SELECT id FROM il_dcl_view" . " WHERE table_id = " . $ilDB->quote($a_table_id, "integer") . " AND type = "
200  . $ilDB->quote(0, "integer") . " and formtype = " . $ilDB->quote(0, "integer");
201  $set = $ilDB->query($query);
202  $row = $ilDB->fetchObject($set);
203 
204  self::$record_view_cache[$a_table_id] = $row->id;
205  }
206 
207  return self::$record_view_cache[$a_table_id];
208  }
global $ilDB
+ Here is the caller graph for this function:

◆ getInstance()

static ilDataCollectionRecordViewViewdefinition::getInstance (   $key)
static
Parameters
$key
Returns
ilDataCollectionRecordViewViewdefinition

Definition at line 51 of file class.ilDataCollectionRecordViewViewdefinition.php.

51  {
52  self::$instances[$key] = new self($key);
53 
54  return self::$instances[$key];
55  }

◆ getInstanceByTableId()

static ilDataCollectionRecordViewViewdefinition::getInstanceByTableId (   $table_id)
static
Parameters
$table_id
Returns
ilDataCollectionRecordViewViewdefinition

Definition at line 216 of file class.ilDataCollectionRecordViewViewdefinition.php.

References ilPageObject\$id, and $table_id.

Referenced by ilDataCollectionRecordViewGUI\hasTableValidViewDefinition(), and ilDataCollectionRecordViewGUI\hasValidViewDefinition().

216  {
217  $id = self::getIdByTableId($table_id);
218 
219  return self::getInstance($id);
220  }
+ Here is the caller graph for this function:

◆ getParentType()

ilDataCollectionRecordViewViewdefinition::getParentType ( )

Get parent type.

Returns
string parent type

Definition at line 82 of file class.ilDataCollectionRecordViewViewdefinition.php.

82  {
83  return "dclf";
84  }

◆ getTableId()

ilDataCollectionRecordViewViewdefinition::getTableId ( )

Get Table ID.

Returns
int

Definition at line 102 of file class.ilDataCollectionRecordViewViewdefinition.php.

References $table_id.

Referenced by create().

+ Here is the caller graph for this function:

◆ getType()

ilDataCollectionRecordViewViewdefinition::getType ( )

Get type.

Returns
int

Definition at line 112 of file class.ilDataCollectionRecordViewViewdefinition.php.

References $type.

Referenced by create().

+ Here is the caller graph for this function:

◆ removeDclView()

ilDataCollectionRecordViewViewdefinition::removeDclView (   $table_id)
Parameters
$table_id
Returns
bool

Definition at line 63 of file class.ilDataCollectionRecordViewViewdefinition.php.

References $ilDB, $query, and $table_id.

63  {
64  if (! $table_id) {
65  return false;
66  }
67  global $ilDB;
68 
69  $query = "DELETE FROM il_dcl_view WHERE table_id = " . $table_id . " AND type = " . $ilDB->quote(0, "integer") . " AND formtype = "
70  . $ilDB->quote(0, "integer");
71  $ilDB->manipulate($query);
72 
73  return true;
74  }
global $ilDB

◆ setTableId()

ilDataCollectionRecordViewViewdefinition::setTableId (   $a_id)

Set Table ID.

Parameters
int$a_id

Definition at line 92 of file class.ilDataCollectionRecordViewViewdefinition.php.

Referenced by doRead().

92  {
93  $this->table_id = $a_id;
94  }
+ Here is the caller graph for this function:

◆ update()

ilDataCollectionRecordViewViewdefinition::update (   $a_validate = true,
  $a_no_history = false 
)

Update Viewdefinition.

Parameters
bool$a_validate
bool$a_no_history
Returns
boolean

Definition at line 173 of file class.ilDataCollectionRecordViewViewdefinition.php.

173  {
174  //TODO
175  //Page-Object updaten
176  //Es wäre auch möglich direkt in der GUI-Klasse ilPageObject aufzurufen. Falls wir aber bei doCreate,
177  //das Page-Object anlegen, fänd ich es sinnvoll, wenn wir auch hier das PageObject updaten würden.
178  //Andernfalls sämtliche Page-Object-Methoden in der GUI-Klasse aufrufen.
179 
180  parent::update($a_validate, $a_no_history);
181 
182  return true;
183  }

Field Documentation

◆ $active

ilDataCollectionRecordViewViewdefinition::$active = false
protected

◆ $formtype

ilDataCollectionRecordViewViewdefinition::$formtype = 0
protected

Definition at line 35 of file class.ilDataCollectionRecordViewViewdefinition.php.

Referenced by getFormtype().

◆ $instances

ilDataCollectionRecordViewViewdefinition::$instances = array()
staticprotected

◆ $record_view_cache

ilDataCollectionRecordViewViewdefinition::$record_view_cache = array()
staticprotected

◆ $table_id

ilDataCollectionRecordViewViewdefinition::$table_id
protected

◆ $type

ilDataCollectionRecordViewViewdefinition::$type = 0
protected

Definition at line 31 of file class.ilDataCollectionRecordViewViewdefinition.php.

Referenced by getType().


The documentation for this class was generated from the following file: