/** * Sets the field value * * @param scalar * @return this */ public function setValue($value) { Jquery_Field_Error::i()->argument(1, 'scalar'); $this->_value = $value; return $this; }
/** * Set JqueryUI Theme * * @param string * @return this */ public function setTheme($theme) { Jquery_Field_Error::i()->argument(1, 'string'); $this->_theme = $theme; return $this; }
/** * Returns a ui button field * * @param string * @param string|null * @param bool * @return Jquery_Field_Button */ public function button($value, $name = NULL, $submit = false, $theme = 'default') { Jquery_Field_Error::i()->argument(1, 'string')->argument(2, 'string', 'null')->argument(3, 'bool')->argument(4, 'string'); return $this->Jquery_Field_Button($name, $submit)->setTheme($theme)->setValue($value); }
/** * Sets a background image * * @param string * @return this */ public function setImage($image) { Jquery_Field_Error::i()->argument(1, 'string'); $this->_image = $image; return $this; }
/** * Sets the field value * * @param scalar * @return this */ public function setValue($value) { Jquery_Field_Error::i()->argument(1, 'scalar', 'array'); if (!is_array($value)) { $value = func_get_args(); } $this->_value = $value; return $this; }