Exemplo n.º 1
0
 function &singleton($url)
 {
     static $instance;
     if (!isset($instance)) {
         require_once HORDE_LIBS . 'Horde/CLI.php';
         if (!Horde_CLI::runningFromCLI()) {
             exit("Must be run from the command line\n");
         }
         Horde_CLI::init();
         $instance =& Countries::factory($url);
     }
     return $instance;
 }