PEAR
[ class tree: PEAR ] [ index: PEAR ] [ all elements ]

Class: PEAR_Task_Unixeol

Source Location: /PEAR-1.10.12/PEAR/Task/Unixeol.php

Class Overview

PEAR_Task_Common
   |
   --PEAR_Task_Unixeol

Implements the unix line endings file task.


Author(s):

Version:

  • Release: 1.10.12

Copyright:

  • 1997-2009 The Authors

Variables

Methods


Child classes:

PEAR_Task_Unixeol_rw
Abstracts the unixeol task xml.

Inherited Variables

Inherited Methods

Class: PEAR_Task_Common

PEAR_Task_Common::__construct()
PEAR_Task_Common::hasPostinstallTasks()
PEAR_Task_Common::init()
Initialize a task instance with the parameters
PEAR_Task_Common::isScript()
Determines whether a role is a script
PEAR_Task_Common::run()
This method is used to process each of the tasks for a particular multiple class type. Simple tasks need not implement this method.
PEAR_Task_Common::runPostinstallTasks()
PEAR_Task_Common::startSession()
Begin a task processing session. All multiple tasks will be processed
PEAR_Task_Common::throwError()
PEAR_Task_Common::validateXml()
Validate the basic contents of a task tag.

Class Details

[line 30]
Implements the unix line endings file task.


[ Top ]


Class Variables

$phase =  PEAR_TASK_PACKAGE

[line 33]

  • Access: public

Type:   mixed
Overrides:   Array


[ Top ]

$type =  'simple'

[line 32]

  • Access: public

Type:   mixed
Overrides:   Array


[ Top ]

$_replacements =

[line 34]

  • Access: public

Type:   mixed


[ Top ]



Method Detail

init   [line 58]

void init( array $xml, unused $attribs, [unused $lastVersion = null])

Initialize a task instance with the parameters
  • Access: public

Overrides PEAR_Task_Common::init() (Initialize a task instance with the parameters)

Parameters:

array   $xml   —  raw, parsed xml
unused   $attribs   — 
unused   $lastVersion   — 

[ Top ]

startSession   [line 73]

string|false|PEAR_Error startSession( PEAR_PackageFile_v1|PEAR_PackageFile_v2 $pkg, string $contents, string $dest)

Replace all line endings with line endings customized for the current OS

See validateXml() source for the complete list of allowed fields

  • Return: false to skip this file, PEAR_Error to fail (use $this->throwError), otherwise return the new contents
  • Access: public

Overrides PEAR_Task_Common::startSession() (Begin a task processing session. All multiple tasks will be processed)

Parameters:

PEAR_PackageFile_v1|PEAR_PackageFile_v2   $pkg   — 
string   $contents   —  file contents
string   $dest   —  the eventual final file location (informational only)

[ Top ]

validateXml   [line 43]

void validateXml( PEAR_PackageFile_v2 $pkg, array $xml, PEAR_Config $config, $fileXml)

Validate the raw xml at parsing-time.
  • Access: public

Overrides PEAR_Task_Common::validateXml() (Validate the basic contents of a task tag.)

Parameters:

PEAR_PackageFile_v2   $pkg   — 
array   $xml   —  raw, parsed xml
PEAR_Config   $config   — 
   $fileXml   — 

[ Top ]


Documentation generated on Sun, 19 Apr 2020 14:22:14 -0400 by phpDocumentor 1.4.4. PEAR Logo Copyright © PHP Group 2004.