Bearsampp
2026.9.23
Toggle main menu visibility
Loading...
Searching...
No Matches
Unixeol.php
Go to the documentation of this file.
1
<?php
18
require_once
'PEAR/Task/Common.php'
;
30
class
PEAR_Task_Unixeol
extends
PEAR_Task_Common
31
{
32
public
$type
=
'simple'
;
33
public
$phase
=
PEAR_TASK_PACKAGE
;
34
public
$_replacements
;
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
}
PEAR_TASK_PACKAGE
const PEAR_TASK_PACKAGE
Definition
Common.php:23
PEAR_TASK_ERROR_INVALID
const PEAR_TASK_ERROR_INVALID
Definition
Common.php:21
PEAR_Task_Common
Definition
Common.php:56
PEAR_Task_Common\$config
$config
Definition
Common.php:76
PEAR_Task_Unixeol
Definition
Unixeol.php:31
PEAR_Task_Unixeol\init
init($xml, $attribs, $lastVersion=null)
Definition
Unixeol.php:58
PEAR_Task_Unixeol\startSession
startSession($pkg, $contents, $dest)
Definition
Unixeol.php:73
PEAR_Task_Unixeol\$type
$type
Definition
Unixeol.php:32
PEAR_Task_Unixeol\$phase
$phase
Definition
Unixeol.php:33
PEAR_Task_Unixeol\validateXml
static validateXml($pkg, $xml, $config, $fileXml)
Definition
Unixeol.php:43
PEAR_Task_Unixeol\$_replacements
$_replacements
Definition
Unixeol.php:34
sandbox
core
libs
php
pear
pear
PEAR
Task
Unixeol.php
Generated by
1.17.0