コード例 #1
0
 private function existsACotationWithThisDate(Cotation $cotation)
 {
     $sql = "SELECT id \r\n            FROM cotations_history \r\n            WHERE data = :date AND codigo = :code";
     $query = $this->session->prepare($sql);
     $query->bindParam(":date", date("Y-m-d"));
     $query->bindParam(":code", $cotation->getCode());
     $query->execute();
     return $query->rowCount() > 0;
 }
コード例 #2
0
 public function Arabica(DateMap $map)
 {
     parent::Cotation($map);
     $this->type = "Arabica";
     $this->types = new HashMap();
     $this->types();
     //$this->name = $this->name($this->jsonInfo->codigo);
 }
コード例 #3
0
 private function addTextToTooltipInASet($seriesname, $index, Cotation $cotation)
 {
     $text = "Abertura: " . $cotation->getOpen();
     $text .= "\nFechamento: " . $cotation->getClose();
     $text .= "\nMaximo: " . $cotation->getMax();
     $text .= "\nMinimo: " . $cotation->getMin();
     $text .= "\nData: " . $cotation->getDate();
     $this->multiSeries->addAttributeToASet("tooltext", $text, $index, $seriesname);
 }
コード例 #4
0
 public static function buildLineWithCurrentFisicaOrIndicador(Cotation $cot, $bool)
 {
     $html = "";
     $tdImg = self::buildImgTag($cot->getImage()) . "<a class='open-chart-window'>" . $cot->getName() . "</a>";
     if ($bool) {
         $html .= self::buildTD($tdImg, "first-arabica");
     } else {
         $html .= self::buildTD($tdImg, "first-indicador");
     }
     $html .= self::buildTD($cot->getLast());
     $class = $cot->getDiff() >= 0 ? "positive" : "negative";
     $html .= self::buildTD($cot->getDiff(), $class);
     $html .= self::buildTD($cot->getClose());
     return $html;
 }
コード例 #5
0
ファイル: BMF.php プロジェクト: raigons/bureauinteligencia
 public function BMF(DateMap $dateMap)
 {
     $this->name = "BMF";
     $this->type = "BMF";
     parent::Cotation($dateMap);
 }
コード例 #6
0
ファイル: London.php プロジェクト: raigons/bureauinteligencia
 public function London(DateMap $map)
 {
     parent::Cotation($map);
     $this->name = "Londres";
     $this->type = "London";
 }
コード例 #7
0
 public function EuroCom(DateMap $map)
 {
     $this->name = "Euro";
     $this->type = "Euro";
     parent::Cotation($map);
 }
コード例 #8
0
 public function NewYork(DateMap $map)
 {
     $this->name = "NY";
     $this->type = "NY";
     parent::Cotation($map);
 }
コード例 #9
0
 public function DolarCom(DateMap $dateMap)
 {
     $this->name = "DÓLAR";
     $this->type = "Dolar";
     parent::Cotation($dateMap);
 }