Lines Matching +refs:text +refs:line
27 foreach (explode("\n", $fileContents) as $line)
29 $e = $this->parseLine($line);
40 private function parseLine($line) argument
42 $line = trim($line);
44 if ($line == "" || $line == self::HEADER)
49 $line = $this->extractZoteroKey($line);
50 $columns = explode("|", $line);
65 private function extractZoteroKey($text) argument
68 if (preg_match("/\[\[.*\|(.*)\]\]/", $text, $matches))
70 $text = str_replace($matches[0], $matches[1], $text);
72 return $text;
93 $text = self::HEADER . "\n";
96 $text .= $this->serializeEntry($e);
98 file_put_contents($this->fileName, $text);