*/ /** * Klasa stProgressBarComponents * * @package stProgressBarPlugin * @subpackage actions */ class stProgressBarComponents extends sfComponents { /** * Wyświetlanie paska postępu */ public function executeProgressBar() { } /** * Wywołanie paska postępu z helper'a */ public function executeInitProgressBar() { $parameters = array('class' => $this->class, 'method' => $this->method, 'steps' => $this->steps, ); $class = new $this->class($this->getContext()); $this->msg = ''; $this->title = ''; //if (method_exists($class,"getMessage")) { // $this->msg = $class->{"getMessage"}(); //} if (method_exists($class,"getTitle")) { $this->title = $class->{"getTitle"}(); } $this->getUser()->getAttributeHolder()->remove($this->name, 'soteshop/stProgressBarPlugin'); $this->getUser()->setAttribute($this->name, $parameters, 'soteshop/stProgressBarPlugin'); } }