Lines Matching refs:line
34 function addLine ($line) { argument
36 $line = $this->cleanLine ($line);
37 if (!$this->allLines || !in_array ($line, $this->allLines)) {
38 $this->allLines [] = $line;
47 function removeLine ($line) { argument
49 $line = $this->cleanLine ($line);
51 if (($key = array_search ($line, $this->allLines)) !== false) {
59 function cleanLine ($line) { argument
61 $data = explode ("|", $line);
72 foreach ($this->allLines as $key => $line) {
73 $lineCleaned = $this->cleanLine ($line);
74 if ($lineCleaned != $line)
85 while (($line = fgets ($handle)) !== false) {
86 $line = trim (preg_replace ("/#.*$/", "", str_replace ('\\\\', '~br~', $line)));
87 if (!$line)
89 $this->allLines [] = $line;
90 list ($insee, $end) = explode ('|', $line, 2);
106 foreach ($this->allLines as $line)
107 fputs ($handle, $line.NL);