示例#1
0
 /**
  * Sets the field value
  *
  * @param scalar
  * @return this
  */
 public function setValue($value)
 {
     Jquery_Field_Error::i()->argument(1, 'scalar');
     $this->_value = $value;
     return $this;
 }
示例#2
0
 /**
  * Set JqueryUI Theme
  *
  * @param string
  * @return this
  */
 public function setTheme($theme)
 {
     Jquery_Field_Error::i()->argument(1, 'string');
     $this->_theme = $theme;
     return $this;
 }
示例#3
0
 /**
  * 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);
 }
示例#4
0
 /**
  * Sets a background image
  *
  * @param string
  * @return this
  */
 public function setImage($image)
 {
     Jquery_Field_Error::i()->argument(1, 'string');
     $this->_image = $image;
     return $this;
 }
示例#5
0
 /**
  * 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;
 }