/** * Method description * * More detailed method description * @param void * @return void */ function preRender() { $controller = Controller::getInstance(); $controller->getDispatcher()->addSubscriber("have_valuechecker", $this->getId()); $event = new WidgetEvent("echo_formid", $this->getId()); $event->setParams(array("formid" => $this->getId())); $controller->getDispatcher()->notify($event); $event = new WidgetEvent("echo_form_signature", $this->getId()); $event->setParams(array("signature" => $this->getSignature())); $controller->getDispatcher()->notify($event); $this->checkAndSetData(); parent::preRender(); if (!empty($this->inner_valuecheckers)) { foreach ($this->inner_valuecheckers as $k => $v) { if (($v = $controller->getValueChecker($k)) !== null) { $r = $v->getRules($this->getId()); if (!empty($r)) { //$this->vc_rules .= $r.", "; $this->vc_rules[] = $r; } $m = $v->getMessages(); if (!empty($m)) { //$this->vc_messages .= $v->getMessages(); $this->vc_messages[] = $v->getMessages(); } } } } if (strpos($this->getAction(), "http://") === false) { Controller::getInstance()->addSignature($this->getSignature()); } Controller::getInstance()->getDispatcher()->deleteSubscriber("echo_formid"); Controller::getInstance()->getDispatcher()->deleteSubscriber("echo_form_signature"); Controller::getInstance()->getDispatcher()->deleteEvent("echo_formid"); Controller::getInstance()->getDispatcher()->deleteEvent("echo_form_signature"); /* $controller->dispatcher->deleteSubscriber("valuechecker_puttosubmit",$this->id); $event = new CEvent(); $event->event_name = "valuechecker_getfunc"; $event->notifywidget_id = $this->id; $controller->dispatcher->notify($event); for($i = 0, $c = count($this->plain_on_submit); $i < $c; $i++) $this->javascript->addPlain("onsubmit",$this->plain_on_submit[$i]); for($i = 0, $c = count($this->conditional_on_submit); $i < $c; $i++) $this->javascript->addConditional("onsubmit",$this->conditional_on_submit[$i]); $this->javascript->addBeforeWidget($this->valuechecker_function); */ }
/** * Method description * * More detailed method description * @param void * @return void */ function preRender() { $this->checkAndSetData(); $template_name = null; foreach ($this->class_vars as $v) { if (preg_match("/^is_(\\S+)\$/", $v, $m) && $this->{$v}) { $template_name = $m[1]; if (in_array($m[1], $this->style_to_repeat)) { $this->setRepeatCount($this->{$v}); } break; } } $this->setTemplate($template_name); $this->tpl = $this->createTemplate(); parent::preRender(); if (!isset($this->text)) { $this->setText($this->items->generateAllHTML()); } }
/** * Method description * * More detailed method description * @param void * @return void */ function preRender() { $controller = Controller::getInstance(); $this->checkAndSetData(); if ($this->getRuler()) { $controller->getDispatcher()->notify(new WidgetEvent("ruler_settotal", $this->getId(), $this->getRuler(), array('total_count' => $this->getCount()))); } else { Controller::getInstance()->getDisplayModeParams()->set($this->getId(), 0, $this->getCount(), $this->getCount()); } parent::preRender(); }
/** * Method description * * More detailed method description * @param void * @return void */ function preRender() { $this->checkAndSetData(); if (isset($this->subst_href)) { $this->setHREF(sprintf($this->getSubstHREF(), $this->getHREF())); } if (($this->getHREF() == ' ' || empty($this->href) || $this->getHREF() == '#') && $this->getClearLink()) { $this->tpl = $this->createTemplate(null, 'simpletext.tpl'); } parent::preRender(); }