#!/usr/bin/php5 lastErrno()) { echo "\nL'erreur suivante s'est produite : " . Banana::$protocole->lastErrno() . " " . Banana::$protocole->lastError() . "\n"; exit; } } public function createAllSpool() { $this->checkErrors(); $groups = Banana::$protocole->getBoxList(); $this->checkErrors(); foreach (array_keys($groups) as $g) { print "Generating spool for $g : "; Banana::$group = $g; $spool = $this->loadSpool($g); $this->checkErrors(); print "done.\n"; unset($spool); } } } $banana = new MyBanana(); $banana->createAllSpool(); // vim:set et sw=4 sts=4 ts=4 ?>