Exemplo n.º 1
0
 public function textarea($column = 0, array $attributes = array())
 {
     $this->multifield($attributes);
     parent::textarea($column, $attributes);
 }
Exemplo n.º 2
0
 /**
  * Renders a styled button element
  *
  * @author Jonathan Davis
  * @since 1.1
  *
  * @param int $column The table column to add the element to
  * @param array $attributes Element attributes; requires a 'name' attribute
  *
  * @return void
  **/
 public function button($column = 0, array $attributes = array())
 {
     if (isset($attributes['name'])) {
         $name = $attributes['name'];
         $attributes['value'] = '${' . $name . '}';
         $attributes['name'] .= '][${context}';
     }
     parent::button($column, $attributes);
 }
Exemplo n.º 3
0
 public function __construct($Module, $name)
 {
     parent::__construct($Module, $name);
     $this->id = empty($Module->setting) ? $this->module : $Module->setting;
     if ($this->label == $name) {
         $this->label = __('Shipping Method', 'Shopp');
     }
     if (method_exists($Module, 'logo')) {
         $this->label = 'data:image/png;base64,' . $Module->logo();
     }
 }