Home
last modified time | relevance | path

Searched full:file (Results 1 – 25 of 853) sorted by relevance

12345678910>>...35

/dokuwiki/vendor/simplepie/simplepie/src/Content/Type/
H A DSniffer.php64 * File object
66 * @var \SimplePie\File
68 public $file; variable in SimplePie\\Content\\Type\\Sniffer
71 * Create an instance of the class with the input file
73 * @param Sniffer $file Input file
75 public function __construct($file) argument
77 $this->file = $file;
81 * Get the Content-Type of the specified file
87 if (isset($this->file->headers['content-type'])) {
88 if (!isset($this->file->headers['content-encoding'])
[all …]
/dokuwiki/_test/tests/general/
H A Dgeneral_languagelint.test.php20 foreach($files as $file){
21 // try to load the file
22 include $file;
24 $this->assertTrue(is_array($lang), $file);
27 $this->checkUgly($file);
32 * Checks if the file contains any ugly things like leading whitespace, BOM or trailing
35 * @param $file
38 private function checkUgly($file){ argument
39 $content = rtrim(file_get_contents($file));
41 throw new Exception("$file does not start with '<?php' - check for BOM");
[all …]
/dokuwiki/inc/Cache/
H A DCacheParser.php10 public $file = ''; // source file for cache variable in dokuwiki\\Cache\\CacheParser
11 public $mode = ''; // input mode (represents the processing the input file will undergo)
17 * @param string $file source file for cache
20 public function __construct($id, $file, $mode) argument
27 $this->file = $file;
31 …parent::__construct($file . $INPUT->server->str('HTTP_HOST') . $INPUT->server->str('SERVER_PORT'),…
41 if (!file_exists($this->file)) {
50 // parser cache file dependencies ...
52 $this->file, // source
H A DCacheImageMod.php10 /** @var string source file */
11 protected $file; variable in dokuwiki\\Cache\\CacheImageMod
14 * @param string $file Original source file
20 public function __construct($file, $w, $h, $ext, $crop) argument
26 $this->file = $file;
29 parent::__construct($file, $fullext);
35 if (!file_exists($this->file)) {
50 [$this->file],
/dokuwiki/inc/
H A Dio.php4 * File IO functions
57 * Used to read in a DokuWiki page from file, and send IO_WIKIPAGE_READ events.
61 * The file path should not be changed.
69 * @param string $file filename
76 function io_readWikiPage($file, $id, $rev = false) argument
81 $data = [[$file, true], getNS($id), noNS($id), $rev];
103 * Returns content of $file as cleaned string.
111 * @param string $file filename
113 * @return string|bool the file contents or false on error
117 function io_readFile($file, $clean = true) argument
[all …]
H A Dsearch.php11 use dokuwiki\File\MediaFile;
18 * and calls the supplied function for each file and directory
44 while (($file = readdir($dh)) !== false) {
45 if (preg_match('/^[\._]/', $file)) continue; //skip hidden files and upper dirs
46 if (is_dir($base . '/' . $dir . '/' . $file)) {
47 $dirs[] = $dir . '/' . $file;
50 $files[] = $dir . '/' . $file;
51 $filepaths[] = $base . '/' . $dir . '/' . $file;
70 foreach ($files as $file) {
71 call_user_func_array($func, [&$data, $base, $file, 'f', $lvl, $opts]);
[all …]
H A Dfetch.functions.php12 * Set headers and send the file to the client
17 * This function will abort the current script when a 304 is sent or file sending is handled
20 * @param string $file local file to send
21 * @param string $mime mime type of the file
25 …* @param string $orig original file to send - the file name will be used for the Content-Dispositi…
32 function sendFile($file, $mime, $dl, $cache, $public = false, $orig = null, $csp = []) argument
71 $fmtime = @filemtime($file);
74 // Use the current $file if is $orig is not set.
76 $orig = $file;
93 http_sendfile($file);
[all …]
H A Dcache.php27 public function __construct($id, $file, $mode) argument
30 parent::__construct($id, $file, $mode);
41 public function __construct($id, $file, $mode) argument
44 parent::__construct($id, $file, $mode);
53 public function __construct($id, $file) argument
56 parent::__construct($id, $file);
H A Dhttputils.php17 * @param int $timestamp lastmodified time of the cache file
60 * Let the webserver send the given file via x-sendfile method
62 * @param string $file absolute path of file to send
67 function http_sendfile($file) argument
73 header("X-LIGHTTPD-send-file: $file");
77 header("X-Sendfile: $file");
82 $file = DOKU_REL . substr($file, strlen(fullpath(DOKU_INC)) + 1);
83 header("X-Accel-Redirect: $file");
90 * Send file contents supporting rangeRequests
94 * @param resource $fh - file handle for an already open file
[all …]
H A DLogger.php8 * Log messages to a daily log file
62 * @param string $file A source filename if this is related to a source position
63 * @param int $line A line number for the above file
66 public static function error($message, $details = null, $file = '', $line = 0) argument
71 $file,
81 * @param string $file A source filename if this is related to a source position
82 * @param int $line A line number for the above file
85 public static function debug($message, $details = null, $file = '', $line = 0) argument
90 $file,
100 * @param string $file A source filename if this is related to a source position
[all …]
/dokuwiki/_test/tests/inc/
H A Dio_replaceinfile.test.php29 function _write($file){ argument
31 io_saveFile($file, $this->contents);
33 $this->assertTrue(io_replaceInFile($file, "Delete\012", "Delete00\012", false, 1));
34 …2Delete00\012Delete\012Delete01\012Delete02\012Delete\012DeleteX\012Test\012", io_readFile($file));
36 $this->assertTrue(io_replaceInFile($file, "Delete\012", "DeleteX\012", false, -1));
37 …elete00\012DeleteX\012Delete01\012Delete02\012DeleteX\012DeleteX\012Test\012", io_readFile($file));
39 $this->assertTrue(io_replaceInFile($file, "#Delete(\\d+)\012#", "\\1\012", true, 2));
40 …ls("The\01200\012DeleteX\01201\012Delete02\012DeleteX\012DeleteX\012Test\012", io_readFile($file));
42 $this->assertTrue(io_replaceInFile($file, "DeleteX\012", "Replace\012", false, 0));
43 … $this->assertEquals("The\01200\01201\012Delete02\012Test\012Replace\012", io_readFile($file));
[all …]
H A Dcommon_saveWikiText.test.php38 $this->assertFileExists($attic, 'file missing in attic');
68 $this->assertFalse($pagelog->lastRevision(), 'changelog file does not yet exist');
101 $file = wikiFN($page);
102 $this->assertFileDoesNotExist($file);
106 clearstatcache(false, $file);
107 $this->assertFileExists($file);
108 $lastmod = filemtime($file);
124 clearstatcache(false, $file);
125 $this->assertEquals($lastmod, filemtime($file));
133 clearstatcache(false, $file);
[all …]
H A Dio_deletefromfile.test.php6 $file = TMP_DIR.'/test.txt';
8 io_saveFile($file, $contents);
9 $this->assertTrue(io_deleteFromFile($file, "Delete\012"));
10 … $this->assertEquals("The\012Delete01\012Delete02\012DeleteX\012Test\012", io_readFile($file));
11 $this->assertTrue(io_deleteFromFile($file, "#Delete\\d+\012#", true));
12 $this->assertEquals("The\012DeleteX\012Test\012", io_readFile($file));
H A Dlang.php4 * Language file tests inspired by the script by schplurtz
56 protected function loadLanguage($file) argument
59 if (file_exists($file)) {
60 include $file;
80 foreach (['lang.php', 'settings.php'] as $file) {
81 $englishFile = "$base/lang/en/$file";
82 $foreignFile = "$base/lang/$code/$file";
104 * @param string $code language code of the foreign file
105 * @param string $file the base file name the foreign keys came from
109 public function testObsolete($english, $foreign, $code, $file, $prefix = '') argument
[all …]
/dokuwiki/vendor/splitbrain/php-archive/src/
H A DArchive.php26 * Open an existing archive file for reading
28 * @param string $file
31 abstract public function open($file); argument
39 * Reopen the file with open() again if you want to do additional operations
49 …* found in the archive file, similar to the --strip-components feature of GNU tar. This is trigger…
60 …* The archive is closed afterwards. Reopen the file with open() again if you want to do additional…
72 * Create a new archive file
74 * If $file is empty, the archive file will be created in memory
76 * @param string $file
78 abstract public function create($file = ''); argument
[all …]
H A DZip.php20 protected $file = ''; variable in splitbrain\\PHPArchive\\Zip
33 * You can call this function before adding each file to set differen compression levels
34 * for each file.
49 * Open an existing ZIP file for reading
51 * @param string $file
54 public function open($file) argument
56 $this->file = $file;
57 $this->fh = @fopen($this->file, 'rb');
59 throw new ArchiveIOException('Could not open file for reading: '.$this->file);
70 * Reopen the file with open() again if you want to do additional operations
[all …]
H A DTar.php20 protected $file = ''; variable in splitbrain\\PHPArchive\\Tar
51 * Open an existing TAR file for reading
53 * @param string $file
57 public function open($file) argument
59 $this->file = $file;
61 // update compression to mach file
63 $this->setCompression($this->complevel, $this->filetype($file));
66 // open file handles
68 $this->fh = @gzopen($this->file, 'rb');
70 $this->fh = @bzopen($this->file, 'r');
[all …]
/dokuwiki/inc/Parsing/ParserMode/
H A DFile.php5 class File extends AbstractMode class
10 $this->Lexer->addEntryPattern('<file\b(?=.*</file>)', $mode, 'file');
16 $this->Lexer->addExitPattern('</file>', 'file');
/dokuwiki/inc/Remote/Response/
H A DMedia.php18 /** @var int The current user's permissions for this file */
20 /** @var bool Wether this is an image file */
22 /** @var string MD5 sum over the file's content (if available and requested) */
27 /** @var string The file path to this media revision */
28 protected $file; variable in dokuwiki\\Remote\\Response\\Media
37 * @param int|null $perms The current user's permissions for this file
38 * @param bool|null $isimage Wether this is an image file
39 * @param string $hash MD5 sum over the file's content
52 $this->file = mediaFN($this->id, $revision);
53 $this->revision = $revision ?: $mtime ?: filemtime($this->file);
[all …]
/dokuwiki/_test/tests/inc/parser/
H A Dparser_file.test.php3 use dokuwiki\Parsing\ParserMode\File; alias
11 $this->P->addMode('file',new File());
15 $this->P->parse('Foo <file>Test</file> Bar');
21 array('file',array('Test',null,null)),
31 $this->P->parse('Foo <file txt test.txt>Test</file> Bar');
37 array('file',array('Test','txt','test.txt')),
H A Dparser_media.test.php13 $file = 'http://some.where.far/away.ogv';
14 $parser_response = p_get_instructions('{{' . $file . '}}');
19 array('externalmedia',array($file,null,null,null,null,'cache','details')),
27 $url = $Renderer->externalmedia($file,null,null,null,null,'cache','details',true);
52 * unknown extension of external media file
55 $file = 'http://some.where.far/away.vid';
56 $parser_response = p_get_instructions('{{' . $file . '}}');
61 array('externalmedia', array($file, null, null, null, null, 'cache', 'details')),
69 $url = $Renderer->externalmedia($file, null, null, null, null, 'cache', 'details', true);
90 $file = 'wiki:kind_zu_katze.ogv';
[all …]
/dokuwiki/lib/exe/
H A Dfetch.php4 * DokuWiki media passthrough file
44 [$STATUS, $STATUSMESSAGE] = checkFileStatus($MEDIA, $FILE, $REV, $WIDTH, $HEIGHT);
49 'file' => $FILE,
50 'orig' => $FILE,
71 // handle the file status
102 $data['file'] = $FILE = media_crop_image($data['file'], $EXT, $WIDTH, $HEIGHT); variable
104 $data['file'] = $FILE = media_resize_image($data['file'], $EXT, $WIDTH, $HEIGHT); variable
111 // finally send the file to the client
115 $data['file'],
/dokuwiki/lib/plugins/config/core/
H A DConfigParser.php6 * A naive PHP file parser
8 * This parses our very simple config file in PHP format. We use this instead of simply including
9 * the file, because we want to keep expressions such as 24*60*60 as is.
15 /** @var string variable to parse from the file */
21 * Parse the given PHP file into an array
25 * @param string $file
28 public function parse($file) argument
30 if (!file_exists($file)) return [];
33 $contents = @php_strip_whitespace($file);
35 // fallback to simply including the file #3271
[all …]
H A DLoader.php41 * Reads the main file, plugins and template settings meta data
47 // load main file
79 * Reads the main file, plugins and template defaults
186 foreach ($files as $file) {
187 $conf = array_merge($conf, $this->parser->parse($file));
193 * Read settings file from an extension
197 * @param string $file php file to read
202 protected function loadExtensionMeta($file, $type, $extname) argument
204 if (!file_exists($file)) return [];
207 // include file
[all …]
/dokuwiki/vendor/geshi/geshi/
H A Dbuild.xml4 GeSHi - Generic Syntax Highlighter - phing build file.
9 <property file="build.properties" />
46 <delete file="dist/${zipfile}" failonerror="false"/>
47 <delete file="dist/${gzfile}" failonerror="false"/>
48 <delete file="dist/${bz2file}" failonerror="false"/>
70 <delete file="src/package.xml" failonerror="false" />
77 wish to use, and the output will be a file syntax highlighted to
105 <!-- time to fix the package.xml file since the task does not
111 <!-- yes, we need to generate a 2nd file and move it back -->
112 <copy file="src/package.xml" tofile="src/package2.xml" overwrite="true">
[all …]

12345678910>>...35