Ejemplo n.º 1
0
 public static function textarea($options = array(), $value = '', $right = null)
 {
     $html = "";
     if (!is_array($options)) {
         $options = array('name' => $options);
     }
     if (isset($options['display'])) {
         $html = self::label($options['name'], $options['display']);
         unset($options['display']);
     }
     if (isset($options['class'])) {
         $options['class'] = $options['class'] . ' full-width';
     }
     return $html . parent::textarea($options, $value, $right);
 }
Ejemplo n.º 2
0
 /**
  * Creates an HTML form textarea tag.
  *
  * @param   string|array  input name or an array of HTML attributes
  * @param   string        input value, when using a name
  * @param   string        a string to be attached to the end of the attributes
  * @param   boolean       encode existing entities
  * @return  string
  */
 public static function textarea($data, $value = NULL, $extra = '', $double_encode = TRUE)
 {
     // Add the Bluebox defaults (such as css classes)
     list($data, $value, $extra) = self::_addDefaults(__FUNCTION__, $data, $value, $extra);
     // Call the parent
     $result = parent::textarea($data, $value, $extra, $double_encode);
     return $result;
 }
 public static function textarea($data, $value = '', $extra = '', $double_encode = TRUE)
 {
     $value = self::get_value($data, $value);
     return parent::textarea($data, $value, $extra, $double_encode);
 }