Example #1
0
 function setUp()
 {
     ArrayFileStream::set_filesystem(array('pathto' => array('config-1.php' => '<? $CONF = 17; ', 'config-2.php' => '<? $CONF = 17 + $offset; ')));
     if (!stream_wrapper_register("var", "ArrayFileStream")) {
         new Exception("Failed to register protocol");
     }
 }
Example #2
0
 function setUpFS()
 {
     ArrayFileStream::set_filesystem(array('dynamic' => array('course' => array($this->avatar_id . '_normal.png' => '', $this->avatar_id . '_medium.png' => '', $this->avatar_id . '_small.png' => ''))));
     if (!stream_wrapper_register("var", "ArrayFileStream")) {
         new Exception("Failed to register protocol");
     }
 }
Example #3
0
 function setUpFS()
 {
     ArrayFileStream::set_filesystem(array('app' => array('controllers' => array('foo.php' => '<?'))));
     stream_wrapper_register("var", "ArrayFileStream") or die("Failed to register protocol");
 }
Example #4
0
 function setUpFS()
 {
     ArrayFileStream::set_filesystem(array('app' => array('controllers' => array('bar.php' => '<?', 'foo.php' => '<?', 'foo' => array('foobar.php' => '<?'), 'baz' => array('file.php' => '<?')))));
     stream_wrapper_register('var', 'ArrayFileStream') or die('Failed to register protocol');
 }
Example #5
0
 static function set_filesystem(array $fs)
 {
     ArrayFileStream::$fs = $fs;
 }
Example #6
0
 function setUpFS()
 {
     ArrayFileStream::set_filesystem(array('templates' => array('layout.php' => '<? $do_not_echo_this = $this->render_partial_collection("partial", range(1, 5));' . 'echo $content_for_layout;', 'partial.php' => 'partial', 'template.php' => 'template')));
     stream_wrapper_register("var", "ArrayFileStream") or die("Failed to register protocol");
 }
Example #7
0
 function setUpFS()
 {
     ArrayFileStream::set_filesystem(array('app' => array('views' => array('layout.php' => '[<?= $content_for_layout ?>]', 'foo' => array('index.php' => 'foo/index')))));
     stream_wrapper_register("var", "ArrayFileStream") or die("Failed to register protocol");
 }