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