Class: PHP_CompatInfo_Parser
Source Location: /PHP_CompatInfo-1.9.0b1/CompatInfo/Parser.php
Parser logic
Author(s):
Version:
|
|
|
Inherited Variables
|
Inherited Methods
|
Class Details
Class Variables
Method Detail
__construct (Constructor) [line 197]
PHP_CompatInfo_Parser __construct(
)
|
|
Class constructor (ZE2) for PHP5+
PHP_CompatInfo_Parser (Constructor) [line 186]
PHP_CompatInfo_Parser PHP_CompatInfo_Parser(
)
|
|
Class constructor (ZE1) for PHP4
addListener [line 238]
void addListener(
mixed
$callback, [string
$nName = EVENT_DISPATCHER_GLOBAL])
|
|
Registers a new listener Registers a new listener with the given criteria.
Parameters:
getClasses [line 533]
mixed getClasses(
[mixed
$file = false])
|
|
Returns the latest parse data source classes declared Returns the latest parse data source classes declared (internal or end-user defined)
Parameters:
getConditions [line 671]
mixed getConditions(
[mixed
$file = false], [bool
$levelOnly = false])
|
|
Returns the latest parse data source conditions Returns the latest parse data source conditions, with or without contextual data
Parameters:
getConstants [line 616]
mixed getConstants(
[mixed
$file = false])
|
|
Returns the latest parse data source constants declared Returns the latest parse data source constants declared (internal or end-user defined)
Parameters:
getDirlist [line 382]
array getDirlist(
mixed
$dir, array
$options)
|
|
Returns list of directory parsed Returns list of directory parsed, depending of restrictive parser options.
Parameters:
getExtensions [line 588]
mixed getExtensions(
[mixed
$file = false])
|
|
Returns the latest parse data source extensions used Returns the latest parse data source extensions used
Parameters:
getFilelist [line 403]
array getFilelist(
mixed
$dir, array
$options)
|
|
Returns list of files parsed Returns list of files parsed, depending of restrictive parser options.
Parameters:
getFunctions [line 561]
mixed getFunctions(
[mixed
$file = false])
|
|
Returns the latest parse data source functions declared Returns the latest parse data source functions declared (internal or end-user defined)
Parameters:
getIgnoredFiles [line 486]
Returns list of files ignored Returns list of files ignored while parsing directories
getTokens [line 643]
mixed getTokens(
[mixed
$file = false])
|
|
Returns the latest parse data source tokens declared Returns the latest parse data source PHP5+ tokens declared
Parameters:
getVersion [line 503]
mixed getVersion(
[mixed
$file = false], [bool
$max = false])
|
|
Returns the latest parse data source version Returns the latest parse data source version, minimum and/or maximum
Parameters:
loadVersion [line 308]
array loadVersion(
string
$min, [string|boolean
$max = false], [boolean
$include_const = false], [boolean
$groupby_vers = false])
|
|
Load components list Load components list for a PHP version or subset
Parameters:
notifyListeners [line 284]
void notifyListeners(
string
$event, [array
$info = array()])
|
|
Post a new notification to all listeners registered. This notification occured only if a dispatcher exists. That means if at least one listener was registered.
Parameters:
parseData [line 739]
array parseData(
mixed
$dataSource, [array
$options = array()])
|
|
Parse a data source Parse a data source with auto detect ability. This data source, may be one of these follows: a directory, a file, a string (chunk of code), an array of multiple origin. Each of five parsing functions support common and specifics options. * Common options : - 'debug' Contains a boolean to control whether
extra ouput is shown.
- 'ignore_functions' Contains an array of functions to ignore
when calculating the version needed.
- 'ignore_constants' Contains an array of constants to ignore
when calculating the version needed.
- 'ignore_extensions' Contains an array of php extensions to ignore
when calculating the version needed.
- 'ignore_versions' Contains an array of php versions to ignore
when calculating the version needed.
- 'ignore_functions_match' Contains an array of function patterns to ignore
when calculating the version needed.
- 'ignore_extensions_match' Contains an array of extension patterns to ignore
when calculating the version needed.
- 'ignore_constants_match' Contains an array of constant patterns to ignore
when calculating the version needed.
* parseArray, parseDir|parseFolder, specific options : - 'file_ext' Contains an array of file extensions to parse
for PHP code. Default: php, php4, inc, phtml
- 'ignore_files' Contains an array of files to ignore.
File names are case insensitive.
* parseArray specific options : - 'is_string' Contains a boolean which says if the array values
are strings or file names.
* parseDir|parseFolder specific options : - 'recurse_dir' Boolean on whether to recursively find files
- 'ignore_dirs' Contains an array of directories to ignore.
Directory names are case insensitive.
Parameters:
removeListener [line 258]
bool removeListener(
mixed
$callback, [string
$nName = EVENT_DISPATCHER_GLOBAL])
|
|
Removes a registered listener Removes a registered listener that correspond to the given criteria.
Parameters:
setOutputDriver [line 221]
void setOutputDriver(
string
$type, [array
$conf = array()])
|
|
Set up driver to be used Set up driver to be used, dependant on specified type.
Parameters:
Documentation generated on Mon, 11 Mar 2019 15:26:49 -0400 by phpDocumentor 1.4.4. PEAR Logo Copyright © PHP Group 2004.
|
|