Home
last modified time | relevance | path

Searched refs:file (Results 76 – 100 of 3491) sorted by relevance

12345678910>>...140

/plugin/mdpage/vendor/cebe/markdown/tests/
H A DBaseMarkdownTest.php31 public function testParse($path, $file) argument
33 list($markdown, $html) = $this->getTestData($path, $file);
86 public function getTestData($path, $file) argument
89 file_get_contents($this->getDataPaths()[$path] . '/' . $file . '.md'),
90 file_get_contents($this->getDataPaths()[$path] . '/' . $file . $this->outputFileExtension),
102 while (($file = readdir($handle)) !== false) {
103 if ($file === '.' || $file === '..') {
107 …if (substr($file, -3, 3) === '.md' && file_exists($src . '/' . substr($file, 0, -3) . $this->outp…
108 $files[] = [$name, substr($file, 0, -3)];
/plugin/xfortune/
H A Dhelper.php61 $file = mediaFN($cookieID);
62 $isns = is_dir($file);
68 $dir = $file;
71 $file = $files[array_rand($files)];
75 if(!file_exists($file)) throw new Exception("No fortune file at $cookieID");
77 return $file;
88 $file = self::id2file($cookieID);
93 $dim = filesize($file);
94 if($dim < 2) return "ERROR: invalid cookie file $file";
98 $fd = fopen($file, 'r');
[all …]
/plugin/csv/_test/
H A DCSVTest.php38 foreach ($files as $file) {
40 $csvdata = file_get_contents($file);
41 $file = basename($file, '.csv');
42 $json = file_get_contents(__DIR__ . '/json/' . $file . '.json');
46 list($delim, $enc, $esc) = explode('-', $file);
51 yield [$file, $expect, $csvdata, $delim, $enc, $esc];
57 * @param string $file
64 public function testParser($file, $expect, $csvdata, $delim, $enc, $esc) argument
73 $this->assertEquals($expect, $result, $file);
119 ['https://example.com/file.csv', ['file' => 'https://example.com/file.csv']],
/plugin/googlemaps3/icons/
H A Dicons.php3 foreach ($files AS $file) if ($file!='.' && $file!='..' && $file!='icons.php') {
4 echo '<img src="./'.$file.'" title="'.$file.'">';
/plugin/webdav/core/
H A DUtils.php38 * @param string $file file path
46 $fileexists = @file_exists($file);
48 io_makeFileDir($file);
49 io_lock($file);
51 $fh = @fopen($file, 'wb');
54 io_unlock($file);
65 chmod($file, $conf['fperm']);
68 io_unlock($file);
133 * @param string $file
151 $item['id'] = pathID($file, $is_dir);
[all …]
/plugin/findologicxmlexport/vendor/phpspec/prophecy/src/Prophecy/Call/
H A DCall.php28 private $file; variable in Prophecy\\Call\\Call
39 * @param null|string $file
43 Exception $exception = null, $file, $line) argument
51 if ($file) {
52 $this->file = $file;
104 return $this->file;
124 if (null === $this->file) {
128 return sprintf('%s:%d', $this->file, $this->line);
/plugin/diagramsnet/lib/js/onedrive/
H A DmxODPicker.js29 addToRecent = function(file) argument
31 if (file == null)
39 recentList[file.id] = file;
282 getODFileInfo(file.id, file.parentReference.driveId, function(completeFile)
294 var isPng = file.file? (file.file.mimeType == 'image/png') : false;
362 function renderFile(file) argument
381 if (file == null || file.folder)
394 file = file.remoteItem;
695 var file = list[i];
696 var mimeType = file.file? file.file.mimeType : null;
[all …]
/plugin/advanced/admin/
H A Dconfig.php79 $file = $INPUT->str('file');
86 if (!$file || !$tab) {
94 $configs = $config_cascade[$file];
121 $file_local = DOKU_CONF . $file;
126 switch ($file) {
161 'file' => $file,
232 private function help($file) argument
234 echo $this->locale_xhtml($file);
246 private function getDefaultConfig($file) argument
252 if (!$file_info[$file]) {
[all …]
/plugin/findologicxmlexport/vendor/hoa/file/
H A DDirectory.php167 foreach ($finder as $file) {
171 if (true === $file->isDir()) {
184 if (true === $file->isFile()) {
185 $handle = new Read($file->getPathname());
186 } elseif (true === $file->isDir()) {
187 $handle = new Directory($file->getPathName());
188 } elseif (true === $file->isLink()) {
189 $handle = new Link\Read($file->getPathName());
213 foreach ($finder as $file) {
214 $file->open()->delete();
[all …]
/plugin/preservefilenames/
H A Daction_adorabelle.php56 $file = $this->_getOriginalFileName($item['id']);
58 if ($file === false) {
59 $file = utf8_decodeFN($item['file']);
64 $fakeId = $ns === false ? $file : "$ns:$file";
82 echo '<a id="h_:'.$item['id'].'" class="'.$class.'">'.hsc($file).'</a> ';
125 $file = $this->_getOriginalFileName($item['id']);
127 if ($file === false) {
128 $file = utf8_decodeFN($item['file']);
133 $fakeId = $ns === false ? $file : "$ns:$file";
152 $name = hsc($file);
/plugin/wikistats/
H A Dsyntax.php228 $file = str_replace("/", ":", $file);
248 $path = $file;
249 $file = substr($file, 1);
250 $file = substr($file, 0, strrpos($file, ':'));
256 $data['dir_label']['ns'][$file]['pages']++;
260 $data['dir_label']['ns'][$file]['medias']++;
268 $data['dir_label']['ns'][$file]['medias']++;
277 $data['dir_label']['ns'][$file]['medias']++;
283 $data['dir_label']['ns'][$file]['medias']++;
290 $data['dir_label']['ns'][$file]['medias']++;
[all …]
/plugin/diagramsnet/lib/js/diagramly/
H A DApp.js27 if (file != null && file.isModified())
46 file.desc.headRevisionId + '-mod_' + file.desc.modifiedDate + '-size_' + file.getSize() +
1721 if (file != null && file.sync != null)
1823 if (file != null && file.isModified() && file.isAutosave() && file.isOverdue())
2261 if (file.constructor == LocalFile && file.getHash() == '' && !file.isModified() &&
2658 if (file != null && file.desc != null && file.desc.parents != null &&
2675 if (file != null && file.meta != null && file.meta.webUrl != null)
2694 if (file != null && file.stat != null && file.stat.path_display != null)
3126 if (file == null || file.getHash() != id)
4439 else if (file != null && file.constructor == LocalFile && file.fileHandle != null)
[all …]
/plugin/jdraw/src/com/mxgraph/examples/swing/editor/
H A DDefaultFileFilter.java56 public boolean accept(File file) in accept() argument
58 return file.isDirectory() || file.getName().toLowerCase().endsWith(ext); in accept()
130 public boolean accept(File file) in accept() argument
132 if (file.isDirectory()) in accept()
137 String filename = file.toString().toLowerCase(); in accept()
193 public boolean accept(File file) in accept() argument
195 if (file.isDirectory()) in accept()
200 String filename = file.getName().toLowerCase(); in accept()
/plugin/linkback/action/
H A Dreceive.php37 $file = metaFN($ID, '.linkbacks');
47 if (@ file_exists($file))
48 $data = unserialize(io_readFile($file, false));
82 $file = metaFN($ID, '.linkbacks');
92 if (@ file_exists($file))
93 $data = unserialize(io_readFile($file, false));
122 $file = metaFN($ID, '.linkbacks');
132 if (@ file_exists($file))
133 $data = unserialize(io_readFile($file, false));
H A Ddisplay.php48 $file = metaFN($ID, '.linkbacks');
59 if (@ file_exists($file))
60 $data = unserialize(io_readFile($file, false));
244 $file = metaFN($ID, '.linkbacks');
245 if (!@ file_exists($file))
247 $data = unserialize(io_readFile($file, false));
274 $file = metaFN($ID, '.linkbacks');
285 if (@ file_exists($file))
286 $data = unserialize(io_readFile($file, false));
305 io_saveFile($file, serializ
[all...]
/plugin/filelist/
H A Dsyntax.php
/plugin/evesso/classes/
H A DoAuthStorage.php32 $file = $this->getStateFile();
33 if(file_exists($file)) {
34 return unserialize(io_readFile($file, false));
124 $file = $this->getStateFile();
125 io_saveFile($file, serialize($data));
164 $file = $this->getStateFile();
165 @unlink($file);
166 $file = getCacheName('oauth', '.purged');
168 if(file_exists($file)) {
172 io_saveFile($file, 'oauth purged');
/plugin/booking/
H A Dhelper.php30 $file = $conf['metadir'] . '/' . utf8_encodeFN(str_replace(':', '/', "$id.booking"));
31 return $file;
44 $file = $this->getFile($id);
45 if (!file_exists($file)) return [];
47 $fh = fopen($file, 'r');
118 $file = $this->getFile($id);
119 io_makeFileDir($file);
129 file_put_contents($file, $line, FILE_APPEND);
144 $file = $this->getFile($id);
145 if (!file_exists($file)) return false;
[all …]
/plugin/upgrade/
H A Dhelper.php18 /** @var string full path to where the file will be downloaded to */
20 /** @var string full path to where the file will be extracted to */
22 /** @var string URL to the VERSION file of the new DokuWiki release */
24 /** @var string URL to the composer.json file of the new DokuWiki release */
26 /** @var string URL to the plugin.info.txt file of the upgrade plugin */
176 $tar->setCallback(function ($file) {
177 /** @var FileInfo $file */
178 $this->log('info', $file->getPath());
241 $list = file($this->tgzdir . 'data/deleted.files');
245 $file
[all...]
/plugin/davcal/vendor/sabre/dav/tests/Sabre/DAV/
H A DSimpleFileTest.php9 $file = new SimpleFile('filename.txt','contents','text/plain');
11 $this->assertEquals('filename.txt', $file->getName());
12 $this->assertEquals('contents', $file->get());
13 $this->assertEquals('8', $file->getSize());
14 $this->assertEquals('"' . sha1('contents') . '"', $file->getETag());
15 $this->assertEquals('text/plain', $file->getContentType());
/plugin/stale/
H A Dhelper.php20 foreach ($dir as $file) {
21 if ($file->isDir() && !$file->isDot()) {
22 $infoPlugin = $file->getPathname() . "/plugin.info.txt";
60 $file = $cacheDirectory . "/sitemap.xml.gz";
61 if (file_exists($file)) {
62 unlink($file);
/plugin/findologicxmlexport/vendor/phpunit/php-text-template/src/
H A DTemplate.php41 * @param string $file
44 public function __construct($file = '', $openDelimiter = '{', $closeDelimiter = '}') argument
46 $this->setFile($file);
54 * @param string $file
57 public function setFile($file) argument
59 $distFile = $file . '.dist';
61 if (file_exists($file)) {
62 $this->template = file_get_contents($file);
/plugin/diagramsnet/lib/plugins/
H A Dp1.js40 var file = ui.getCurrentFile();
42 return (file != null && file.getTitle() != null) ? file.getTitle() : '';
54 var file = ui.getCurrentFile();
57 vars['filename'] = (file != null && file.getTitle() != null) ? file.getTitle() : '';
/plugin/removeold/
H A Dadmin.php158 foreach($filelist as &$file) {
159 $file = trim($file);
161 if(strlen($file)<1) { $empty++; continue; }
163 if(stripos($file,"#")===0) { $comments++; continue; }
165 if(file_exists(DOKU_INC.$file)===true) {
170 if(($dryrun==true) && ($this->is__writable(DOKU_INC.$file)==true)) {
174 elseif(($dryrun==true) && ($this->is__writable(DOKU_INC.$file)===false)) {
180 $result = unlink(DOKU_INC.$file);
201 if($dryrun==false) $this->__removeold_logging($file, $result);
236 function __removeold_logging($file, $result) { argument
[all …]
/plugin/authfacebook/lib/FileUpload/
H A DFacebookTransferChunk.php36 private $file; variable in Facebook\\FileUpload\\FacebookTransferChunk
59 * @param FacebookFile $file
65 …public function __construct(FacebookFile $file, $uploadSessionId, $videoId, $startOffset, $endOffs… argument
67 $this->file = $file;
81 return $this->file;
93 return new FacebookFile($this->file->getFilePath(), $maxLength, $this->startOffset);

12345678910>>...140