DebugKit\Panel\IncludePanel::_prepare PHP Метод

_prepare() защищенный Метод

Get a list of files that were included and split them out into the various parts of the app
protected _prepare ( ) : array
Результат array
    protected function _prepare()
    {
        $return = ['cake' => [], 'app' => [], 'plugins' => []];
        foreach (get_included_files() as $file) {
            $pluginName = $this->_isPluginFile($file);
            if ($pluginName) {
                $return['plugins'][$pluginName][$this->_getFileType($file)][] = $this->_niceFileName($file, $pluginName);
            } elseif ($this->_isAppFile($file)) {
                $return['app'][$this->_getFileType($file)][] = $this->_niceFileName($file, 'app');
            } elseif ($this->_isCakeFile($file)) {
                $return['cake'][$this->_getFileType($file)][] = $this->_niceFileName($file, 'cake');
            }
        }
        $return['paths'] = $this->_includePaths();
        ksort($return['cake']);
        ksort($return['plugins']);
        ksort($return['app']);
        return $return;
    }