note 89310 deleted from language.oop5.visibility by thiago

From: Date: Tue, 03 Mar 2009 11:48:14 +0000
Subject: note 89310 deleted from language.oop5.visibility by thiago
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-151378@lists.php.net to get a copy of this message
Note Submitter: sverel ---- How can i get static var of child class from parent class. For example i need: abstract class API_MODEL { protected static $_TABLE; function getById($ID) { $tbl = self::$_TABLE; var_dump($tbl); } } class MODEL_NEWS extends API_MODEL { protected static $_TABLE = 'news'; } MODEL_NEWS::getById(23); // var $tbl is NULL.

« previous php.notes (#151378) next »