protected function _prepareLayout()
 {
     parent::_prepareLayout();
     if ($toolbar = Mage::app()->getLayout()->createBlock('page/html_pager')) {
         $toolbar->setCollection($this->getResultsCollection());
         $this->setChild('toolbar', $toolbar);
     }
     $data = $this->getFormData();
     if ($rating = Mage::app()->getLayout()->createBlock('webforms/rating')) {
         $rating->setData('webform_id', $data["webform_id"]);
         $rating->setTemplate('webforms/results/rating.phtml');
         $this->setChild('rating', $rating);
     }
     return $this;
 }
 protected function _toHtml()
 {
     if ($this->isEnabled()) {
         return parent::_toHtml();
     }
 }
Ejemplo n.º 3
0
	protected function _construct(){
		parent::_construct();
		$this->setData('results',1);
	}