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

Class: PHP_CompatInfo

Source Location: /PHP_CompatInfo-0.8.2/CompatInfo.php

Class Overview


Check Compatibility of chunk of PHP code


Author(s):

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 56]
Check Compatibility of chunk of PHP code
  • Author: Davey Shafik <davey@php.net>
  • Copyright: Copyright 2003 Davey Shafik and Synaptic Media. All Rights Reserved.
  • 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 =  '4.0.0'

[line 62]

  • Var: Earliest version of PHP to use

Type:   string


[ Top ]

$recurse_dir =  true

[line 68]

  • Var: Toggle parseDir recursion

Type:   boolean


[ Top ]



Method Detail

parseArray   [line 250]

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

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: '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 147]

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

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 85]

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

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 222]

void parseFolder( $folder, $options)

Alias of parseDir

Parameters:

   $folder   — 
   $options   — 

[ Top ]

parseString   [line 109]

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

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 10:15:42 -0400 by phpDocumentor 1.4.4. PEAR Logo Copyright © PHP Group 2004.