PHP Class DebugKit\Panel\IncludePanel

Inheritance: extends DebugKit\DebugPanel
Afficher le fichier Open project: cakephp/debug_kit

Protected Properties

Свойство Type Description
$_fileTypes array File Types
$_pluginPaths The list of plugins within the application

Méthodes publiques

Méthode 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.

Méthodes protégées

Méthode 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 méthode

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

_getFileType() protected méthode

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

_includePaths() protected méthode

Get the possible include paths
protected _includePaths ( ) : array
Résultat array

_isAppFile() protected méthode

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

_isCakeFile() protected méthode

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

_isPluginFile() protected méthode

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

_niceFileName() protected méthode

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
Résultat boolean

_prepare() protected méthode

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

shutdown() public méthode

Shutdown callback
public shutdown ( Cake\Event\Event $event ) : void
$event Cake\Event\Event Event
Résultat void

summary() public méthode

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

Property Details

$_fileTypes protected_oe property

File Types
protected array $_fileTypes
Résultat array

$_pluginPaths protected_oe property

The list of plugins within the application
protected $_pluginPaths
Résultat