ILIAS  release_5-4 Revision v5.4.26-12-gabc799a52e6
class.ilObjMediaObjectsSettings.php
Go to the documentation of this file.
1 <?php
2 /* Copyright (c) 1998-2009 ILIAS open source, Extended GPL, see docs/LICENSE */
3 
4 require_once "./Services/Object/classes/class.ilObject.php";
5 
15 {
19  protected $db;
20 
21 
28  public function __construct($a_id = 0, $a_call_by_reference = true)
29  {
30  global $DIC;
31 
32  $this->db = $DIC->database();
33  $this->type = "mobs";
34  parent::__construct($a_id, $a_call_by_reference);
35  }
36 
43  public function update()
44  {
45  $ilDB = $this->db;
46 
47  if (!parent::update()) {
48  return false;
49  }
50 
51  return true;
52  }
53 
57  public function read()
58  {
59  $ilDB = $this->db;
60 
61  parent::read();
62  }
63 
64 
65 
66 
67 
74  public function delete()
75  {
76  // always call parent delete function first!!
77  if (!parent::delete()) {
78  return false;
79  }
80 
81  //put here your module specific stuff
82 
83  return true;
84  }
85 }
global $DIC
Definition: saml.php:7
__construct($a_id=0, $a_call_by_reference=true)
Constructor public.
Class ilObjMediaObjectsSettings.
update($pash, $contents, Config $config)
global $ilDB