PHP Class DebugKit\Panel\IncludePanel

Inheritance: extends DebugKit\DebugPanel
Datei anzeigen Open project: cakephp/debug_kit

Protected Properties

Property Type Description
$_fileTypes array File Types
$_pluginPaths The list of plugins within the application

Public Methods

Method Description
__construct ( ) Get a list of plugins on construct for later use
shutdown ( Cake\Event\Event $event ) : void Shutdown callback
summary ( ) : string Get the number of files included in this request.

Protected Methods

Method Description
_getFileType ( string $file ) : string Get the type of file (model, controller etc)
_includePaths ( ) : array Get the possible include paths
_isAppFile ( string $file ) : boolean Check if a path is from APP but not a plugin
_isCakeFile ( string $file ) : boolean Check if a path is part of CakePHP
_isPluginFile ( string $file ) : boolean Check if a path is from a plugin
_niceFileName ( string $file, string $type ) : boolean Replace the path with APP, CORE or the plugin name
_prepare ( ) : array Get a list of files that were included and split them out into the various parts of the app

Method Details

__construct() public method

Get a list of plugins on construct for later use
public __construct ( )

_getFileType() protected method

Get the type of file (model, controller etc)
protected _getFileType ( string $file ) : string
$file string File to check.
return string

_includePaths() protected method

Get the possible include paths
protected _includePaths ( ) : array
return array

_isAppFile() protected method

Check if a path is from APP but not a plugin
protected _isAppFile ( string $file ) : boolean
$file string File to check
return boolean

_isCakeFile() protected method

Check if a path is part of CakePHP
protected _isCakeFile ( string $file ) : boolean
$file string File to check
return boolean

_isPluginFile() protected method

Check if a path is from a plugin
protected _isPluginFile ( string $file ) : boolean
$file string File to check
return boolean

_niceFileName() protected method

Replace the path with APP, CORE or the plugin name
protected _niceFileName ( string $file, string $type ) : boolean
$file string File to check
$type string The file type - app for app files - cake for cake files - PluginName for the name of a plugin
return boolean

_prepare() protected method

Get a list of files that were included and split them out into the various parts of the app
protected _prepare ( ) : array
return array

shutdown() public method

Shutdown callback
public shutdown ( Cake\Event\Event $event ) : void
$event Cake\Event\Event Event
return void

summary() public method

Get the number of files included in this request.
public summary ( ) : string
return string

Property Details

$_fileTypes protected_oe property

File Types
protected array $_fileTypes
return array

$_pluginPaths protected_oe property

The list of plugins within the application
protected $_pluginPaths
return