Elgg  Version 2.2
 All Classes Namespaces Files Functions Variables Pages
Public Member Functions | Protected Attributes | List of all members
Elgg\DeprecationService Class Reference

Public Member Functions

 __construct (Logger $logger)
 Constructor. More...
 
 sendNotice ($msg, $dep_version, $backtrace_level=1)
 Sends a notice about deprecated use of a function, view, etc. More...
 

Protected Attributes

 $logger
 

Detailed Description

Definition at line 15 of file DeprecationService.php.

Constructor & Destructor Documentation

Elgg\DeprecationService::__construct ( Logger  $logger)

Constructor.

Parameters
Logger$loggerLogger service

Definition at line 27 of file DeprecationService.php.

Member Function Documentation

Elgg\DeprecationService::sendNotice (   $msg,
  $dep_version,
  $backtrace_level = 1 
)

Sends a notice about deprecated use of a function, view, etc.

Parameters
string$msgMessage to log
string$dep_versionHuman-readable release version: 1.7, 1.8, ...
int$backtrace_levelHow many levels back to display the backtrace. Useful if calling from functions that are called from other places (like elgg_view()). Set to -1 for a full backtrace.
Returns
bool

Definition at line 42 of file DeprecationService.php.

Member Data Documentation

Elgg\DeprecationService::$logger
protected

Definition at line 20 of file DeprecationService.php.


The documentation for this class was generated from the following file: