function __toString() { $load = new Loader(); $html = $load->helper('html'); $this->beforeHTML = $html->javascript('/widgets/custom/coupleddropdown.js'); $this->beforeHTML .= $html->inlineJavascript('var coupled_empty_' . $this->getId() . ' = "' . $this->empty_value . '";'); $this->afterHTML = $html->img('/widgets/custom/ajax-loader.gif', 'Loading...', array('style' => 'display:none')); $this->setClass('coupleddropdown'); if ($this->filter_column && $this->_data_source instanceof TableReader) { $this->_data_source->where($this->filter_column, $this->related->getValue()); } if ($this->empty_value) { $this->add('0', $this->empty_value); } return parent::__toString(); }
function validate() { return $this->date_picker->validate() && $this->dropdown->validate(); }
function __toString() { $this->setName($this->getName(), $this->getName() . '[]'); return parent::__toString(); }