Exemplo n.º 1
0
 public function __construct($target_directory, $method = 'get', $multi_part = FALSE, $data = array())
 {
     if (!file_exists($target_directory)) {
         trigger_error('invalid directory', E_USER_ERROR);
     }
     if (!is_writable($target_directory)) {
         trigger_error('no permissions to target directory', E_USER_ERROR);
     }
     $this->path = $target_directory;
     parent::__construct($method, $multi_part, $data);
 }
Exemplo n.º 2
0
 public function __construct($method = 'get', $multi_part = false, $data = array())
 {
     parent::__construct($method, $multi_part, $data);
     $this->define_fieldsets();
 }