ILIAS  release_5-4 Revision v5.4.26-12-gabc799a52e6
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(), ilTermsOfServiceDocument\buildFromArray(), arGUI\customMultiAction(), ilObjSCORMTracking\extractData(), ilOrgUnitType\getAllTypes(), ilStudyProgrammeType\getAllTypesArray(), ilOrgUnitType\save(), ilMMAbstractBaseTypeHandlerAction\saveFormFields(), ilObjTypeDefinitionGUI\saveObject(), ilObjSurveyQuestionPool\saveToDb(), ilObjSCORMTracking\store(), ilObjBadgeAdministration\update(), ilMediaPoolPage\update(), ilObjForumAdministration\update(), ilObjAwarenessAdministration\update(), ilObjExternalFeed\update(), ilObjBlogAdministration\update(), ilObjPortfolioAdministration\update(), ilObjSkillManagement\update(), ilObjMediaObjectsSettings\update(), ilObjAccessibilitySettings\update(), ilMMCustomItemFacade\update(), ilObjSearchSettings\update(), ilObjAssessmentFolder\update(), ilObjFileBasedLM\update(), arStorage\update(), ilObjExternalToolsSettings\update(), ilObjComponentSettings\update(), ilObjRecoveryFolder\update(), ilObjLearningResourcesSettings\update(), ilObjPersonalDesktopSettings\update(), ilObjMediaCastSettings\update(), ilObjTaggingSettings\update(), ilObjSurveyAdministration\update(), ilObjAdvancedEditing\update(), ilObjNewsSettings\update(), ilObjLinkResource\update(), ilOrgUnitPermission\update(), ilObjBookingPool\update(), ilObjOrgUnit\update(), ilObjSurveyQuestionPool\update(), ilSkillTemplateReference\update(), ilSCORM2004Sco\update(), ilSCORMResources\update(), ilSCORMOrganizations\update(), ilObjQuestionPool\update(), ilTermsOfServiceDocumentCriterionAssignment\update(), ilAdvancedMDFieldDefinitionSelectMulti\update(), ilSCORMOrganization\update(), ilObjAuthSettings\update(), CachedActiveRecord\update(), ilObjChatroom\update(), ilSCORM2004Page\update(), ilSCORMManifest\update(), ilObjLearningSequence\update(), ilExternalFeedBlock\update(), ilObjIndividualAssessment\update(), ilObjDiskQuotaSettings\update(), ilObject2\update(), ilDclFieldProperty\update(), ilBlogPosting\update(), ilOrgUnitPosition\update(), ilPortfolioPage\update(), ilSCORMItem\update(), ilObjMediaPool\update(), ilObjWorkspaceFolderGUI\update(), ilObjRole\update(), ilObjStudyProgramme\update(), ilWikiPage\update(), ilObjFileAccessSettings\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)
$path
Definition: aliased.php:25
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)
$path
Definition: aliased.php:25
$stream
PHP stream implementation.
$data
Definition: bench.php:6

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)
$path
Definition: aliased.php:25
writeStream($path, $resource, Config $config)
$config
Definition: bootstrap.php:15
$fallback
Definition: en.php:3

Definition at line 9 of file StreamedWritingTrait.php.