19declare(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],
57 'last_change' => [
'integer', time()]
63 $set = $this->db->queryF(
64 'SELECT * FROM mob_data WHERE id = %s',
69 $record = $this->db->fetchAssoc($set);
72 'id' => (
int) $record[
'id'],
73 'rid' => (
string) $record[
'rid'],
74 'last_change' => (
int) $record[
'last_change']
81 public function delete(
int $id):
void
83 $this->db->manipulateF(
84 'DELETE FROM mob_data WHERE id = %s',
92 $set = $this->db->queryF(
93 "SELECT * FROM mob_data " .
98 if ($rec = $this->db->fetchAssoc($set)) {
99 return $rec[
"rid"] ??
"";
106 $set = $this->db->queryF(
107 "SELECT last_change FROM mob_data " .
112 if ($rec = $this->db->fetchAssoc($set)) {
113 return (
int) ($rec[
"last_change"] ?? 0);
123 [
'id' => [
'integer', $mob_id]]
129 if ($rid = $this->getRidForMobId($mob_id)) {
130 if ($target_path ===
"") {
133 $this->irss->importFileFromLegacyUploadToContainer(
146 if ($rid = $this->getRidForMobId($mob_id)) {
147 $this->irss->importFileFromUploadResultToContainer(
157 if ($rid = $this->getRidForMobId($mob_id)) {
158 $this->irss->addLocalFileToContainer(
168 if ($rid = $this->getRidForMobId($mob_id)) {
169 $this->irss->addDirectoryToContainer(
178 return $this->irss->getContainerUri($this->getRidForMobId($mob_id),
$location);
183 return $this->irss->hasContainerEntry($this->getRidForMobId($mob_id),
$location);
190 return $this->irss->getStreamOfContainerEntry(
191 $this->getRidForMobId($mob_id),
200 return $this->irss->getContainerEntryInfo(
201 $this->getRidForMobId($mob_id),
210 $this->irss->deliverContainerEntry(
211 $this->getRidForMobId($mob_id),
219 return $this->irss->getResourcePath($this->getRidForMobId($mob_id));
227 $this->irss->addStreamToContainer(
228 $this->getRidForMobId($mob_id),
239 $this->irss->addStringToContainer(
240 $this->getRidForMobId($mob_id),
249 return $this->irss->getResource($this->getRidForMobId($mob_id));
255 return $this->irss->getResourceIdForIdString($this->getRidForMobId($mob_id));
262 $this->irss->removePathFromContainer($this->getRidForMobId($mob_id),
$location);
269 return $this->irss->getContainerEntriesOfPath(
270 $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'))