*/ /** * stDepositoryFrontend components. * * @package stDepositoryPlugin * @subpackage stDepositoryFrontend * @author Krzysztof Bebło */ class stDepositoryFrontendComponents extends sfComponents { /** * Pokaż stan magazynowy produktu, wyciągnij dane z kofniguracji */ public function executeDepository() { $this->stock = $this->product->getStock(); $this->smarty = new stSmarty('stDepositoryFrontend'); $config = $this->product->getConfiguration(); stEventDispatcher::getInstance()->notify(new sfEvent($this, 'stDepositoryFrontendComponents.myExecuteDepository')); $this->show_depository=$config->get('show_depository'); $this->show_availability=$config->get('show_availability'); } }