_element, $name); $this->setBodyCode( ""); $this->setHeaderCode( ""); } /** * * set ajax post url * * @param string $postUrl * @return $this */ public function setPostUrl($postUrl) { $this->_postUrl = $postUrl; return $this; } /** * * get ajax post url * * @throws \RuntimeException * @return string */ public function getPostUrl() { if (!$this->_postUrl) { throw new \RuntimeException("The post url for the AjaxText form element must be set."); } return $this->_postUrl; } /** * * render element * * @return string */ public function render() { $translate = $this->getTranslate(); $value = $this->getValue(); return ''; } }