Joyride Posted October 8, 2007 Report Share Posted October 8, 2007 No klases konstruktora izsaucu tas pasas klases funkciju, kas defineta ka privata... public function __construct($var) { $this->PrivFunc($var); } private function PrivFunc($var) { ... } bet dabuju topika nosaukuma redzamo erroru. Kur ir kljuda? PHP v. 5.2 Link to comment Share on other sites More sharing options...
v3rb0 Posted October 8, 2007 Report Share Posted October 8, 2007 (edited) http://paste.php.lv/6213 a man strādā - php 5.2.3 Edited October 8, 2007 by v3rb0 Link to comment Share on other sites More sharing options...
Delfins Posted October 8, 2007 Report Share Posted October 8, 2007 5.0.4 iet Link to comment Share on other sites More sharing options...
Joyride Posted October 8, 2007 Author Report Share Posted October 8, 2007 Oops, sorry, mana kljuda, biju izsaucis to privato funkciju arpus klases. Sakuma biju domajis taisit ka publisku, pec tam padomaju, ka lai ietaupitu izsauksanu, to var veikt konstruktora. Pirmdienas vakara nogurums dara savu :) Link to comment Share on other sites More sharing options...
Recommended Posts