*/ /** * Klasa stLukasFrontendComponents * * @package stLukasPlugin * @subpackage actions */ class stLukasFrontendComponents extends sfComponents { /** * Pokazywanie formularza płatności */ public function executeShowPayment() { $this->smarty = new stSmarty('stLukasFrontend'); if (stPaymentType::hasOrderInSummary()) { $this->stLukas = new stLukas(); $this->order = stPaymentType::getOrderInSummary(); } } /** * Obliczanie rat w produkcie */ public function executeCalculate() { $this->smarty = new stSmarty('stLukasFrontend'); if (!stLukas::isActive() || !stLukas::showInProduct(ProductPeer::getShowedProduct())) return sfView::NONE; } /** * Obliczanie rat w koszyku */ public function executeCalculateInBasket() { $this->smarty = new stSmarty('stLukasFrontend'); } /** * Obliczanie rat w potwierdzeniu zamówienia */ public function executeOrderSummary() { $this->smarty = new stSmarty('stLukasFrontend'); $this->basket = stBasket::getInstance(sfContext::getInstance()->getUser()); $this->delivery = stDeliveryFrontend::getInstance($this->basket); } }