Home
last modified time | relevance | path

Searched refs:line (Results 1 - 25 of 36) sorted by relevance

12

/dokuwiki/inc/
H A DLogger.php55 * @param int $line A line number for the above file
58 static public function error($message, $details = null, $file = '', $line = 0)
61 $message, $details, $file, $line
71 * @param int $line A line number for the above file
74 static public function debug($message, $details = null, $file = '', $line = 0)
77 $message, $details, $file, $line
87 * @param int $line A line numbe
[all...]
H A Dconfutils.php10 * line prefix used to negate single value config items
137 foreach($lines as $line) {
138 $line = trim(preg_replace('/#.*$/', '', $line)); variable
139 if($line === '') continue;
140 list($key, $val) = explode('=', $line, 2);
223 foreach($lines as $line) {
225 $line = preg_replace('/(?<![&\\\\])#.*$/', '', $line); variable
226 $line variable
227 $line = trim($line); global() variable
229 $line = preg_split('/\\s+/', $line, 2); global() variable
230 $line = array_pad($line, 2, ''); global() variable
[all...]
H A DErrorHandler.php90 new FatalException($error['message'], 0, $error['type'], $error['file'], $error['line'])
123 foreach ($e->getTrace() as $line) {
125 isset($line['class']) &&
126 preg_match('/\w+?_plugin_(\w+)/', $line['class'], $match)
132 isset($line['file']) &&
133 preg_match('/lib\/plugins\/(\w+)\//', str_replace('\\', '/', $line['file']), $match)
H A Dchangelog.php10 * parses a changelog line into it's components
14 * @param string $line changelog line
15 * @return array|bool parsed line or false
17 function parseChangelogLine($line) {
18 $line = rtrim($line, "\n"); variable
19 $tmp = explode("\t", $line);
24 $info['type'] = $tmp[2]; // log line type
28 $info['extra'] = $tmp[6]; // extra data (varies by line typ
[all...]
H A DDifferenceEngine.php155 $line = $to_lines[$yi]; variable
156 if (($this->ychanged[$yi] = empty($xhash[$line])))
158 $yhash[$line] = 1;
159 $this->yv[] = $line;
163 $line = $from_lines[$xi]; variable
164 if (($this->xchanged[$xi] = empty($yhash[$line])))
166 $this->xv[] = $line;
269 $line = $flip ? $this->yv[$x] : $this->xv[$x]; variable
270 if (empty($ymatches[$line]))
272 $matches = $ymatches[$line];
1156 $line = $this->_escape($line); global() variable
1164 $line = $this->_escape($line); global() variable
[all...]
H A Dio.php288 * Replace one or more occurrences of a line in a file.
290 * The default, when $maxlines is 0 is to delete all matching lines then append a single line.
291 * A regex that matches any part of the line will remove the entire line in this mode.
294 * Otherwise each line is matched and replaced individually, up to the first $maxlines lines
308 * @param string $newline new line to insert
310 * @param int $maxlines number of occurrences of the line to replace
342 foreach($lines as $i => $line) {
344 // $matched will be set to 0|1 depending on whether pattern is matched and line replaced
345 $lines[$i] = preg_replace($pattern, $replace, $line,
718 $line = ''; global() variable
733 $line = ''; global() variable
[all...]
H A Dauth.php135 foreach($acl as $line) {
136 $line = trim($line); variable
137 if(empty($line) || ($line[0] == '#')) continue; // skip blank lines & comments
138 list($id,$rest) = preg_split('/[ \t]+/',$line,2);
141 if(strstr($line, '%USER%')){
142 // if user is not logged in, this ACL line is meaningless - skip it
150 if(strstr($line, '%GROUP%')){
H A Dinfoutils.php328 * @param string $line line number
332 function msg($message,$lvl=0,$line='',$file='',$allow=MSG_PUBLIC){
345 'line' => $line,
352 if($msgdata['line'] || $msgdata['file']) {
354 $msgdata['msg'] .=' ['.$basename.':'.$msgdata['line'].']';
443 // was the msg as single line string? use it as header
480 $location = $call['file'] . ':' . $call['line'];
/dokuwiki/lib/plugins/logviewer/
H A Dadmin.php99 $line = $lines[$i]; variable
101 if ($line[0] === ' ' && $line[1] === ' ') {
104 while ($line[0] === ' ' && $line[1] === ' ') {
105 echo hsc(substr($line, 2)) . '<br />';
106 $line = $lines[$i++]; variable
112 list($dt, $file, $msg) = explode("\t", $line, 3);
/dokuwiki/lib/scripts/
H A Dcompatibility.js17 var line = 'DEPRECATED function call'+func+'. '+msg;
20 console.warn(line);
22 console.log(line);
/dokuwiki/vendor/splitbrain/php-cli/src/
H A DTableFormatter.php296 foreach ($lines as &$line) {
297 $line = rtrim($line); variable
298 if ($this->strlen($line) <= $width) {
301 $words = explode(' ', $line);
302 $line = ''; variable
309 $line .= rtrim($actual) . $break;
314 $line .= $this->substr($actual, 0, $width) . $break;
321 $line .= trim($actual);
H A DColors.php100 * Convenience function to print a line in a given color
102 * @param string $line the line to print, a new line is added automatically
108 public function ptln($line, $color, $channel = STDOUT)
111 fwrite($channel, rtrim($line) . "\n");
/dokuwiki/lib/plugins/authplain/
H A Dauth.php97 * Creates a string suitable for saving as a line
153 // prepare user line
409 foreach ($lines as $line) {
410 $line = preg_replace('/#.*$/', '', $line); //ignore comments variable
411 $line = trim($line); variable
412 if (empty($line)) continue;
414 $row = $this->splitUserData($line);
429 * Get the user line spli
[all...]
/dokuwiki/inc/Debug/
H A DDebugHelper.php56 $call['line']
91 $backtrace[0]['line']
105 * @param int $line
113 $line,
132 $line
143 * @param int $line
151 $line
159 'line' => $line,
164 $msg .= $event->data['caller'] . ' in ' . $event->data['file'] . ':' . $event->data['line'];
[all...]
/dokuwiki/inc/Subscriptions/
H A DSubscriberManager.php61 $line = "$user $style $data\n"; variable
63 return io_saveFile($file, $line, true);
188 foreach ($lines as $line) {
190 if (strpos($line, ' ') === false) {
191 $line = trim($line) . " every\n"; variable
195 if (!preg_match($re, $line, $m)) {
/dokuwiki/inc/Search/
H A DIndexer.php847 foreach ($lines as $line) {
848 $pages = array_merge($pages, $this->parseTuples($page_idx, $line));
884 foreach ($index as $wid => $line) {
885 $freq = $this->countTuples($line);
903 foreach ($index as $wid => $line) {
904 $freq = $this->countTuples($line);
1010 * Retrieve a line from the index.
1014 * @param int $id the line number
1015 * @return string a line with trailing whitespace removed
1026 while (($line
1158 $line = preg_replace('/(^|:)'.preg_quote($id,'/').'\\*\\d*/', '', $line); global() variable
1160 $line = trim($line, ':'); global() variable
[all...]
/dokuwiki/vendor/openpsa/universalfeedcreator/lib/Creator/
H A DMBOXCreator.php36 foreach ($lines as $line) {
37 $linlen = strlen($line);
40 $c = substr($line, $i, 1);
50 $output .= $newline.$escape.$eol; // soft line break; " =\r\n" is okay
/dokuwiki/inc/Cache/
H A DCache.php156 * @param bool $clean true to clean line endings, false to leave line endings alone
208 foreach ($lines as $line) {
209 $i = strpos($line, ',');
210 $stats[substr($line, 0, $i)] = $line;
/dokuwiki/lib/plugins/authad/adLDAP/classes/
H A DadLDAPUtils.php68 $line = $groups[$i]; variable
70 if (strlen($line)>0) {
74 $bits=explode(",", $line);
/dokuwiki/lib/exe/
H A Dcss.php213 // try to use line number to find affected file
214 if(preg_match('/line: (\d+)$/', $msg, $m)){
223 $msg .= ' in '.$m[2].' at line '.($lno-$i);
555 // strip (incorrect but common) one line comments
638 * Strips one line comments but makes sure it will not destroy url() constructs with slashes
644 $line = $matches[0]; variable
647 $len = strlen($line);
650 $nextcom = strpos($line, '//', $i);
651 $nexturl = stripos($line, 'url(', $i);
666 $i = strpos($line, ')',
[all...]
/dokuwiki/lib/plugins/authpdo/
H A Dauth.php717 // only report last line's result
737 // report the caller's line
739 $line = $trace[0]['line']; variable
741 $this->debugMsg($e, -1, $line);
742 $this->debugMsg("SQL: <pre>$dsql</pre>", -1, $line);
755 * @param int $line
757 protected function debugMsg($message, $err = 0, $line = 0)
763 if (!$line) $line
[all...]
/dokuwiki/lib/plugins/acl/
H A Dadmin.php136 foreach ($AUTH_ACL as $line) {
137 if ($line[0] == '#') {
138 $lines[] = $line;
596 foreach ($AUTH_ACL as $line) {
597 $line = trim(preg_replace('/#.*$/', '', $line)); //ignore comments variable
598 if (!$line) continue;
600 $acl = preg_split('/[ \t]+/', $line);
/dokuwiki/lib/plugins/extension/helper/
H A Dextension.php847 foreach ($file as $line) {
848 list($key, $value) = explode('=', trim($line, DOKU_LF), 2);
1286 foreach ($list as $line) {
1287 $line = trim(preg_replace('/#.*$/', '', $line)); variable
1288 if (!$line) continue;
1289 $file = $extensiondir . $line;
/dokuwiki/lib/plugins/usermanager/
H A Dadmin.php605 ptln(' <th class="line">'.$this->lang['line'].'</th>', $indent);
614 foreach ($this->import_failures as $line => $failure) {
616 ptln(' <td class="lineno"> '.sprintf('%0'.$digits.'d', $line).' </td>', $indent);
1044 $line = array($user, $info['name'], $info['mail'], join(',', $info['grps'])); variable
1045 fputcsv($fd, $line);
1079 $line = 0; variable
1087 $error = ''; // clean out any errors from the previous line
1089 if (1 == ++$line) {
1095 $this->import_failures[$line]
[all...]
/dokuwiki/vendor/simplepie/simplepie/library/SimplePie/
H A DLocator.php232 $line = method_exists($link, 'getLineNo') ? $link->getLineNo() : 1; variable
234 if ($this->base_location < $line)

Completed in 21 milliseconds

12