ILIAS  release_5-3 Revision v5.3.23-19-g915713cf615
League\Flysystem\Adapter\Polyfill Namespace Reference

Functions

 writeStream ($path, $resource, Config $config)
 
 update ($pash, $contents, Config $config)
 

Variables

trait StreamedCopyTrait
 
trait StreamedReadingTrait
 A helper for adapters that only handle strings to provide read streams. More...
 
trait StreamedTrait
 
trait StreamedWritingTrait
 

Function Documentation

◆ update()

League\Flysystem\Adapter\Polyfill\update (   $pash,
  $contents,
Config  $config 
)
abstract

Referenced by ilObjUser\assignData(), arGUI\customMultiAction(), ilObjSCORMTracking\extractData(), ilOrgUnitType\getAllTypes(), ilStudyProgrammeType\getAllTypesArray(), ilOrgUnitType\save(), ilObjTypeDefinitionGUI\saveObject(), ilObjSurveyQuestionPool\saveToDb(), ilObjSCORMTracking\store(), ilObjBadgeAdministration\update(), ilMediaPoolPage\update(), ilObjAwarenessAdministration\update(), ilObjBlogAdministration\update(), ilObjExternalFeed\update(), ilObjPortfolioAdministration\update(), ilObjForumAdministration\update(), ilObjSkillManagement\update(), ilObjMediaObjectsSettings\update(), ilObjAccessibilitySettings\update(), ilObjFileBasedLM\update(), ilObjSearchSettings\update(), ilObjAssessmentFolder\update(), arStorage\update(), ilObjComponentSettings\update(), ilObjExternalToolsSettings\update(), ilObjRecoveryFolder\update(), ilObjLearningResourcesSettings\update(), ilObjMediaCastSettings\update(), ilObjPersonalDesktopSettings\update(), ilObjTaggingSettings\update(), ilObjSurveyAdministration\update(), ilObjAdvancedEditing\update(), ilObjNewsSettings\update(), ilObjLinkResource\update(), ilObjBookingPool\update(), ilOrgUnitPermission\update(), ilObjOrgUnit\update(), ilObjSurveyQuestionPool\update(), ilSCORMResources\update(), ilSkillTemplateReference\update(), ilSCORM2004Sco\update(), ilSCORMOrganizations\update(), ilObjQuestionPool\update(), ilSCORMOrganization\update(), ilAdvancedMDFieldDefinitionSelectMulti\update(), ilObjAuthSettings\update(), ilObjChatroom\update(), ilSCORMManifest\update(), ilSCORM2004Page\update(), ilObjNull\update(), ilExternalFeedBlock\update(), ilObjIndividualAssessment\update(), ilObjDiskQuotaSettings\update(), ilObject2\update(), ilDclFieldProperty\update(), ilBlogPosting\update(), ilOrgUnitPosition\update(), ilPortfolioPage\update(), ilSCORMItem\update(), ilObjRole\update(), ilObjMediaPool\update(), ilObjWorkspaceFolderGUI\update(), ilObjStudyProgramme\update(), ilObjFileAccessSettings\update(), ilWikiPage\update(), ilObjSurvey\update(), ilSCORMResource\update(), ilObjContentObject\update(), ilObjMediaCast\update(), ilContainerReference\update(), ilAdvancedMDFieldDefinitionSelect\update(), ilObjExercise\update(), ilObjWiki\update(), ilObjGlossary\update(), ilObjForum\update(), ilObjMediaObject\update(), ilObjSession\update(), ilObjGroup\update(), ilObjTest\update(), ilObjSAHSLearningModule\update(), ilContainer\update(), ilObjCourse\update(), ilObjStyleSheet\update(), ilStudyProgrammeUserProgress\updateFromProgramNode(), ilObjSurveyQuestionPoolGUI\updateObject(), ilObjUserGUI\updateObject(), ilObjQuestionPoolGUI\updateObject(), and ilSCORM2004Objective\updateObjective().

+ Here is the caller graph for this function:

◆ writeStream()

League\Flysystem\Adapter\Polyfill\writeStream (   $path,
  $resource,
Config  $config 
)
abstract
Parameters
string$path
resource$resource
Config$config
Returns
resource

Variable Documentation

◆ StreamedCopyTrait

trait League::Flysystem::Adapter::Polyfill\StreamedCopyTrait
Initial value:
{
public function copy($path, $newpath)
{
$response = $this->readStream($path);
if ($response === false || ! is_resource($response['stream'])) {
return false;
}
$result = $this->writeStream($newpath, $response['stream'], new Config());
if ($result !== false && is_resource($response['stream'])) {
fclose($response['stream']);
}
return $result !== false;
}
abstract public function readStream($path)
writeStream($path, $resource, Config $config)
$result
$response

Definition at line 8 of file StreamedCopyTrait.php.

◆ StreamedReadingTrait

trait League::Flysystem::Adapter::Polyfill\StreamedReadingTrait
Initial value:
{
public function readStream($path)
{
if ( ! $data = $this->read($path)) {
return false;
}
$stream = fopen('php://temp', 'w+b');
fwrite($stream, $data['contents']);
rewind($stream);
$data['stream'] = $stream;
unset($data['contents']);
return $data;
}
abstract public function read($path)
$stream
PHP stream implementation.

A helper for adapters that only handle strings to provide read streams.

Definition at line 9 of file StreamedReadingTrait.php.

◆ StreamedTrait

trait League::Flysystem::Adapter::Polyfill\StreamedTrait
Initial value:
{
trait StreamedReadingTrait
A helper for adapters that only handle strings to provide read streams.

Definition at line 6 of file StreamedTrait.php.

◆ StreamedWritingTrait

trait League::Flysystem::Adapter::Polyfill\StreamedWritingTrait
Initial value:
{
protected function stream($path, $resource, Config $config, $fallback)
{
Util::rewindStream($resource);
$contents = stream_get_contents($resource);
$fallbackCall = [$this, $fallback];
return call_user_func($fallbackCall, $path, $contents, $config);
}
public function writeStream($path, $resource, Config $config)
{
return $this->stream($path, $resource, $config, 'write');
}
public function updateStream($path, $resource, Config $config)
{
return $this->stream($path, $resource, $config, 'update');
}
abstract public function write($pash, $contents, Config $config)
writeStream($path, $resource, Config $config)
$fallback
Definition: en-x-test.php:5

Definition at line 9 of file StreamedWritingTrait.php.