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

Class: Generic_Sniffs_PHP_DeprecatedFunctionsSniff

Source Location: /PHP_CodeSniffer-1.3.0/CodeSniffer/Standards/Generic/Sniffs/PHP/DeprecatedFunctionsSniff.php

Class Overview

Generic_Sniffs_PHP_ForbiddenFunctionsSniff
   |
   --Generic_Sniffs_PHP_DeprecatedFunctionsSniff

Generic_Sniffs_PHP_DeprecatedFunctionsSniff.


Author(s):

Version:

  • Release: 1.3.0

Copyright:

  • 2006 Squiz Pty Ltd (ABN 77 084 670 600)

Variables

Methods


Inherited Variables

Inherited Methods

Class: Generic_Sniffs_PHP_ForbiddenFunctionsSniff

Generic_Sniffs_PHP_ForbiddenFunctionsSniff::process()
Processes this test, when one of its tokens is encountered.
Generic_Sniffs_PHP_ForbiddenFunctionsSniff::register()
Returns an array of tokens this test wants to listen for.

Class Details

[line 33]
Generic_Sniffs_PHP_DeprecatedFunctionsSniff.

Discourages the use of deprecated functions that are kept in PHP for compatibility with older versions.



[ Top ]


Class Variables

$forbiddenFunctions = array()

[line 44]

A list of forbidden functions with their alternatives.

The value is NULL if no alternative exists. IE, the function should just not be used.

  • Var: => string|null)
  • Access: protected

Type:   array(string
Overrides:   Array


[ Top ]



Method Detail

__construct (Constructor)   [line 52]

Generic_Sniffs_PHP_DeprecatedFunctionsSniff __construct( )

Constructor.

Uses the Reflection API to get a list of deprecated functions.

  • Access: public

[ Top ]


Documentation generated on Mon, 11 Mar 2019 15:43:12 -0400 by phpDocumentor 1.4.4. PEAR Logo Copyright © PHP Group 2004.