4 include_once(
"./Services/Repository/classes/class.ilObjectPlugin.php");
5 include_once(
"class.ilCloudUtil.php");
6 include_once(
"class.ilCloudConnector.php");
49 public function __construct($a_ref_id = 0, $a_reference =
true)
51 parent::__construct($a_ref_id, $a_reference);
76 $ilDB->manipulate(
"INSERT INTO il_cld_data " .
77 "(id, is_online, service, root_folder, root_id, owner_id, auth_complete) VALUES (" .
78 $ilDB->quote($this->getId(),
"integer") .
"," .
79 $ilDB->quote(
"",
"integer") .
"," .
80 $ilDB->quote(
"",
"text") .
"," .
81 $ilDB->quote(
"",
"text") .
"," .
82 $ilDB->quote(
"",
"text") .
"," .
84 $ilDB->quote(
"",
"integer") .
96 $set =
$ilDB->query(
"SELECT * FROM il_cld_data " .
97 " WHERE id = " .
$ilDB->quote($this->getId(),
"integer"));
99 while ($rec =
$ilDB->fetchAssoc($set)) {
115 $ilDB = $DIC[
'ilDB'];
118 $up =
"UPDATE il_cld_data SET " .
119 " is_online = " .
$ilDB->quote($this->getOnline(),
"integer") .
"," .
120 " service = " .
$ilDB->quote($this->getServiceName(),
"text") .
"," .
121 " root_folder = " .
$ilDB->quote($this->getRootFolder(),
"text") .
"," .
122 " root_id = " .
$ilDB->quote($this->getRootId(),
"text") .
"," .
123 " owner_id = " .
$ilDB->quote($this->getOwnerId(),
"integer") .
"," .
124 " auth_complete = " .
$ilDB->quote($this->getAuthComplete(),
"integer") .
125 " WHERE id = " .
$ilDB->quote($this->getId(),
"integer")
135 $ilDB = $DIC[
'ilDB'];
140 $plugin_class->doDelete($this->
getId());
145 "DELETE FROM il_cld_data WHERE " .
146 " id = " .
$ilDB->quote($this->getId(),
"integer")
153 public function doClone($a_target_id, $a_copy_id, $new_obj)
156 $ilDB = $DIC[
'ilDB'];
161 if (!$cp_options->isRootNode($this->getRefId())) {
184 $this->online = $a_val;
207 $this->root_folder = $a_val;
231 $this->root_id = $a_val;
244 return $this->root_id;
254 $this->service_name = $a_val;
264 return $this->service_name;
__construct($a_ref_id=0, $a_reference=true)
Constructor.
getRootFolder()
Get root_folder.
doClone($a_target_id, $a_copy_id, $new_obj)
Do Cloning.
doRead()
Read data from db.
const PERMISSION_TO_CHANGE_ROOT_FOLDER_DENIED
setServiceName($a_val)
Set service.
setOnline($a_val)
Set online.
static _getInstance($a_copy_id)
Get instance of copy wizard options.
static getPluginClass($service_name, $obj_id)
setRootId($a_val, $no_check=false)
Set root_id.
setRootFolder($a_val, $no_check=false)
Set root_folder, this may only be changed by the owner of the object.
Class ilObject2 This is an intermediate progress of ilObject class.
doDelete()
Delete data from db.
static normalizePath($path)
getServiceName()
Get service.
setAuthComplete($auth_complete)