Esempio n. 1
0
 public static function buildLineWithCurrent(Cotation $cot)
 {
     $html = "";
     $tdImg = self::buildImgTag($cot->getImage()) . "<a class='open-chart-window'>" . $cot->getMonth() . "</a>";
     $html .= self::buildTD($tdImg);
     $html .= self::buildTD($cot->getLast());
     $class = $cot->getDiff() >= 0 ? "positive" : "negative";
     $html .= self::buildTD($cot->getDiff(), $class);
     $html .= self::buildTD($cot->openContracts());
     return $html;
 }