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

Class: PHP_CompatInfo

Source Location: /PHP_CompatInfo-1.0.2/CompatInfo.php

Class Overview


Check Compatibility of chunk of PHP code


Author(s):

Version:

  • Release: 1.0.2

Copyright:

  • Copyright 2003 Davey Shafik and Synaptic Media. All Rights Reserved.

Variables

Methods


Child classes:

PHP_CompatInfo_Cli
CLI Script to Check Compatibility of chunk of PHP code

Inherited Variables

Inherited Methods


Class Details

[line 52]
Check Compatibility of chunk of PHP code
  • Author: Davey Shafik <davey@php.net>
  • Version: Release: 1.0.2
  • Copyright: Copyright 2003 Davey Shafik and Synaptic Media. All Rights Reserved.
  • Link: http://pear.php.net/package/PHP_CompatInfo
  • Since: Class available since Release 0.7.0
  • License: PHP License 3.0
  • Example: example not found
  • Example: example not found
  • Example: example not found
  • Example: example not found
  • Example: example not found
  • Example: example not found


[ Top ]


Class Variables

$latest_version =  '3.0.0'

[line 57]

  • Var: Earliest version of PHP to use

Type:   string


[ Top ]

$recurse_dir =  true

[line 62]

  • Var: Toggle parseDir recursion

Type:   boolean


[ Top ]



Method Detail

parseArray   [line 248]

array parseArray( array $files, [array $options = array()])

Parse an Array of Files

You can parse an array of Files or Strings, to parse strings, $options['is_string'] must be set to true

  • Access: public

Parameters:

array   $files   —  Array of file names or code strings
array   $options   —  An array of options where: 'file_ext' Contains an array of file extensions to parse for PHP code. Default: php, php4, inc, phtml 'debug' contains a boolean to control whether extra ouput is shown. 'is_string' contains a boolean which says if the array values are strings or file names. 'ignore_files' contains an array of files to ignore. File names are case sensitive. 'ignore_functions' contains an array of functions to ignore when calculating the version needed.

[ Top ]

parseDir   [line 138]

array parseDir( string $dir, [array $options = array()])

Parse a directory recursively for its Compatibility info

Parameters:

string   $dir   —  Path of folder to parse
array   $options   —  Array of user options where: 'file_ext' Contains an array of file extensions to parse for PHP code. Default: php, php4, inc, phtml 'recurse_dir' Boolean on whether to recursively find files 'debug' contains a boolean to control whether extra ouput is shown. 'ignore_files' contains an array of files to ignore. File names are case insensitive. 'ignore_dirs' contains an array of directories to ignore. Directory names are case insensitive. 'ignore_functions' contains an array of functions to ignore when calculating the version needed.

[ Top ]

parseFile   [line 78]

Array parseFile( string $file, [array $options = array()])

Parse a file for its Compatibility info
  • Access: public

Parameters:

string   $file   —  Path of File to parse
array   $options   —  An array of options where: '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.

[ Top ]

parseFolder   [line 216]

void parseFolder( $folder, [ $options = array()])

Alias of parseDir

Parameters:

   $folder   — 
   $options   — 

[ Top ]

parseString   [line 101]

Array parseString( string $string, [array $options = array()])

Parse a string for its Compatibility info
  • Access: public

Parameters:

string   $string   —  PHP Code to parses
array   $options   —  An array of options where: '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.

[ Top ]


Documentation generated on Mon, 11 Mar 2019 14:41:00 -0400 by phpDocumentor 1.4.4. PEAR Logo Copyright © PHP Group 2004.