4 include_once(
"./Services/Repository/classes/class.ilObjectPlugin.php");
5 include_once(
"class.ilCloudUtil.php");
6 include_once(
"class.ilCloudConnector.php");
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))
116 $ilDB = $DIC[
'ilDB'];
118 $ilDB->manipulate($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'];
142 $plugin_class->doDelete($this->
getId());
146 $ilDB->manipulate(
"DELETE FROM il_cld_data WHERE " .
147 " id = " .
$ilDB->quote($this->getId(),
"integer")
155 function doClone($a_target_id, $a_copy_id, $new_obj)
158 $ilDB = $DIC[
'ilDB'];
163 if(!$cp_options->isRootNode($this->getRefId()))
187 $this->online = $a_val;
211 $this->root_folder = $a_val;
238 $this->root_id = $a_val;
252 return $this->root_id;
262 $this->service_name = $a_val;
272 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)