|
@@ 132-136 (lines=5) @@
|
| 129 |
|
public function insert($items = array()) |
| 130 |
|
{ |
| 131 |
|
// Was any cart data passed? No? Bah... |
| 132 |
|
if ( ! is_array($items) OR count($items) === 0) |
| 133 |
|
{ |
| 134 |
|
log_message('error', 'The insert method must be passed an array containing data.'); |
| 135 |
|
return FALSE; |
| 136 |
|
} |
| 137 |
|
|
| 138 |
|
// You can either insert a single product using a one-dimensional array, |
| 139 |
|
// or multiple products using a multi-dimensional one. The way we |
|
@@ 186-190 (lines=5) @@
|
| 183 |
|
protected function _insert($items = array()) |
| 184 |
|
{ |
| 185 |
|
// Was any cart data passed? No? Bah... |
| 186 |
|
if ( ! is_array($items) OR count($items) === 0) |
| 187 |
|
{ |
| 188 |
|
log_message('error', 'The insert method must be passed an array containing data.'); |
| 189 |
|
return FALSE; |
| 190 |
|
} |
| 191 |
|
|
| 192 |
|
// -------------------------------------------------------------------- |
| 193 |
|
|