Elgg
Version 2.3
Main Page
Related Pages
Namespaces
Classes
Files
Examples
File List
File Members
engine
classes
Elgg
Filesystem
Directory
InMemory.php
Go to the documentation of this file.
1
<?php
2
namespace
Elgg\Filesystem\Directory
;
3
4
use
Elgg\Filesystem\Directory
;
5
13
final
class
InMemory
{
14
22
public
static
function
fromArray
(array
$files
)
/*: Directory*/
{
23
$dir =
Fly::createInMemory
();
24
25
foreach
($files as
$file
=>
$content
) {
26
$dir->putContents(
$file
,
$content
);
27
}
28
29
return
$dir;
30
}
31
}
$file
if(!array_key_exists($filename, $text_files)) $file
Definition:
plugin_text_file.php:29
Elgg\Filesystem\Directory\Fly\createInMemory
static createInMemory()
Shorthand for generating a new in-memory-only filesystem.
Definition:
Fly.php:166
Elgg\Filesystem\Directory
Definition:
Fly.php:2
Elgg\Filesystem\Directory\InMemory\fromArray
static fromArray(array $files)
Shorthand for generating a new in-memory-only filesystem.
Definition:
InMemory.php:22
$content
$content
Set robots.txt action.
Definition:
set_robots.php:6
$files
foreach($resources as $id=> $href) if(!empty($resources_html)) $files
Definition:
details.php:141
Elgg\Filesystem\Directory\InMemory
Namespace for generating in-memory filesystems.
Definition:
InMemory.php:13
use
http free of to any person obtaining a copy of this software and associated documentation to deal in the Software without including without limitation the rights to use
Definition:
MIT-LICENSE.txt:5
Generated on Sat Dec 21 2024 00:01:03 for Elgg by
1.8.11