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

Class: PHP_CompatInfo_Cli

Source Location: /CompatInfo/Cli.php

Class Overview

PHP_CompatInfo
   |
   --PHP_CompatInfo_Cli

CLI Script to Check Compatibility of chunk of PHP code


Author(s):

Copyright:

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

Variables

Methods


Inherited Variables

Inherited Methods

Class: PHP_CompatInfo

PHP_CompatInfo::parseArray()
Parse an Array of Files
PHP_CompatInfo::parseDir()
Parse a directory recursively for its Compatibility info
PHP_CompatInfo::parseFile()
Parse a file for its Compatibility info
PHP_CompatInfo::parseFolder()
Alias of parseDir
PHP_CompatInfo::parseString()
Parse a string for its Compatibility info
PHP_CompatInfo::_fileList()
Retrieve a listing of every file in $directory and all subdirectories. Taken from PEAR_PackageFileManager_File
PHP_CompatInfo::_parseTokens()
Parse the given Tokens
PHP_CompatInfo::_tokenize()
Token a file or string

Class Details

[line 46]
CLI Script to Check Compatibility of chunk of PHP code

  1. <?php
  2. require_once 'PHP/CompatInfo/Cli.php';
  3. $cli = new PHP_CompatInfo_Cli;
  4. $cli->run();
  5. ?>




Tags:

example:  Example of using PHP_CompatInfo_Cli
copyright:  Copyright 2003 Davey Shafik and Synaptic Media. All Rights Reserved.
author:  Davey Shafik <davey@php.net>


[ Top ]


Class Variables

$debug =

[line 76]



Tags:

var:  Whether to show debug output

Type:   boolean


[ Top ]

$dir =

[line 70]



Tags:

var:  Directory to be Processed

Type:   string


[ Top ]

$error =  false

[line 58]



Tags:

var:  Whether an error has occured

Type:   boolean


[ Top ]

$file =

[line 64]



Tags:

var:  File to be Processed

Type:   string


[ Top ]

$opts = array()

[line 52]



Tags:

var:  Current CLI Flags

Type:   array


[ Top ]

$recurse =  true

[line 82]



Tags:

var:  Whether to recurse directories when using --dir or -d

Type:   boolean


[ Top ]



Class Methods


constructor __construct [line 88]

PHP_CompatInfo_Cli __construct( )

Constructor



[ Top ]

constructor PHP_CompatInfo_Cli [line 149]

PHP_CompatInfo_Cli PHP_CompatInfo_Cli( )

PHP4 Compatible Constructor



[ Top ]

method run [line 160]

void run( )

Run the CLI Script



Tags:

access:  public


[ Top ]

method _parseDir [line 184]

boolean|string _parseDir( )

Parse Directory Input



Tags:

return:  Returns Boolean False on fail
access:  private


[ Top ]

method _parseFile [line 279]

boolean|string _parseFile( )

Parse File Input



Tags:

return:  Returns Boolean False on fail
access:  private


[ Top ]

method _printHelp [line 406]

void _printHelp( )

Show full help information



Tags:

access:  private


[ Top ]

method _printUsage [line 392]

void _printUsage( )

Show basic Usage



Tags:

access:  private


[ Top ]


Documentation generated on Sat, 05 Mar 2005 20:00:44 -0500 by phpDocumentor 1.3.0RC3