} ?> <div class="row-fluid"> <div class="span12"> <?php $layout = new JLayoutFile('wizard', $this->layoutsBasePath); echo $layout->render($this->layoutData); ?> </div> </div> <?php foreach ($this->currencies as $currency_) { $currency = new VirtualCurrencyCurrency(); $currency->bind($currency_); ?> <div class="row-fluid"> <div class="span12"> <div class="bs-docs-example"> <form method="post" action="<?php echo JRoute::_("index.php"); ?> " id="form-payment" autocomplete="off"> <h3><?php echo JText::sprintf("COM_VIRTUALCURRENCY_BUY_CURRENCY", $this->escape($currency->getTitle())); ?> </h3> <label><?php
/** * Return a currency data, getting it by currency ID. * * <code> * $currencyId = 1; * * $currencies = new VirtualCurrencyCurrencies(JFactory::getDbo()); * $currencies->load(); * * $currency = $currencies->getCurrency($currencyId); * </code> * * @param integer $id * * @return VirtualCurrencyCurrency|null */ public function getCurrency($id) { foreach ($this->items as $item) { if ($id == $item["id"]) { $currency = new VirtualCurrencyCurrency(); $currency->bind($item); return $currency; } } return null; }