예제 #1
0
 public function __construct($jar_url, $code_class, $width = 0, $height = 0)
 {
     parent::__construct('object');
     $this->set_code_class($code_class);
     $this->set_jar_url($jar_url);
     $this->set_width($width);
     $this->set_height($height);
     $this->_args = new Map();
     $this->set_error_string(self::$_DEFAULT_ERROR_STRING);
 }
예제 #2
0
 public function __construct($key, $title = null, $width = null, $render_function = null)
 {
     parent::__construct(self::$_default_header_tagname);
     $this->set_key($key);
     $this->set_width($width);
     $this->add_class($this->get_key() . ' column-' . $this->get_key());
     $this->set_cell_format(self::$_default_cell_format);
     $this->_title = $title ? $title : ' ';
     $this->_render_function = $render_function ? $render_function : self::_get_default_row_render_function();
     $this->_load_render_function = self::_get_default_load_render_function();
     $this->_header_render_function = self::_get_default_header_render_function();
     $this->_row_tag = new HTMLLongTag(self::$_default_row_tagname);
 }
예제 #3
0
 public function __construct($url = null, $method = null, $id = null)
 {
     parent::__construct('form');
     $this->set_action($url);
     $this->set_method($method ? $method : self::$_DEFAULT_METHOD);
     $this->add_class(self::$_DEFAULT_CLASS);
     $this->set_id($id ? $id : uniqid('form'));
     $this->set_use_error_block(self::$_DEFAULT_USE_ERROR_FORM);
     $this->set_cancel_action(self::$_DEFAULT_CANCEL_ACTION);
 }