$codeMap = new CodeMap(); $dateMap = new DateMap(); $bolsaController = new BolsaController($bolsa, $bolsaDao); $iterator = $bolsaController->getBolsa()->getCotacoes(); print_r($dateMap->getMap()); echo "<br />".$dateMap->getMap()->count()."<br />"; foreach($dateMap->getMap() as $date){ echo "date = $date<br /><br />"; } while($iterator->valid()){ echo "Codigo: ".$iterator->current()->getCodigo(); echo "<br />Produto: ".$iterator->current()->getName($codeMap); echo "<br />Mês: ".$iterator->current()->getMounth($dateMap); echo "<br />Valor: ".$iterator->current()->getValor(); echo "<br />Diferencial: ".$iterator->current()->getDiferencial(); echo "<br />---------------<br />"; $iterator->next(); }*/ require_once 'Maps/HashMap.php'; require_once "HtmlLib.php"; require_once 'Classifier/Classifier.php'; $cotacoes = HtmlLib::cotacoes(); foreach ($cotacoes->get("BMF") as $cotacao) { echo "Nome: " . $cotacao->getName() . " - " . $cotacao->getLast() . "<br />"; //echo "Codigo : ".$cotacao->getCodigo()." - ". $cotacao->getImage();"<br />"; //echo "<br />"; }
<? require_once 'CotacoesRefactor/HtmlLib.php'; $allCots = HtmlLib::cotacoes(); ?> <div id="cotations-div"> <div class="toolbars" style="border: 0 !important; padding-top: 0 !important;"> <ul class="items-toolbars"> <li class="item-selected" title="futuras" type="content-cotations"> <a href="#futuras">Futuras</a> </li> <li title="fisicas" type="content-cotations"> <a href="#fisicas">Físicas</a> </li> <li title="indicadores" type="content-cotations"> <a href="#indicadores">Indicadores</a> </li> </ul> <!--divs--> <div class="content-cotations content-of-tab" id="futuras"> <div id="bmf" class="table-cotation"> <div class="title-cot"> <span class="title-cotation">BM&F - São Paulo</span> </div> <table class="table-values" border="0"> <thead> <tr> <th class="first">[Contrato]</th> <th>ULT</th> <th>DIF</th> <th>CAberto</th> </tr>