note 100977 deleted from language.oop5.decon by danbrown

From: Date: Thu, 18 Nov 2010 15:39:28 +0000
Subject: note 100977 deleted from language.oop5.decon by danbrown
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-174159@lists.php.net to get a copy of this message
Note Submitter: lbergman at considerateconsultancy dot com ---- Hi all, This constructor works better: function __construct($arVals){ if(is_null($arVals) || !is_array($arVals)){ $this->_conDef(); } if(count($arVals) == 1){ $this->_conName($arVals[0]); }else if(count($arVals) == 2){ $this->_conPage2($arVals[0],$arVals[1]); }else{ $this->_conDef(); } } This was not very considerate of me. :-)

« previous php.notes (#174159) next »