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

Public Member Functions

 setTaxon ($a_taxon)
 
 getTaxon ()
 
 setTaxonLanguage (&$lng_obj)
 
getTaxonLanguage ()
 
 getTaxonLanguageCode ()
 
 setTaxonId ($a_taxon_id)
 
 getTaxonId ()
 
 save ()
 
 update ()
 
 delete ()
 
 __getFields ()
 
 read ()
 
 toXML (&$writer)
 
 setTaxon ($a_taxon)
 
 getTaxon ()
 
 setTaxonLanguage (&$lng_obj)
 
getTaxonLanguage ()
 
 getTaxonLanguageCode ()
 
 setTaxonId ($a_taxon_id)
 
 getTaxonId ()
 
 save ()
 
 update ()
 
 delete ()
 
 __getFields ()
 
 read ()
 
 toXML (&$writer)
 
 _getIds ($a_rbac_id, $a_obj_id, $a_parent_id, $a_parent_type)
 
 setTaxon ($a_taxon)
 
 getTaxon ()
 
 setTaxonLanguage (&$lng_obj)
 
getTaxonLanguage ()
 
 getTaxonLanguageCode ()
 
 setTaxonId ($a_taxon_id)
 
 getTaxonId ()
 
 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.ilMDTaxon.php.

Member Function Documentation

◆ __getFields() [1/3]

ilMDTaxon::__getFields ( )

Definition at line 120 of file class.ilMDTaxon.php.

121 {
122 return array('rbac_id' => array('integer',$this->getRBACId()),
123 'obj_id' => array('integer',$this->getObjId()),
124 'obj_type' => array('text',$this->getObjType()),
125 'parent_type' => array('text',$this->getParentType()),
126 'parent_id' => array('integer',$this->getParentId()),
127 'taxon' => array('text',$this->getTaxon()),
128 'taxon_language' => array('text',$this->getTaxonLanguageCode()),
129 'taxon_id' => array('text',$this->getTaxonId()));
130 }

References ilMDBase\getObjId(), ilMDBase\getObjType(), ilMDBase\getParentId(), ilMDBase\getParentType(), ilMDBase\getRBACId(), getTaxon(), getTaxonId(), and getTaxonLanguageCode().

Referenced by save().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ __getFields() [2/3]

ilMDTaxon::__getFields ( )

Definition at line 113 of file class.ilMDTaxon.php.

114 {
115 return array('rbac_id' => $this->getRBACId(),
116 'obj_id' => $this->getObjId(),
117 'obj_type' => ilUtil::prepareDBString($this->getObjType()),
118 'parent_type' => $this->getParentType(),
119 'parent_id' => $this->getParentId(),
120 'taxon' => ilUtil::prepareDBString($this->getTaxon()),
121 'taxon_language' => ilUtil::prepareDBString($this->getTaxonLanguageCode()),
122 'taxon_id' => ilUtil::prepareDBString($this->getTaxonId()));
123 }
static prepareDBString($a_str)
prepare a string for db writing (insert/update)

References ilMDBase\getObjId(), ilMDBase\getObjType(), ilMDBase\getParentId(), ilMDBase\getParentType(), ilMDBase\getRBACId(), getTaxon(), getTaxonId(), getTaxonLanguageCode(), and ilUtil\prepareDBString().

+ Here is the call graph for this function:

◆ __getFields() [3/3]

ilMDTaxon::__getFields ( )

Definition at line 120 of file class.ilMDTaxon.php.

121 {
122 return array('rbac_id' => array('integer',$this->getRBACId()),
123 'obj_id' => array('integer',$this->getObjId()),
124 'obj_type' => array('text',$this->getObjType()),
125 'parent_type' => array('text',$this->getParentType()),
126 'parent_id' => array('integer',$this->getParentId()),
127 'taxon' => array('text',$this->getTaxon()),
128 'taxon_language' => array('text',$this->getTaxonLanguageCode()),
129 'taxon_id' => array('text',$this->getTaxonId()));
130 }

References ilMDBase\getObjId(), ilMDBase\getObjType(), ilMDBase\getParentId(), ilMDBase\getParentType(), ilMDBase\getRBACId(), getTaxon(), getTaxonId(), and getTaxonLanguageCode().

+ Here is the call graph for this function:

◆ _getIds() [1/3]

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

Definition at line 180 of file class.ilMDTaxon.php.

181 {
182 global $DIC;
183
184 $ilDB = $DIC['ilDB'];
185
186 $query = "SELECT meta_taxon_id FROM il_meta_taxon " .
187 "WHERE rbac_id = " . $ilDB->quote($a_rbac_id, 'integer') . " " .
188 "AND obj_id = " . $ilDB->quote($a_obj_id, 'integer') . " " .
189 "AND parent_id = " . $ilDB->quote($a_parent_id, 'integer') . " " .
190 "AND parent_type = " . $ilDB->quote($a_parent_type, 'text');
191
192
193 $res = $ilDB->query($query);
194 while ($row = $res->fetchRow(ilDBConstants::FETCHMODE_OBJECT)) {
195 $ids[] = $row->meta_taxon_id;
196 }
197 return $ids ? $ids : array();
198 }
$row
$query
global $DIC
Definition: saml.php:7
foreach($_POST as $key=> $value) $res
global $ilDB

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

Referenced by ilMDTaxonPath\getTaxonIds().

+ Here is the caller graph for this function:

◆ _getIds() [2/3]

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

Definition at line 163 of file class.ilMDTaxon.php.

164 {
165 global $ilDB;
166
167 $query = "SELECT meta_taxon_id FROM il_meta_taxon " .
168 "WHERE rbac_id = " . $ilDB->quote($a_rbac_id) . " " .
169 "AND obj_id = " . $ilDB->quote($a_obj_id) . " " .
170 "AND parent_id = " . $ilDB->quote($a_parent_id) . " " .
171 "AND parent_type = " . $ilDB->quote($a_parent_type);
172
173
174 $res = $ilDB->query($query);
175 while ($row = $res->fetchRow(ilDBConstants::FETCHMODE_OBJECT)) {
176 $ids[] = $row->meta_taxon_id;
177 }
178 return $ids ? $ids : array();
179 }

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

◆ _getIds() [3/3]

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

Definition at line 179 of file class.ilMDTaxon.php.

180 {
181 global $DIC;
182
183 $ilDB = $DIC['ilDB'];
184
185 $query = "SELECT meta_taxon_id FROM il_meta_taxon " .
186 "WHERE rbac_id = " . $ilDB->quote($a_rbac_id, 'integer') . " " .
187 "AND obj_id = " . $ilDB->quote($a_obj_id, 'integer') . " " .
188 "AND parent_id = " . $ilDB->quote($a_parent_id, 'integer') . " " .
189 "AND parent_type = " . $ilDB->quote($a_parent_type, 'text');
190
191
192 $res = $ilDB->query($query);
193 while ($row = $res->fetchRow(ilDBConstants::FETCHMODE_OBJECT)) {
194 $ids[] = $row->meta_taxon_id;
195 }
196 return $ids ? $ids : array();
197 }

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

◆ delete() [1/3]

ilMDTaxon::delete ( )

Reimplemented from ilMDBase.

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

103 {
104 global $DIC;
105
106 $ilDB = $DIC['ilDB'];
107
108 if ($this->getMetaId()) {
109 $query = "DELETE FROM il_meta_taxon " .
110 "WHERE meta_taxon_id = " . $ilDB->quote($this->getMetaId(), 'integer');
111
112 $this->db->query($query);
113
114 return true;
115 }
116 return false;
117 }

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

+ Here is the call graph for this function:

◆ delete() [2/3]

ilMDTaxon::delete ( )

Reimplemented from ilMDBase.

Definition at line 99 of file class.ilMDTaxon.php.

100 {
101 if ($this->getMetaId()) {
102 $query = "DELETE FROM il_meta_taxon " .
103 "WHERE meta_taxon_id = " . $ilDB->quote($this->getMetaId());
104
105 $this->db->query($query);
106
107 return true;
108 }
109 return false;
110 }

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

+ Here is the call graph for this function:

◆ delete() [3/3]

ilMDTaxon::delete ( )

Reimplemented from ilMDBase.

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

103 {
104 global $DIC;
105
106 $ilDB = $DIC['ilDB'];
107
108 if ($this->getMetaId()) {
109 $query = "DELETE FROM il_meta_taxon " .
110 "WHERE meta_taxon_id = " . $ilDB->quote($this->getMetaId(), 'integer');
111
112 $this->db->query($query);
113
114 return true;
115 }
116 return false;
117 }

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

+ Here is the call graph for this function:

◆ getTaxon() [1/3]

ilMDTaxon::getTaxon ( )

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

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

Referenced by __getFields(), and toXML().

+ Here is the caller graph for this function:

◆ getTaxon() [2/3]

ilMDTaxon::getTaxon ( )

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

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

◆ getTaxon() [3/3]

ilMDTaxon::getTaxon ( )

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

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

◆ getTaxonId() [1/3]

ilMDTaxon::getTaxonId ( )

Definition at line 62 of file class.ilMDTaxon.php.

63 {
64 return $this->taxon_id;
65 }

Referenced by __getFields(), and toXML().

+ Here is the caller graph for this function:

◆ getTaxonId() [2/3]

ilMDTaxon::getTaxonId ( )

Definition at line 62 of file class.ilMDTaxon.php.

63 {
64 return $this->taxon_id;
65 }

◆ getTaxonId() [3/3]

ilMDTaxon::getTaxonId ( )

Definition at line 62 of file class.ilMDTaxon.php.

63 {
64 return $this->taxon_id;
65 }

◆ getTaxonLanguage() [1/3]

& ilMDTaxon::getTaxonLanguage ( )

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

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

◆ getTaxonLanguage() [2/3]

& ilMDTaxon::getTaxonLanguage ( )

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

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

◆ getTaxonLanguage() [3/3]

& ilMDTaxon::getTaxonLanguage ( )

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

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

◆ getTaxonLanguageCode() [1/3]

ilMDTaxon::getTaxonLanguageCode ( )

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

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

Referenced by __getFields(), and toXML().

+ Here is the caller graph for this function:

◆ getTaxonLanguageCode() [2/3]

ilMDTaxon::getTaxonLanguageCode ( )

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

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

◆ getTaxonLanguageCode() [3/3]

ilMDTaxon::getTaxonLanguageCode ( )

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

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

◆ read() [1/3]

ilMDTaxon::read ( )

Definition at line 132 of file class.ilMDTaxon.php.

133 {
134 global $DIC;
135
136 $ilDB = $DIC['ilDB'];
137
138 include_once 'Services/MetaData/classes/class.ilMDLanguageItem.php';
139
140 if ($this->getMetaId()) {
141 $query = "SELECT * FROM il_meta_taxon " .
142 "WHERE meta_taxon_id = " . $ilDB->quote($this->getMetaId(), 'integer');
143
144 $res = $this->db->query($query);
145 while ($row = $res->fetchRow(ilDBConstants::FETCHMODE_OBJECT)) {
146 $this->setRBACId($row->rbac_id);
147 $this->setObjId($row->obj_id);
148 $this->setObjType($row->obj_type);
149 $this->setParentId($row->parent_id);
150 $this->setParentType($row->parent_type);
151 $this->setTaxon($row->taxon);
152 $this->taxon_language = new ilMDLanguageItem($row->taxon_language);
153 $this->setTaxonId($row->taxon_id);
154 }
155 }
156 return true;
157 }
setObjId($a_id)
setParentId($a_id)
setObjType($a_type)
setRBACId($a_id)
setParentType($a_parent_type)
setTaxonId($a_taxon_id)
setTaxon($a_taxon)

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

+ Here is the call graph for this function:

◆ read() [2/3]

ilMDTaxon::read ( )

Definition at line 125 of file class.ilMDTaxon.php.

126 {
127 global $ilDB;
128
129 include_once 'Services/Migration/DBUpdate_426/classes/class.ilMDLanguageItem.php';
130
131 if ($this->getMetaId()) {
132 $query = "SELECT * FROM il_meta_taxon " .
133 "WHERE meta_taxon_id = " . $ilDB->quote($this->getMetaId());
134
135 $res = $this->db->query($query);
136 while ($row = $res->fetchRow(ilDBConstants::FETCHMODE_OBJECT)) {
137 $this->setRBACId($row->rbac_id);
138 $this->setObjId($row->obj_id);
139 $this->setObjType($row->obj_type);
140 $this->setParentId($row->parent_id);
141 $this->setParentType($row->parent_type);
142 $this->setTaxon(ilUtil::stripSlashes($row->taxon));
143 $this->taxon_language = new ilMDLanguageItem($row->taxon_language);
144 $this->setTaxonId(ilUtil::stripSlashes($row->taxon_id));
145 }
146 }
147 return true;
148 }
static stripSlashes($a_str, $a_strip_html=true, $a_allow="")
strip slashes if magic qoutes is enabled

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

+ Here is the call graph for this function:

◆ read() [3/3]

ilMDTaxon::read ( )

Definition at line 132 of file class.ilMDTaxon.php.

133 {
134 global $DIC;
135
136 $ilDB = $DIC['ilDB'];
137
138 include_once 'Services/Migration/DBUpdate_5295/classes/class.ilMDLanguageItem.php';
139
140 if ($this->getMetaId()) {
141 $query = "SELECT * FROM il_meta_taxon " .
142 "WHERE meta_taxon_id = " . $ilDB->quote($this->getMetaId(), 'integer');
143
144 $res = $this->db->query($query);
145 while ($row = $res->fetchRow(ilDBConstants::FETCHMODE_OBJECT)) {
146 $this->setRBACId($row->rbac_id);
147 $this->setObjId($row->obj_id);
148 $this->setObjType($row->obj_type);
149 $this->setParentId($row->parent_id);
150 $this->setParentType($row->parent_type);
151 $this->setTaxon($row->taxon);
152 $this->taxon_language = new ilMDLanguageItem($row->taxon_language);
153 $this->setTaxonId($row->taxon_id);
154 }
155 }
156 return true;
157 }

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

+ Here is the call graph for this function:

◆ save() [1/3]

ilMDTaxon::save ( )

Reimplemented from ilMDBase.

Definition at line 68 of file class.ilMDTaxon.php.

69 {
70 global $DIC;
71
72 $ilDB = $DIC['ilDB'];
73
74 $fields = $this->__getFields();
75 $fields['meta_taxon_id'] = array('integer',$next_id = $ilDB->nextId('il_meta_taxon'));
76
77 if ($this->db->insert('il_meta_taxon', $fields)) {
78 $this->setMetaId($next_id);
79 return $this->getMetaId();
80 }
81 return false;
82 }
setMetaId($a_meta_id, $a_read_data=true)

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

+ Here is the call graph for this function:

◆ save() [2/3]

ilMDTaxon::save ( )

Reimplemented from ilMDBase.

Definition at line 68 of file class.ilMDTaxon.php.

69 {
70 if ($this->db->autoExecute(
71 'il_meta_taxon',
72 $this->__getFields(),
74 )) {
75 $this->setMetaId($this->db->getLastInsertId());
76
77 return $this->getMetaId();
78 }
79 return false;
80 }

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

+ Here is the call graph for this function:

◆ save() [3/3]

ilMDTaxon::save ( )

Reimplemented from ilMDBase.

Definition at line 68 of file class.ilMDTaxon.php.

69 {
70 global $DIC;
71
72 $ilDB = $DIC['ilDB'];
73
74 $fields = $this->__getFields();
75 $fields['meta_taxon_id'] = array('integer',$next_id = $ilDB->nextId('il_meta_taxon'));
76
77 if ($this->db->insert('il_meta_taxon', $fields)) {
78 $this->setMetaId($next_id);
79 return $this->getMetaId();
80 }
81 return false;
82 }

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

+ Here is the call graph for this function:

◆ setTaxon() [1/3]

ilMDTaxon::setTaxon (   $a_taxon)

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

37 {
38 $this->taxon = $a_taxon;
39 }

Referenced by read().

+ Here is the caller graph for this function:

◆ setTaxon() [2/3]

ilMDTaxon::setTaxon (   $a_taxon)

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

37 {
38 $this->taxon = $a_taxon;
39 }

◆ setTaxon() [3/3]

ilMDTaxon::setTaxon (   $a_taxon)

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

37 {
38 $this->taxon = $a_taxon;
39 }

◆ setTaxonId() [1/3]

ilMDTaxon::setTaxonId (   $a_taxon_id)

Definition at line 58 of file class.ilMDTaxon.php.

59 {
60 $this->taxon_id = $a_taxon_id;
61 }

Referenced by read().

+ Here is the caller graph for this function:

◆ setTaxonId() [2/3]

ilMDTaxon::setTaxonId (   $a_taxon_id)

Definition at line 58 of file class.ilMDTaxon.php.

59 {
60 $this->taxon_id = $a_taxon_id;
61 }

◆ setTaxonId() [3/3]

ilMDTaxon::setTaxonId (   $a_taxon_id)

Definition at line 58 of file class.ilMDTaxon.php.

59 {
60 $this->taxon_id = $a_taxon_id;
61 }

◆ setTaxonLanguage() [1/3]

ilMDTaxon::setTaxonLanguage ( $lng_obj)

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

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

◆ setTaxonLanguage() [2/3]

ilMDTaxon::setTaxonLanguage ( $lng_obj)

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

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

◆ setTaxonLanguage() [3/3]

ilMDTaxon::setTaxonLanguage ( $lng_obj)

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

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

◆ toXML() [1/3]

ilMDTaxon::toXML ( $writer)

Reimplemented from ilMDBase.

Definition at line 164 of file class.ilMDTaxon.php.

165 {
166 $random = new \ilRandom();
167 $writer->xmlElement(
168 'Taxon',
169 array('Language' => $this->getTaxonLanguageCode()
170 ? $this->getTaxonLanguageCode()
171 : 'en',
172 'Id' => $this->getTaxonId() ?
173 $this->getTaxonId() : ("ID" . $random->int())),
174 $this->getTaxon()
175 );
176 }

References getTaxonId(), and getTaxonLanguageCode().

+ Here is the call graph for this function:

◆ toXML() [2/3]

ilMDTaxon::toXML ( $writer)

Reimplemented from ilMDBase.

Definition at line 155 of file class.ilMDTaxon.php.

156 {
157 $writer->xmlElement('Taxon', array('Language' => $this->getTaxonLanguageCode(),
158 'Id' => $this->getTaxonId()), $this->getTaxon());
159 }

References getTaxon(), getTaxonId(), and getTaxonLanguageCode().

+ Here is the call graph for this function:

◆ toXML() [3/3]

ilMDTaxon::toXML ( $writer)

Reimplemented from ilMDBase.

Definition at line 164 of file class.ilMDTaxon.php.

165 {
166 $writer->xmlElement(
167 'Taxon',
168 array('Language' => $this->getTaxonLanguageCode()
169 ? $this->getTaxonLanguageCode()
170 : 'en',
171 'Id' => $this->getTaxonId() ?
172 $this->getTaxonId() : ("ID" . rand())),
173 $this->getTaxon()
174 );
175 }

References getTaxon(), getTaxonId(), and getTaxonLanguageCode().

+ Here is the call graph for this function:

◆ update() [1/3]

ilMDTaxon::update ( )

Reimplemented from ilMDBase.

Definition at line 84 of file class.ilMDTaxon.php.

85 {
86 global $DIC;
87
88 $ilDB = $DIC['ilDB'];
89
90 if ($this->getMetaId()) {
91 if ($this->db->update(
92 'il_meta_taxon',
93 $this->__getFields(),
94 array("meta_taxon_id" => array('integer',$this->getMetaId()))
95 )) {
96 return true;
97 }
98 }
99 return false;
100 }

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

+ Here is the call graph for this function:

◆ update() [2/3]

ilMDTaxon::update ( )

Reimplemented from ilMDBase.

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

83 {
84 global $ilDB;
85
86 if ($this->getMetaId()) {
87 if ($this->db->autoExecute(
88 'il_meta_taxon',
89 $this->__getFields(),
91 "meta_taxon_id = " . $ilDB->quote($this->getMetaId())
92 )) {
93 return true;
94 }
95 }
96 return false;
97 }

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

+ Here is the call graph for this function:

◆ update() [3/3]

ilMDTaxon::update ( )

Reimplemented from ilMDBase.

Definition at line 84 of file class.ilMDTaxon.php.

85 {
86 global $DIC;
87
88 $ilDB = $DIC['ilDB'];
89
90 if ($this->getMetaId()) {
91 if ($this->db->update(
92 'il_meta_taxon',
93 $this->__getFields(),
94 array("meta_taxon_id" => array('integer',$this->getMetaId()))
95 )) {
96 return true;
97 }
98 }
99 return false;
100 }

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

+ Here is the call graph for this function:

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