|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[2008-04-15 15:40 UTC] incastrix at yahoo dot it
Description: ------------ I use inclued to dump my framework hierarchy. the extension is installed correctly and work. when I run gengraph.php receive some notice: Notice: Undefined index: mangled_name in /usr/local/src/inclued-0.1.0/gengraph.php on line 93 Notice: Undefined index: mangled_name in /usr/local/src/inclued-0.1.0/gengraph.php on line 123 then I'm able to create png file. When I open it, I found only base classes and not derived. Can't post code too big and atm can't reproduce with smaller code, but if you wish I can mail extension output, gengraph.php output and png file. PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Tue Oct 28 15:00:02 2025 UTC |
this code reproduce: abstract class abstractApplication { private static $instance; protected $resourceProxy; final public static function getInstance() { $calledClass = get_called_class(); if (!isset(self::$instance)) { self::$instance = new $calledClass; } return self::$instance; } final protected function __construct() { } final public function getResource($resource) { $cacher = self::$instance; $cachedResource = $a->resourceProxy->get($resource); return($cachedResource); } abstract public function execute(); } class httpApplication extends abstractApplication { public function initialize() { } public function execute() { } public function canDoAction($action) { } public function login() { } } class websiteApplication extends httpApplication { public function initialize() { } public function execute() { } public function canDoAction($action) { } public function login() { } } class otherBaseClass { public function doSomething() { } } class otherDerived extends otherBaseClass { public function doSomething() { } } $application = httpApplication::getInstance(); echo "end"; ------------------------------------------------ espect: object->abstractApplication->httpApplication->websiteApplication | +->otherBaseClass->otherDerived