Joyride Posted October 8, 2007 Report 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
v3rb0 Posted October 8, 2007 Report Posted October 8, 2007 (edited) http://paste.php.lv/6213 a man strādā - php 5.2.3 Edited October 8, 2007 by v3rb0
Joyride Posted October 8, 2007 Author Report 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 :)
Recommended Posts