.

PhpinfoController Class Reference
[PhpInfo]

Show PHPinfo. More...

Inheritance diagram for PhpinfoController:
ControllerBase IController IEventSink

List of all members.

Public Member Functions

  action_phpinfo (PageData $page_data)
  Show PHP Info.
  get_routes ()
  Return array of Route instances which are handled by this controller.
  on_event ($name, $params, &$result)
  Invoked to handle events.

Detailed Description

Show PHPinfo.

When enabled will place a link to phpinfo into the debug block, which this controller also creates.

On live sites will do nothing.

Author:
Gerd Riesselmann

Definition at line 21 of file phpinfo.controller.php.


Member Function Documentation

PhpinfoController::action_phpinfo ( PageData page_data  ) 

Show PHP Info.

Parameters:
PageData  $page_data
Returns:
void

Definition at line 39 of file phpinfo.controller.php.

00039                                                             {
00040                 print phpinfo();
00041                 exit;
00042         }
PhpinfoController::get_routes (  ) 

Return array of Route instances which are handled by this controller.

Returns:
array Array of Routes

Reimplemented from ControllerBase.

Definition at line 27 of file phpinfo.controller.php.

00027                                      {
00028                 return array(
00029                         new ExactMatchRoute('phpinfo', $this, 'phpinfo')
00030                 );
00031         }
PhpinfoController::on_event ( name,
params,
&$  result  
)

Invoked to handle events.

Reimplemented from ControllerBase.

Definition at line 47 of file phpinfo.controller.php.

00047                                                            {
00048                 if ($name === 'debugblock' && $params === 'properties') {
00049                         $result['PHP-Version'] = phpversion() . ', ' . WidgetActionLink::output('phpinfo()', 'phpinfo', '', array('target' => '_blank'));
00050                 }               
00051         }

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