5require_once
"Services/Object/classes/class.ilObject2.php";
32 function notify($a_event,$a_ref_id,$a_parent_non_rbac_id,$a_node_id,$a_params = 0)
85 $q =
"SELECT * FROM object_translation WHERE obj_id = ".
86 $ilDB->quote($this->
getId(),
'integer').
" ORDER BY lang_default DESC";
87 $r = $this->
ilias->db->query($q);
91 $data[
"Fobject"] = array();
94 $data[
"Fobject"][$num]= array(
"title" =>
$row->title,
95 "desc" =>
$row->description,
96 "lang" =>
$row->lang_code
102 $data[
"default_language"] = 0;
112 $query =
"DELETE FROM object_translation WHERE obj_id= ".
124 $a_title =
"NO TITLE";
127 $query =
"INSERT INTO object_translation ".
128 "(obj_id,title,description,lang_code,lang_default) ".
130 "(".$ilDB->quote($this->
getId(),
'integer').
",".
131 $ilDB->quote($a_title,
'text').
",".
132 $ilDB->quote($a_desc,
'text').
",".
133 $ilDB->quote($a_lang,
'text').
",".
134 $ilDB->quote($a_lang_default,
'integer').
")";
const DB_FETCHMODE_OBJECT
Class ilObjWorkspaceRootFolder.
addTranslation($a_title, $a_desc, $a_lang, $a_lang_default)
getTranslations()
get all translations from this category
notify($a_event, $a_ref_id, $a_parent_non_rbac_id, $a_node_id, $a_params=0)
notifys an object about an event occured Based on the event happend, each object may decide how it re...
Class ilObject2 This is an intermediate progress of ilObject class.
getId()
get object id @access public
redirection script todo: (a better solution should control the processing via a xml file)