Go to the documentation of this file.00001 <?php
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00033 class ilMDBase
00034 {
00035
00036
00037
00038
00039
00040 var $rbac_id;
00041
00042
00043
00044
00045 var $obj_id;
00046
00047
00048
00049
00050 var $obj_type;
00051
00052
00053
00054
00055
00056 var $export_mode = false;
00057
00058
00059 function ilMDBase($a_rbac_id = 0,
00060 $a_obj_id = 0,
00061 $a_type = 0)
00062 {
00063 global $ilDB,$ilLog;
00064
00065 if ($a_obj_id == 0)
00066 {
00067 $a_obj_id = $a_rbac_id;
00068 }
00069
00070 $this->db =& $ilDB;
00071 $this->log =& $ilLog;
00072
00073 $this->rbac_id = $a_rbac_id;
00074 $this->obj_id = $a_obj_id;
00075 $this->obj_type = $a_type;
00076 }
00077
00078
00079 function setRBACId($a_id)
00080 {
00081 $this->rbac_id = $a_id;
00082 }
00083 function getRBACId()
00084 {
00085 return $this->rbac_id;
00086 }
00087 function setObjId($a_id)
00088 {
00089 $this->obj_id = $a_id;
00090 }
00091 function getObjId()
00092 {
00093 return $this->obj_id;
00094 }
00095 function setObjType($a_type)
00096 {
00097 $this->obj_type = $a_type;
00098 }
00099 function getObjType()
00100 {
00101 return $this->obj_type;
00102 }
00103 function setMetaId($a_meta_id,$a_read_data = true)
00104 {
00105 $this->meta_id = $a_meta_id;
00106
00107 if($a_read_data)
00108 {
00109 $this->read();
00110 }
00111 }
00112 function getMetaId()
00113 {
00114 return $this->meta_id;
00115 }
00116 function setParentType($a_parent_type)
00117 {
00118 $this->parent_type = $a_parent_type;
00119 }
00120 function getParentType()
00121 {
00122 return $this->parent_type;
00123 }
00124 function setParentId($a_id)
00125 {
00126 $this->parent_id = $a_id;
00127 }
00128 function getParentId()
00129 {
00130 return $this->parent_id;
00131 }
00132
00133 function setExportMode($a_export_mode = true)
00134 {
00135 $this->export_mode = $a_export_mode;
00136 }
00137
00138 function getExportMode()
00139 {
00140 return $this->export_mode;
00141 }
00142
00143
00144
00145
00146
00147
00148
00149
00150 function validate()
00151 {
00152 return false;
00153 }
00154
00155
00156
00157
00158
00159
00160
00161 function update()
00162 {
00163 return false;
00164 }
00165
00166
00167
00168
00169
00170
00171
00172 function save()
00173 {
00174 return false;
00175 }
00176
00177
00178
00179
00180
00181
00182 function delete()
00183 {
00184 }
00185
00186
00187
00188
00189
00190
00191
00192 function toXML(&$writer)
00193 {
00194 }
00195
00196 }
00197 ?>