ILIAS  release_5-4 Revision v5.4.26-12-gabc799a52e6
ilMDDescription Class Reference
+ Inheritance diagram for ilMDDescription:
+ Collaboration diagram for ilMDDescription:

Public Member Functions

 setDescription ($a_description)
 
 getDescription ()
 
 setDescriptionLanguage (&$lng_obj)
 
getDescriptionLanguage ()
 
 getDescriptionLanguageCode ()
 
 save ()
 
 update ()
 
 delete ()
 
 __getFields ()
 
 read ()
 
 toXML (&$writer)
 
 setDescription ($a_description)
 
 getDescription ()
 
 setDescriptionLanguage (&$lng_obj)
 
getDescriptionLanguage ()
 
 getDescriptionLanguageCode ()
 
 save ()
 
 update ()
 
 delete ()
 
 __getFields ()
 
 read ()
 
 toXML (&$writer)
 
 _getIds ($a_rbac_id, $a_obj_id, $a_parent_id, $a_parent_type)
 
 setDescription ($a_description)
 
 getDescription ()
 
 setDescriptionLanguage (&$lng_obj)
 
getDescriptionLanguage ()
 
 getDescriptionLanguageCode ()
 
 save ()
 
 update ()
 
 delete ()
 
 __getFields ()
 
 read ()
 
 toXML (&$writer)
 
- Public Member Functions inherited from ilMDBase
 __construct ( $a_rbac_id=0, $a_obj_id=0, $a_type=0)
 
 setRBACId ($a_id)
 
 getRBACId ()
 
 setObjId ($a_id)
 
 getObjId ()
 
 setObjType ($a_type)
 
 getObjType ()
 
 setMetaId ($a_meta_id, $a_read_data=true)
 
 getMetaId ()
 
 setParentType ($a_parent_type)
 
 getParentType ()
 
 setParentId ($a_id)
 
 getParentId ()
 
 setExportMode ($a_export_mode=true)
 
 getExportMode ()
 
 validate ()
 
 update ()
 
 save ()
 
 delete ()
 
 toXML (&$writer)
 
 __construct ( $a_rbac_id=0, $a_obj_id=0, $a_type=0)
 
 setRBACId ($a_id)
 
 getRBACId ()
 
 setObjId ($a_id)
 
 getObjId ()
 
 setObjType ($a_type)
 
 getObjType ()
 
 setMetaId ($a_meta_id, $a_read_data=true)
 
 getMetaId ()
 
 setParentType ($a_parent_type)
 
 getParentType ()
 
 setParentId ($a_id)
 
 getParentId ()
 
 validate ()
 
 update ()
 
 save ()
 
 delete ()
 
 toXML (&$writer)
 
 __construct ( $a_rbac_id=0, $a_obj_id=0, $a_type=0)
 
 setRBACId ($a_id)
 
 getRBACId ()
 
 setObjId ($a_id)
 
 getObjId ()
 
 setObjType ($a_type)
 
 getObjType ()
 
 setMetaId ($a_meta_id, $a_read_data=true)
 
 getMetaId ()
 
 setParentType ($a_parent_type)
 
 getParentType ()
 
 setParentId ($a_id)
 
 getParentId ()
 
 setExportMode ($a_export_mode=true)
 
 getExportMode ()
 
 validate ()
 
 update ()
 
 save ()
 
 delete ()
 
 toXML (&$writer)
 

Static Public Member Functions

static _getIds ($a_rbac_id, $a_obj_id, $a_parent_id, $a_parent_type)
 
static _getIds ($a_rbac_id, $a_obj_id, $a_parent_id, $a_parent_type)
 

Additional Inherited Members

- Data Fields inherited from ilMDBase
 $rbac_id
 
 $obj_id
 
 $obj_type
 
 $export_mode = false
 
- Protected Attributes inherited from ilMDBase
 $log
 

Detailed Description

Definition at line 33 of file class.ilMDDescription.php.

Member Function Documentation

◆ __getFields() [1/3]

ilMDDescription::__getFields ( )

Definition at line 106 of file class.ilMDDescription.php.

References getDescription(), getDescriptionLanguageCode(), ilMDBase\getObjId(), ilMDBase\getObjType(), ilMDBase\getParentId(), ilMDBase\getParentType(), ilMDBase\getRBACId(), and ilUtil\prepareDBString().

107  {
108  return array('rbac_id' => $this->getRBACId(),
109  'obj_id' => $this->getObjId(),
110  'obj_type' => ilUtil::prepareDBString($this->getObjType()),
111  'parent_type' => $this->getParentType(),
112  'parent_id' => $this->getParentId(),
113  'description' => ilUtil::prepareDBString($this->getDescription()),
114  'description_language' => ilUtil::prepareDBString($this->getDescriptionLanguageCode()));
115  }
static prepareDBString($a_str)
prepare a string for db writing (insert/update)
+ Here is the call graph for this function:

◆ __getFields() [2/3]

ilMDDescription::__getFields ( )

Definition at line 110 of file class.ilMDDescription.php.

References getDescription(), getDescriptionLanguageCode(), ilMDBase\getObjId(), ilMDBase\getObjType(), ilMDBase\getParentId(), ilMDBase\getParentType(), and ilMDBase\getRBACId().

Referenced by save().

111  {
112  return array('rbac_id' => array('integer',$this->getRBACId()),
113  'obj_id' => array('integer',$this->getObjId()),
114  'obj_type' => array('text',$this->getObjType()),
115  'parent_type' => array('text',$this->getParentType()),
116  'parent_id' => array('integer',$this->getParentId()),
117  'description' => array('clob',$this->getDescription()),
118  'description_language' => array('text',$this->getDescriptionLanguageCode()));
119  }
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ __getFields() [3/3]

ilMDDescription::__getFields ( )

Definition at line 110 of file class.ilMDDescription.php.

References getDescription(), getDescriptionLanguageCode(), ilMDBase\getObjId(), ilMDBase\getObjType(), ilMDBase\getParentId(), ilMDBase\getParentType(), and ilMDBase\getRBACId().

111  {
112  return array('rbac_id' => array('integer',$this->getRBACId()),
113  'obj_id' => array('integer',$this->getObjId()),
114  'obj_type' => array('text',$this->getObjType()),
115  'parent_type' => array('text',$this->getParentType()),
116  'parent_id' => array('integer',$this->getParentId()),
117  'description' => array('clob',$this->getDescription()),
118  'description_language' => array('text',$this->getDescriptionLanguageCode()));
119  }
+ Here is the call graph for this function:

◆ _getIds() [1/3]

ilMDDescription::_getIds (   $a_rbac_id,
  $a_obj_id,
  $a_parent_id,
  $a_parent_type 
)

Definition at line 153 of file class.ilMDDescription.php.

References $ilDB, $query, $res, $row, and ilDBConstants\FETCHMODE_OBJECT.

154  {
155  global $ilDB;
156 
157  $query = "SELECT meta_description_id FROM il_meta_description " .
158  "WHERE rbac_id = " . $ilDB->quote($a_rbac_id) . " " .
159  "AND obj_id = " . $ilDB->quote($a_obj_id) . " " .
160  "AND parent_id = " . $ilDB->quote($a_parent_id) . " " .
161  "AND parent_type = " . $ilDB->quote($a_parent_type) . " " .
162  "ORDER BY meta_description_id";
163 
164  $res = $ilDB->query($query);
165  while ($row = $res->fetchRow(ilDBConstants::FETCHMODE_OBJECT)) {
166  $ids[] = $row->meta_description_id;
167  }
168  return $ids ? $ids : array();
169  }
foreach($_POST as $key=> $value) $res
$query
$row
global $ilDB

◆ _getIds() [2/3]

static ilMDDescription::_getIds (   $a_rbac_id,
  $a_obj_id,
  $a_parent_id,
  $a_parent_type 
)
static

Definition at line 165 of file class.ilMDDescription.php.

References $DIC, $ilDB, $query, $res, $row, and ilDBConstants\FETCHMODE_OBJECT.

166  {
167  global $DIC;
168 
169  $ilDB = $DIC['ilDB'];
170 
171  $query = "SELECT meta_description_id FROM il_meta_description " .
172  "WHERE rbac_id = " . $ilDB->quote($a_rbac_id) . " " .
173  "AND obj_id = " . $ilDB->quote($a_obj_id) . " " .
174  "AND parent_id = " . $ilDB->quote($a_parent_id) . " " .
175  "AND parent_type = " . $ilDB->quote($a_parent_type) . " " .
176  "ORDER BY meta_description_id";
177 
178  $res = $ilDB->query($query);
179  while ($row = $res->fetchRow(ilDBConstants::FETCHMODE_OBJECT)) {
180  $ids[] = $row->meta_description_id;
181  }
182  return $ids ? $ids : array();
183  }
global $DIC
Definition: saml.php:7
foreach($_POST as $key=> $value) $res
$query
$row
global $ilDB

◆ _getIds() [3/3]

static ilMDDescription::_getIds (   $a_rbac_id,
  $a_obj_id,
  $a_parent_id,
  $a_parent_type 
)
static

Definition at line 165 of file class.ilMDDescription.php.

References $DIC, $ilDB, $query, $res, $row, and ilDBConstants\FETCHMODE_OBJECT.

Referenced by ilMDEducational\getDescriptionIds(), and ilMDGeneral\getDescriptionIds().

166  {
167  global $DIC;
168 
169  $ilDB = $DIC['ilDB'];
170 
171  $query = "SELECT meta_description_id FROM il_meta_description " .
172  "WHERE rbac_id = " . $ilDB->quote($a_rbac_id) . " " .
173  "AND obj_id = " . $ilDB->quote($a_obj_id) . " " .
174  "AND parent_id = " . $ilDB->quote($a_parent_id) . " " .
175  "AND parent_type = " . $ilDB->quote($a_parent_type) . " " .
176  "ORDER BY meta_description_id";
177 
178  $res = $ilDB->query($query);
179  while ($row = $res->fetchRow(ilDBConstants::FETCHMODE_OBJECT)) {
180  $ids[] = $row->meta_description_id;
181  }
182  return $ids ? $ids : array();
183  }
global $DIC
Definition: saml.php:7
foreach($_POST as $key=> $value) $res
$query
$row
global $ilDB
+ Here is the caller graph for this function:

◆ delete() [1/3]

ilMDDescription::delete ( )

Definition at line 90 of file class.ilMDDescription.php.

References $ilDB, $query, and ilMDBase\getMetaId().

91  {
92  global $ilDB;
93 
94  if ($this->getMetaId()) {
95  $query = "DELETE FROM il_meta_description " .
96  "WHERE meta_description_id = " . $ilDB->quote($this->getMetaId());
97 
98  $this->db->query($query);
99 
100  return true;
101  }
102  return false;
103  }
$query
global $ilDB
+ Here is the call graph for this function:

◆ delete() [2/3]

ilMDDescription::delete ( )

Definition at line 93 of file class.ilMDDescription.php.

References $DIC, $ilDB, $query, $res, and ilMDBase\getMetaId().

94  {
95  global $DIC;
96 
97  $ilDB = $DIC['ilDB'];
98 
99  if ($this->getMetaId()) {
100  $query = "DELETE FROM il_meta_description " .
101  "WHERE meta_description_id = " . $ilDB->quote($this->getMetaId(), 'integer');
102  $res = $ilDB->manipulate($query);
103 
104  return true;
105  }
106  return false;
107  }
global $DIC
Definition: saml.php:7
foreach($_POST as $key=> $value) $res
$query
global $ilDB
+ Here is the call graph for this function:

◆ delete() [3/3]

ilMDDescription::delete ( )

Definition at line 93 of file class.ilMDDescription.php.

References $DIC, $ilDB, $query, $res, and ilMDBase\getMetaId().

94  {
95  global $DIC;
96 
97  $ilDB = $DIC['ilDB'];
98 
99  if ($this->getMetaId()) {
100  $query = "DELETE FROM il_meta_description " .
101  "WHERE meta_description_id = " . $ilDB->quote($this->getMetaId(), 'integer');
102  $res = $ilDB->manipulate($query);
103 
104  return true;
105  }
106  return false;
107  }
global $DIC
Definition: saml.php:7
foreach($_POST as $key=> $value) $res
$query
global $ilDB
+ Here is the call graph for this function:

◆ getDescription() [1/3]

ilMDDescription::getDescription ( )

Definition at line 40 of file class.ilMDDescription.php.

References $description.

Referenced by __getFields(), and toXML().

41  {
42  return $this->description;
43  }
+ Here is the caller graph for this function:

◆ getDescription() [2/3]

ilMDDescription::getDescription ( )

Definition at line 40 of file class.ilMDDescription.php.

References $description.

41  {
42  return $this->description;
43  }

◆ getDescription() [3/3]

ilMDDescription::getDescription ( )

Definition at line 40 of file class.ilMDDescription.php.

References $description.

41  {
42  return $this->description;
43  }

◆ getDescriptionLanguage() [1/3]

& ilMDDescription::getDescriptionLanguage ( )

Definition at line 50 of file class.ilMDDescription.php.

51  {
52  return is_object($this->description_language) ? $this->description_language : false;
53  }

◆ getDescriptionLanguage() [2/3]

& ilMDDescription::getDescriptionLanguage ( )

Definition at line 50 of file class.ilMDDescription.php.

51  {
52  return is_object($this->description_language) ? $this->description_language : false;
53  }

◆ getDescriptionLanguage() [3/3]

& ilMDDescription::getDescriptionLanguage ( )

Definition at line 50 of file class.ilMDDescription.php.

51  {
52  return is_object($this->description_language) ? $this->description_language : false;
53  }

◆ getDescriptionLanguageCode() [1/3]

ilMDDescription::getDescriptionLanguageCode ( )

Definition at line 54 of file class.ilMDDescription.php.

55  {
56  return is_object($this->description_language) ? $this->description_language->getLanguageCode() : false;
57  }

◆ getDescriptionLanguageCode() [2/3]

ilMDDescription::getDescriptionLanguageCode ( )

Definition at line 54 of file class.ilMDDescription.php.

55  {
56  return is_object($this->description_language) ? $this->description_language->getLanguageCode() : false;
57  }

◆ getDescriptionLanguageCode() [3/3]

ilMDDescription::getDescriptionLanguageCode ( )

Definition at line 54 of file class.ilMDDescription.php.

Referenced by __getFields(), and toXML().

55  {
56  return is_object($this->description_language) ? $this->description_language->getLanguageCode() : false;
57  }
+ Here is the caller graph for this function:

◆ read() [1/3]

ilMDDescription::read ( )

Definition at line 117 of file class.ilMDDescription.php.

References $ilDB, $query, $res, $row, ilDBConstants\FETCHMODE_OBJECT, ilMDBase\getMetaId(), setDescription(), setDescriptionLanguage(), ilMDBase\setObjId(), ilMDBase\setObjType(), ilMDBase\setParentId(), ilMDBase\setParentType(), ilMDBase\setRBACId(), and ilUtil\stripSlashes().

118  {
119  global $ilDB;
120 
121  include_once 'Services/Migration/DBUpdate_426/classes/class.ilMDLanguageItem.php';
122 
123  if ($this->getMetaId()) {
124  $query = "SELECT * FROM il_meta_description " .
125  "WHERE meta_description_id = " . $ilDB->quote($this->getMetaId());
126 
127  $res = $this->db->query($query);
128  while ($row = $res->fetchRow(ilDBConstants::FETCHMODE_OBJECT)) {
129  $this->setRBACId($row->rbac_id);
130  $this->setObjId($row->obj_id);
131  $this->setObjType($row->obj_type);
132  $this->setParentId($row->parent_id);
133  $this->setParentType($row->parent_type);
134  $this->setDescription(ilUtil::stripSlashes($row->description));
135  $this->setDescriptionLanguage(new ilMDLanguageItem($row->description_language));
136  }
137  }
138  return true;
139  }
setObjType($a_type)
setDescription($a_description)
foreach($_POST as $key=> $value) $res
setObjId($a_id)
setRBACId($a_id)
$query
static stripSlashes($a_str, $a_strip_html=true, $a_allow="")
strip slashes if magic qoutes is enabled
setDescriptionLanguage(&$lng_obj)
setParentId($a_id)
$row
global $ilDB
setParentType($a_parent_type)
+ Here is the call graph for this function:

◆ read() [2/3]

ilMDDescription::read ( )

Definition at line 121 of file class.ilMDDescription.php.

References $DIC, $ilDB, $query, $res, $row, ilDBConstants\FETCHMODE_OBJECT, ilMDBase\getMetaId(), setDescription(), setDescriptionLanguage(), ilMDBase\setObjId(), ilMDBase\setObjType(), ilMDBase\setParentId(), ilMDBase\setParentType(), and ilMDBase\setRBACId().

122  {
123  global $DIC;
124 
125  $ilDB = $DIC['ilDB'];
126 
127  include_once 'Services/MetaData/classes/class.ilMDLanguageItem.php';
128 
129  if ($this->getMetaId()) {
130  $query = "SELECT * FROM il_meta_description " .
131  "WHERE meta_description_id = " . $ilDB->quote($this->getMetaId(), 'integer');
132 
133  $res = $this->db->query($query);
134  while ($row = $res->fetchRow(ilDBConstants::FETCHMODE_OBJECT)) {
135  $this->setRBACId($row->rbac_id);
136  $this->setObjId($row->obj_id);
137  $this->setObjType($row->obj_type);
138  $this->setParentId($row->parent_id);
139  $this->setParentType($row->parent_type);
140  $this->setDescription($row->description);
141  $this->setDescriptionLanguage(new ilMDLanguageItem($row->description_language));
142  }
143  }
144  return true;
145  }
setObjType($a_type)
global $DIC
Definition: saml.php:7
setDescription($a_description)
foreach($_POST as $key=> $value) $res
setObjId($a_id)
setRBACId($a_id)
$query
setDescriptionLanguage(&$lng_obj)
setParentId($a_id)
$row
global $ilDB
setParentType($a_parent_type)
+ Here is the call graph for this function:

◆ read() [3/3]

ilMDDescription::read ( )

Definition at line 121 of file class.ilMDDescription.php.

References $DIC, $ilDB, $query, $res, $row, ilDBConstants\FETCHMODE_OBJECT, ilMDBase\getMetaId(), setDescription(), setDescriptionLanguage(), ilMDBase\setObjId(), ilMDBase\setObjType(), ilMDBase\setParentId(), ilMDBase\setParentType(), and ilMDBase\setRBACId().

122  {
123  global $DIC;
124 
125  $ilDB = $DIC['ilDB'];
126 
127  include_once 'Services/Migration/DBUpdate_5295/classes/class.ilMDLanguageItem.php';
128 
129  if ($this->getMetaId()) {
130  $query = "SELECT * FROM il_meta_description " .
131  "WHERE meta_description_id = " . $ilDB->quote($this->getMetaId(), 'integer');
132 
133  $res = $this->db->query($query);
134  while ($row = $res->fetchRow(ilDBConstants::FETCHMODE_OBJECT)) {
135  $this->setRBACId($row->rbac_id);
136  $this->setObjId($row->obj_id);
137  $this->setObjType($row->obj_type);
138  $this->setParentId($row->parent_id);
139  $this->setParentType($row->parent_type);
140  $this->setDescription($row->description);
141  $this->setDescriptionLanguage(new ilMDLanguageItem($row->description_language));
142  }
143  }
144  return true;
145  }
setObjType($a_type)
global $DIC
Definition: saml.php:7
setDescription($a_description)
foreach($_POST as $key=> $value) $res
setObjId($a_id)
setRBACId($a_id)
$query
setDescriptionLanguage(&$lng_obj)
setParentId($a_id)
$row
global $ilDB
setParentType($a_parent_type)
+ Here is the call graph for this function:

◆ save() [1/3]

ilMDDescription::save ( )

Definition at line 59 of file class.ilMDDescription.php.

References ilDBConstants\AUTOQUERY_INSERT, ilMDBase\getMetaId(), and ilMDBase\setMetaId().

60  {
61  if ($this->db->autoExecute(
62  'il_meta_description',
63  $this->__getFields(),
65  )) {
66  $this->setMetaId($this->db->getLastInsertId());
67 
68  return $this->getMetaId();
69  }
70  return false;
71  }
setMetaId($a_meta_id, $a_read_data=true)
+ Here is the call graph for this function:

◆ save() [2/3]

ilMDDescription::save ( )

Definition at line 59 of file class.ilMDDescription.php.

References $DIC, $ilDB, __getFields(), ilMDBase\getMetaId(), and ilMDBase\setMetaId().

60  {
61  global $DIC;
62 
63  $ilDB = $DIC['ilDB'];
64 
65  $fields = $this->__getFields();
66  $fields['meta_description_id'] = array('integer',$next_id = $ilDB->nextId('il_meta_description'));
67 
68  if ($this->db->insert('il_meta_description', $fields)) {
69  $this->setMetaId($next_id);
70  return $this->getMetaId();
71  }
72  return false;
73  }
global $DIC
Definition: saml.php:7
setMetaId($a_meta_id, $a_read_data=true)
global $ilDB
+ Here is the call graph for this function:

◆ save() [3/3]

ilMDDescription::save ( )

Definition at line 59 of file class.ilMDDescription.php.

References $DIC, $ilDB, __getFields(), ilMDBase\getMetaId(), and ilMDBase\setMetaId().

60  {
61  global $DIC;
62 
63  $ilDB = $DIC['ilDB'];
64 
65  $fields = $this->__getFields();
66  $fields['meta_description_id'] = array('integer',$next_id = $ilDB->nextId('il_meta_description'));
67 
68  if ($this->db->insert('il_meta_description', $fields)) {
69  $this->setMetaId($next_id);
70  return $this->getMetaId();
71  }
72  return false;
73  }
global $DIC
Definition: saml.php:7
setMetaId($a_meta_id, $a_read_data=true)
global $ilDB
+ Here is the call graph for this function:

◆ setDescription() [1/3]

ilMDDescription::setDescription (   $a_description)

Definition at line 36 of file class.ilMDDescription.php.

37  {
38  $this->description = $a_description;
39  }

◆ setDescription() [2/3]

ilMDDescription::setDescription (   $a_description)

Definition at line 36 of file class.ilMDDescription.php.

Referenced by read().

37  {
38  $this->description = $a_description;
39  }
+ Here is the caller graph for this function:

◆ setDescription() [3/3]

ilMDDescription::setDescription (   $a_description)

Definition at line 36 of file class.ilMDDescription.php.

37  {
38  $this->description = $a_description;
39  }

◆ setDescriptionLanguage() [1/3]

ilMDDescription::setDescriptionLanguage ( $lng_obj)

Definition at line 44 of file class.ilMDDescription.php.

Referenced by read().

45  {
46  if (is_object($lng_obj)) {
47  $this->description_language = $lng_obj;
48  }
49  }
+ Here is the caller graph for this function:

◆ setDescriptionLanguage() [2/3]

ilMDDescription::setDescriptionLanguage ( $lng_obj)

Definition at line 44 of file class.ilMDDescription.php.

45  {
46  if (is_object($lng_obj)) {
47  $this->description_language = $lng_obj;
48  }
49  }

◆ setDescriptionLanguage() [3/3]

ilMDDescription::setDescriptionLanguage ( $lng_obj)

Definition at line 44 of file class.ilMDDescription.php.

45  {
46  if (is_object($lng_obj)) {
47  $this->description_language = $lng_obj;
48  }
49  }

◆ toXML() [1/3]

ilMDDescription::toXML ( $writer)

Definition at line 146 of file class.ilMDDescription.php.

References getDescription(), and getDescriptionLanguageCode().

147  {
148  $writer->xmlElement('Description', array('Language' => $this->getDescriptionLanguageCode()), $this->getDescription());
149  }
+ Here is the call graph for this function:

◆ toXML() [2/3]

ilMDDescription::toXML ( $writer)

Definition at line 152 of file class.ilMDDescription.php.

References getDescription(), and getDescriptionLanguageCode().

153  {
154  $writer->xmlElement(
155  'Description',
156  array('Language' => $this->getDescriptionLanguageCode() ?
157  $this->getDescriptionLanguageCode() :
158  'en'),
159  $this->getDescription()
160  );
161  }
+ Here is the call graph for this function:

◆ toXML() [3/3]

ilMDDescription::toXML ( $writer)

Definition at line 152 of file class.ilMDDescription.php.

References getDescription(), and getDescriptionLanguageCode().

153  {
154  $writer->xmlElement(
155  'Description',
156  array('Language' => $this->getDescriptionLanguageCode() ?
157  $this->getDescriptionLanguageCode() :
158  'en'),
159  $this->getDescription()
160  );
161  }
+ Here is the call graph for this function:

◆ update() [1/3]

ilMDDescription::update ( )

Definition at line 73 of file class.ilMDDescription.php.

References $ilDB, ilDBConstants\AUTOQUERY_UPDATE, and ilMDBase\getMetaId().

74  {
75  global $ilDB;
76 
77  if ($this->getMetaId()) {
78  if ($this->db->autoExecute(
79  'il_meta_description',
80  $this->__getFields(),
82  "meta_description_id = " . $ilDB->quote($this->getMetaId())
83  )) {
84  return true;
85  }
86  }
87  return false;
88  }
global $ilDB
+ Here is the call graph for this function:

◆ update() [2/3]

ilMDDescription::update ( )

Definition at line 75 of file class.ilMDDescription.php.

References $DIC, $ilDB, and ilMDBase\getMetaId().

76  {
77  global $DIC;
78 
79  $ilDB = $DIC['ilDB'];
80 
81  if ($this->getMetaId()) {
82  if ($this->db->update(
83  'il_meta_description',
84  $this->__getFields(),
85  array("meta_description_id" => array('integer',$this->getMetaId()))
86  )) {
87  return true;
88  }
89  }
90  return false;
91  }
global $DIC
Definition: saml.php:7
global $ilDB
+ Here is the call graph for this function:

◆ update() [3/3]

ilMDDescription::update ( )

Definition at line 75 of file class.ilMDDescription.php.

References $DIC, $ilDB, and ilMDBase\getMetaId().

76  {
77  global $DIC;
78 
79  $ilDB = $DIC['ilDB'];
80 
81  if ($this->getMetaId()) {
82  if ($this->db->update(
83  'il_meta_description',
84  $this->__getFields(),
85  array("meta_description_id" => array('integer',$this->getMetaId()))
86  )) {
87  return true;
88  }
89  }
90  return false;
91  }
global $DIC
Definition: saml.php:7
global $ilDB
+ Here is the call graph for this function:

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