Core  3.2
PHP API documentation
 All Data Structures Namespaces Files Functions Variables Pages
CrontabSectionElement Class Reference
+ Inheritance diagram for CrontabSectionElement:
+ Collaboration diagram for CrontabSectionElement:

Public Member Functions

 __construct ($contextRoot, $file)
 
 normalizeFile ($path)
 
 normalizeContextRoot ($path)
 
 matchContextRoot ($contextRoot)
 
 matchFile ($file)
 
 match ($contextRoot, $file)
 
 __toString ()
 
- Public Member Functions inherited from CrontabElement
 appendChild (CrontabElement &$element)
 

Data Fields

 $contextRoot
 
 $file
 
- Data Fields inherited from CrontabElement
 $childs = array()
 

Detailed Description

Definition at line 4 of file Class.CrontabSectionElement.php.

Constructor & Destructor Documentation

__construct (   $contextRoot,
  $file 
)

CrontabParserSectionElement constructor.

Parameters
string$contextRoot
string$file

Definition at line 14 of file Class.CrontabSectionElement.php.

Member Function Documentation

__toString ( )

Serialize element to string

Returns
string

Definition at line 86 of file Class.CrontabSectionElement.php.

match (   $contextRoot,
  $file 
)

Check if the section match the given context and file

Parameters
string$contextRootThe context's root directory
string$fileThe cron file relative to the context's root directory
Returns
bool

Definition at line 77 of file Class.CrontabSectionElement.php.

matchContextRoot (   $contextRoot)

Check if the section match the given context

Parameters
string$contextRootThe context's root directory
Returns
bool

Definition at line 56 of file Class.CrontabSectionElement.php.

matchFile (   $file)

Check if the section match the given file

Parameters
string$fileThe cron file relative to the context's root directory
Returns
bool

Definition at line 66 of file Class.CrontabSectionElement.php.

normalizeContextRoot (   $path)

Cleanup path names and try to resolve absolute path

Parameters
string$path
Returns
string

Definition at line 41 of file Class.CrontabSectionElement.php.

normalizeFile (   $path)

Cleanup path names

Parameters
string$path
Returns
string

Definition at line 25 of file Class.CrontabSectionElement.php.

Field Documentation

$contextRoot

Definition at line 6 of file Class.CrontabSectionElement.php.

$file

Definition at line 7 of file Class.CrontabSectionElement.php.


The documentation for this class was generated from the following file:
← centre documentaire © anakeen