19 declare(strict_types=1);
45 if ($from_mob_id > 0) {
47 $rid = $this->irss->cloneContainer($from_rid);
49 $rid = $this->irss->createContainer(
54 $this->db->insert(
'mob_data', [
55 'id' => [
'integer', $id],
56 'rid' => [
'text', $rid]
62 $set = $this->db->queryF(
63 'SELECT * FROM mob_data WHERE id = %s',
68 $record = $this->db->fetchAssoc($set);
71 'id' => (
int) $record[
'id'],
72 'rid' => (
string) $record[
'rid']
79 public function delete(
int $id):
void 81 $this->db->manipulateF(
82 'DELETE FROM mob_data WHERE id = %s',
90 $set = $this->db->queryF(
91 "SELECT * FROM mob_data " .
96 if ($rec = $this->db->fetchAssoc($set)) {
97 return $rec[
"rid"] ??
"";
105 if ($target_path ===
"") {
108 $this->irss->importFileFromLegacyUploadToContainer(
122 $this->irss->importFileFromUploadResultToContainer(
133 $this->irss->addLocalFileToContainer(
144 $this->irss->addDirectoryToContainer(
153 return $this->irss->getContainerUri($this->
getRidForMobId($mob_id), $location);
158 return $this->irss->hasContainerEntry($this->
getRidForMobId($mob_id), $location);
165 return $this->irss->getStreamOfContainerEntry(
175 return $this->irss->getContainerEntryInfo(
185 $this->irss->deliverContainerEntry(
194 return $this->irss->getResourcePath($this->
getRidForMobId($mob_id));
202 $this->irss->addStreamToContainer(
218 return $this->irss->getResourceIdForIdString($this->
getRidForMobId($mob_id));
225 $this->irss->removePathFromContainer($this->
getRidForMobId($mob_id), $location);
232 return $this->irss->getContainerEntriesOfPath(
Interface StorageResource.
while($session_entry=$r->fetchRow(ilDBConstants::FETCHMODE_ASSOC)) return null
Class ResourceIdentification.
$id
plugin.php for ilComponentBuildPluginInfoObjectiveTest::testAddPlugins
The base interface for all filesystem streams.