| @@ 45-54 (lines=10) @@ | ||
| 42 | throw new JException("This connection name does not exist.", 1); |
|
| 43 | $this->currentConnection = $this->connection["$_name"]; |
|
| 44 | } |
|
| 45 | public function query( $_query ) { |
|
| 46 | if(!is_string($_query)) |
|
| 47 | throw new JException("Parameter must be a string.", 1); |
|
| 48 | try { |
|
| 49 | $temp = $this->currentConnection->database->query($_query); |
|
| 50 | } catch (Exception $e) { |
|
| 51 | throw new JException($e->getMessage(), 1); |
|
| 52 | } |
|
| 53 | return $temp; |
|
| 54 | } |
|
| 55 | public function queryInsert( $_query ) { |
|
| 56 | if(!is_string($_query)) |
|
| 57 | throw new JException("Parameter must be a string.", 1); |
|
| @@ 55-64 (lines=10) @@ | ||
| 52 | } |
|
| 53 | return $temp; |
|
| 54 | } |
|
| 55 | public function queryInsert( $_query ) { |
|
| 56 | if(!is_string($_query)) |
|
| 57 | throw new JException("Parameter must be a string.", 1); |
|
| 58 | try { |
|
| 59 | $temp = $this->currentConnection->database->queryInsert($_query); |
|
| 60 | } catch (Exception $e) { |
|
| 61 | throw new JException($e->getMessage(), 1); |
|
| 62 | } |
|
| 63 | return $temp; |
|
| 64 | } |
|
| 65 | public function queryFetch( $_query ) { |
|
| 66 | if(!is_string($_query)) |
|
| 67 | throw new JException("Parameter must be a string.", 1); |
|
| @@ 65-74 (lines=10) @@ | ||
| 62 | } |
|
| 63 | return $temp; |
|
| 64 | } |
|
| 65 | public function queryFetch( $_query ) { |
|
| 66 | if(!is_string($_query)) |
|
| 67 | throw new JException("Parameter must be a string.", 1); |
|
| 68 | try { |
|
| 69 | $temp = $this->currentConnection->database->queryFetch($_query); |
|
| 70 | } catch (Exception $e) { |
|
| 71 | throw new JException($e->getMessage(), 1); |
|
| 72 | } |
|
| 73 | return $temp; |
|
| 74 | } |
|
| 75 | public function queryArray( $_query ) { |
|
| 76 | if(!is_string($_query)) |
|
| 77 | throw new JException("Parameter must be a string.", 1); |
|
| @@ 75-84 (lines=10) @@ | ||
| 72 | } |
|
| 73 | return $temp; |
|
| 74 | } |
|
| 75 | public function queryArray( $_query ) { |
|
| 76 | if(!is_string($_query)) |
|
| 77 | throw new JException("Parameter must be a string.", 1); |
|
| 78 | try { |
|
| 79 | $temp = $this->currentConnection->database->queryArray($_query); |
|
| 80 | } catch (Exception $e) { |
|
| 81 | throw new JException($e->getMessage(), 1); |
|
| 82 | } |
|
| 83 | return $temp; |
|
| 84 | } |
|
| 85 | public function newTable( $_query ) { |
|
| 86 | if(!is_string($_query)) |
|
| 87 | throw new JException("Parameter must be a string.", 1); |
|
| @@ 85-94 (lines=10) @@ | ||
| 82 | } |
|
| 83 | return $temp; |
|
| 84 | } |
|
| 85 | public function newTable( $_query ) { |
|
| 86 | if(!is_string($_query)) |
|
| 87 | throw new JException("Parameter must be a string.", 1); |
|
| 88 | try { |
|
| 89 | $temp = $this->currentConnection->database->newTable($_query); |
|
| 90 | } catch (Exception $e) { |
|
| 91 | throw new JException($e->getMessage(), 1); |
|
| 92 | } |
|
| 93 | return $temp; |
|
| 94 | } |
|
| 95 | } |
|
| 96 | ?> |
|
| 97 | ||