19declare(strict_types=1);
46 if ($from_mob_id > 0) {
48 if ($from_rid !==
"") {
49 $rid = $this->irss->cloneContainer($from_rid);
53 $rid = $this->irss->createContainer(
58 $this->db->insert(
'mob_data', [
59 'id' => [
'integer',
$id],
60 'rid' => [
'text', $rid],
61 'last_change' => [
'integer', time()]
67 $set = $this->db->queryF(
68 'SELECT * FROM mob_data WHERE id = %s',
73 $record = $this->db->fetchAssoc($set);
76 'id' => (
int) $record[
'id'],
77 'rid' => (
string) $record[
'rid'],
78 'last_change' => (
int) $record[
'last_change']
85 public function delete(
int $id):
void
87 $this->db->manipulateF(
88 'DELETE FROM mob_data WHERE id = %s',
96 $set = $this->db->queryF(
97 "SELECT * FROM mob_data " .
102 if ($rec = $this->db->fetchAssoc($set)) {
103 return $rec[
"rid"] ??
"";
110 $set = $this->db->queryF(
111 "SELECT last_change FROM mob_data " .
116 if ($rec = $this->db->fetchAssoc($set)) {
117 return (
int) ($rec[
"last_change"] ?? 0);
127 [
'id' => [
'integer', $mob_id]]
133 if ($rid = $this->getRidForMobId($mob_id)) {
134 if ($target_path ===
"") {
137 $this->irss->importFileFromLegacyUploadToContainer(
150 if ($rid = $this->getRidForMobId($mob_id)) {
151 $this->irss->importFileFromUploadResultToContainer(
161 if ($rid = $this->getRidForMobId($mob_id)) {
162 $this->irss->addLocalFileToContainer(
172 if ($rid = $this->getRidForMobId($mob_id)) {
173 $this->irss->addDirectoryToContainer(
182 $rid = $this->getRidForMobId($mob_id);
186 return $this->irss->getContainerUri($rid,
$location);
191 $rid = $this->getRidForMobId($mob_id);
195 return $this->irss->hasContainerEntry($rid,
$location);
202 return $this->irss->getStreamOfContainerEntry(
203 $this->getRidForMobId($mob_id),
216 if ($this->irss->hasContainerEntry($this->getRidForMobId($mob_id),
$location)) {
217 $content = stream_get_contents($this->getLocationStream($mob_id,
$location)->detach());
226 return $this->irss->getContainerEntryInfo(
227 $this->getRidForMobId($mob_id),
236 $this->irss->deliverContainerEntry(
237 $this->getRidForMobId($mob_id),
245 return $this->irss->getResourcePath($this->getRidForMobId($mob_id));
253 $this->irss->addStreamToContainer(
254 $this->getRidForMobId($mob_id),
265 $this->irss->addStringToContainer(
266 $this->getRidForMobId($mob_id),
275 return $this->irss->getResource($this->getRidForMobId($mob_id));
281 return $this->irss->getResourceIdForIdString($this->getRidForMobId($mob_id));
288 $this->irss->removePathFromContainer($this->getRidForMobId($mob_id),
$location);
295 return $this->irss->getContainerEntriesOfPath(
296 $this->getRidForMobId($mob_id),
$id
plugin.php for ilComponentBuildPluginInfoObjectiveTest::testAddPlugins
foreach($mandatory_scripts as $file) $timestamp
Class ResourceIdentification.
return['delivery_method'=> 'php',]
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
The base interface for all filesystem streams.
Interface StorageResource.
if(!file_exists('../ilias.ini.php'))