include methods of one class in another

From: Date: Thu, 21 Aug 2008 10:10:09 +0000
Subject: include methods of one class in another
Groups: php.general 
Request: Send a blank email to php-general+get-278455@lists.php.net to get a copy of this message
Hello, firstly, sorry for my English... I have class: //--- class manageClassError{ private $errorsList=array(); private function addError($ex){ $errorsList[]=$ex; } public function isError(){ return (bool)(count($this->errorsList)); } public function getErrorsList(){ return $this->errorsList; } public function returnLastError(){ $cErrorsList=count($this->errorsList); If($cErrorsList==0){ return false; }else{ return $this->errorsList[$cErrorsList-1]; } } } //--- this class alone can't do anything practicality, but if "include" this class to another it can salve other class to copy code of first class... so i had many class,which contain all method of manageClassError and i need to mark managing error in other class...can you help me? P.S. I think, use "extends" isn't good for my idea... -- =============== С уважением, Манылов Павел aka [R-k] icq: 949-388-0 mailto:rap-kasta@mail.ru =============== А ещё говорят так: I was at this restaurant. The sign said "Breakfast Anytime." So I ordered French Toast in the Rennaissance. -- Steven Wright [fortune]

« previous php.general (#278455) next »