4 include_once(
"./Services/Repository/classes/class.ilObjectPlugin.php");
5 include_once(
"class.ilCloudUtil.php");
6 include_once(
"class.ilCloudConnector.php");
74 $ilDB->manipulate(
"INSERT INTO il_cld_data " .
75 "(id, is_online, service, root_folder, root_id, owner_id, auth_complete) VALUES (" .
76 $ilDB->quote($this->getId(),
"integer") .
"," .
77 $ilDB->quote(
"",
"integer") .
"," .
78 $ilDB->quote(
"",
"text") .
"," .
79 $ilDB->quote(
"",
"text") .
"," .
80 $ilDB->quote(
"",
"text") .
"," .
81 $ilDB->quote($this->
getOwnerId(),
"integer") .
"," .
82 $ilDB->quote(
"",
"integer") .
93 $set = $ilDB->query(
"SELECT * FROM il_cld_data " .
94 " WHERE id = " . $ilDB->quote($this->getId(),
"integer"));
96 while ($rec = $ilDB->fetchAssoc($set))
114 $ilDB->manipulate($up =
"UPDATE il_cld_data SET " .
115 " is_online = " . $ilDB->quote($this->getOnline(),
"integer") .
"," .
116 " service = " . $ilDB->quote($this->getServiceName(),
"text") .
"," .
117 " root_folder = " . $ilDB->quote($this->getRootFolder(),
"text") .
"," .
118 " root_id = " . $ilDB->quote($this->getRootId(),
"text") .
"," .
119 " owner_id = " . $ilDB->quote($this->getOwnerId(),
"integer") .
"," .
120 " auth_complete = " . $ilDB->quote($this->getAuthComplete(),
"integer") .
121 " WHERE id = " . $ilDB->quote($this->getId(),
"integer")
137 $plugin_class->doDelete($this->
getId());
141 $ilDB->manipulate(
"DELETE FROM il_cld_data WHERE " .
142 " id = " . $ilDB->quote($this->getId(),
"integer")
150 function doClone($a_target_id, $a_copy_id, $new_obj)
174 $this->online = $a_val;
198 $this->root_folder = $a_val;
225 $this->root_id = $a_val;
239 return $this->root_id;
249 $this->service_name = $a_val;
259 return $this->service_name;
284 return $ilUser->getId() == $this->
getOwnerId();