public function __construct() { if (!isset(self::$includes)) { self::$includes = get_included_files(); self::$grouped_includes['Views'] = array(); self::$grouped_includes['Controls'] = array(); self::$grouped_includes['Controller'] = array(); self::$grouped_includes['Model'] = array(); self::$grouped_includes['Config'] = array(); self::$grouped_includes['System'] = array(); self::$grouped_includes['Misc.'] = array(); if (isset(self::$includes)) { foreach (self::$includes as $include) { if (strpos($include, PATH_APP . 'view/') === 0) { self::$grouped_includes['Views'][] = $include; } else { if (strpos($include, PATH_APP . 'control/') === 0) { self::$grouped_includes['Controls'][] = $include; } else { if (strpos($include, PATH_APP . 'controller/') === 0) { self::$grouped_includes['Controller'][] = $include; } else { if (strpos($include, PATH_APP . 'model/') === 0) { self::$grouped_includes['Model'][] = $include; } else { if (strpos($include, PATH_APP . 'conf/') === 0) { self::$grouped_includes['Config'][] = $include; } else { if (strpos($include, PATH_SYS) === 0) { self::$grouped_includes['System'][] = $include; } else { self::$grouped_includes['Misc.'][] = $include; } } } } } } } } } $this->title = "Includes (" . count(self::$includes) . ")"; }
public function __construct() { parent::__construct(); $this->title = "Models (" . count(self::$grouped_includes['Model']) . ")"; }
public function __construct() { parent::__construct(); $this->title = "Views (" . count(Collector::$views) . ")"; }