| @@ 75-83 (lines=9) @@ | ||
| 72 | * @param string|array $from Single, or list of, ANSI quoted table names |
|
| 73 | * @return self Self reference |
|
| 74 | */ |
|
| 75 | public function addFrom($from) { |
|
| 76 | if(is_array($from)) { |
|
| 77 | $this->from = array_merge($this->from, $from); |
|
| 78 | } elseif(!empty($from)) { |
|
| 79 | $this->from[str_replace(array('"','`'), '', $from)] = $from; |
|
| 80 | } |
|
| 81 | ||
| 82 | return $this; |
|
| 83 | } |
|
| 84 | ||
| 85 | /** |
|
| 86 | * Set the connective property. |
|
| @@ 77-83 (lines=7) @@ | ||
| 74 | * @param string|array $tables Escaped SQL statement, usually an unquoted table name |
|
| 75 | * @return self Self reference |
|
| 76 | */ |
|
| 77 | public function addDelete($tables) { |
|
| 78 | if(is_array($tables)) { |
|
| 79 | $this->delete = array_merge($this->delete, $tables); |
|
| 80 | } elseif(!empty($tables)) { |
|
| 81 | $this->delete[str_replace(array('"','`'), '', $tables)] = $tables; |
|
| 82 | } |
|
| 83 | } |
|
| 84 | } |
|
| 85 | ||