| @@ 387-401 (lines=15) @@ | ||
| 384 | * |
|
| 385 | * @return boolean TRUE if the value is set, else FALSE |
|
| 386 | */ |
|
| 387 | protected function hasValue($name) |
|
| 388 | { |
|
| 389 | ||
| 390 | // query whether or not the header is available |
|
| 391 | if ($this->hasHeader($name)) { |
|
| 392 | // load the key for the row |
|
| 393 | $headerValue = $this->getHeader($name); |
|
| 394 | ||
| 395 | // query whether the rows column has a vaild value |
|
| 396 | return (isset($this->row[$headerValue]) && $this->row[$headerValue] != ''); |
|
| 397 | } |
|
| 398 | ||
| 399 | // return FALSE if not |
|
| 400 | return false; |
|
| 401 | } |
|
| 402 | ||
| 403 | /** |
|
| 404 | * Set the value in the passed column name. |
|
| @@ 341-355 (lines=15) @@ | ||
| 338 | * |
|
| 339 | * @return boolean TRUE if the value is set, else FALSE |
|
| 340 | */ |
|
| 341 | public function hasValue($name) |
|
| 342 | { |
|
| 343 | ||
| 344 | // query whether or not the header is available |
|
| 345 | if ($this->hasHeader($name)) { |
|
| 346 | // load the key for the row |
|
| 347 | $headerValue = $this->getHeader($name); |
|
| 348 | ||
| 349 | // query whether the rows column has a vaild value |
|
| 350 | return (isset($this->row[$headerValue]) && $this->row[$headerValue] != ''); |
|
| 351 | } |
|
| 352 | ||
| 353 | // return FALSE if not |
|
| 354 | return false; |
|
| 355 | } |
|
| 356 | ||
| 357 | /** |
|
| 358 | * Set the value in the passed column name. |
|