Bearsampp 2026.9.23
Loading...
Searching...
No Matches
Unixeol.php
Go to the documentation of this file.
1<?php
18require_once 'PEAR/Task/Common.php';
31{
32 public $type = 'simple';
35
43 public static function validateXml($pkg, $xml, $config, $fileXml)
44 {
45 if ($xml != '') {
46 return array(PEAR_TASK_ERROR_INVALID, 'no attributes allowed');
47 }
48
49 return true;
50 }
51
58 public function init($xml, $attribs, $lastVersion = null)
59 {
60 }
61
73 public function startSession($pkg, $contents, $dest)
74 {
75 $this->logger->log(3, "replacing all line endings with \\n in $dest");
76
77 return preg_replace("/\r\n|\n\r|\r|\n/", "\n", $contents);
78 }
79}
const PEAR_TASK_PACKAGE
Definition Common.php:23
const PEAR_TASK_ERROR_INVALID
Definition Common.php:21
init($xml, $attribs, $lastVersion=null)
Definition Unixeol.php:58
startSession($pkg, $contents, $dest)
Definition Unixeol.php:73
static validateXml($pkg, $xml, $config, $fileXml)
Definition Unixeol.php:43