4include_once(
"./Services/Repository/classes/class.ilObjectPlugin.php");
 
    5include_once(
"class.ilCloudUtil.php");
 
    6include_once(
"class.ilCloudConnector.php");
 
   46    public function __construct($a_ref_id = 0, $a_reference = 
true)
 
   75        $ilDB->manipulate(
"INSERT INTO il_cld_data " .
 
   76            "(id, is_online, service, root_folder, root_id, owner_id, auth_complete) VALUES (" .
 
   77            $ilDB->quote($this->getId(), 
"integer") . 
"," .
 
   78            $ilDB->quote(
"", 
"integer") . 
"," .
 
   79            $ilDB->quote(
"", 
"text") . 
"," .
 
   80            $ilDB->quote(
"", 
"text") . 
"," .
 
   81            $ilDB->quote(
"", 
"text") . 
"," .
 
   82            $ilDB->quote($this->getOwnerId(), 
"integer") . 
"," .
 
   83            $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)) {
 
  119            $up = 
"UPDATE il_cld_data SET " .
 
  120            " is_online = " . 
$ilDB->quote($this->getOnline(), 
"integer") . 
"," .
 
  121            " service = " . 
$ilDB->quote($this->getServiceName(), 
"text") . 
"," .
 
  122            " root_folder = " . 
$ilDB->quote($this->getRootFolder(), 
"text") . 
"," .
 
  123            " root_id = " . 
$ilDB->quote($this->getRootId(), 
"text") . 
"," .
 
  124            " owner_id = " . 
$ilDB->quote($this->getOwnerId(), 
"integer") . 
"," .
 
  125            " auth_complete = " . 
$ilDB->quote($this->getAuthComplete(), 
"integer") .
 
  126            " WHERE id = " . 
$ilDB->quote($this->getId(), 
"integer")
 
  142                $plugin_class->doDelete($this->
getId());
 
  147            "DELETE FROM il_cld_data WHERE " .
 
  148            " id = " . 
$ilDB->quote($this->getId(), 
"integer")
 
  156    public function doClone($a_target_id, $a_copy_id, $new_obj)
 
  164        if (!$cp_options->isRootNode($this->getRefId())) {
 
  187        $this->online = $a_val;
 
  212            $this->root_folder = $a_val;
 
  238            $this->root_id = $a_val;
 
  252        return $this->root_id;
 
  263        $this->service_name = $a_val;
 
  274        return $this->service_name;
 
An exception for terminatinating execution or to throw for unit testing.
static getPluginClass($service_name, $obj_id)
const PERMISSION_TO_CHANGE_ROOT_FOLDER_DENIED
static normalizePath($path)
static _getInstance($a_copy_id)
Get instance of copy wizard options.
setRootId($a_val, $no_check=false)
Set root_id.
setServiceName($a_val)
Set service.
getServiceName()
Get service.
doDelete()
Delete data from db.
setAuthComplete($auth_complete)
doClone($a_target_id, $a_copy_id, $new_obj)
Do Cloning.
doRead()
Read data from db.
setRootFolder($a_val, $no_check=false)
Set root_folder, this may only be changed by the owner of the object.
__construct($a_ref_id=0, $a_reference=true)
Constructor.
getRootFolder()
Get root_folder.
setOnline($a_val)
Set online.
Class ilObject2 This is an intermediate progress of ilObject class.
getId()
get object id @access public
__construct(Container $dic, ilPlugin $plugin)
@inheritDoc