Esempio n. 1
0
function main($args)
{
    $pname = array_shift($args);
    $lst = new SymbolListArchiver();
    if ($lst->acquire()) {
        $tuple = $lst->getExchangeSymbolNameTuple();
        array_multisort($tuple);
        $n = 0;
        printf("%5s\t%s\t%s\t%s\n", "ID", "Exchange", "Symbol", "Name");
        foreach ($tuple as $record) {
            list($exch, $sym, $name) = $record;
            printf("%5d\t%s\t%s\t%s\n", ++$n, $exch, $sym, $name);
        }
    } else {
        error_log("epic failure.");
    }
}
 function EtfSymbolListArchiver($opts = null)
 {
     parent::SymbolListArchiver($opts);
     return $this;
 }