| @@ 340-354 (lines=15) @@ | ||
| 337 | * |
|
| 338 | * @return boolean TRUE if the value is set, else FALSE |
|
| 339 | */ |
|
| 340 | public function hasValue($name) |
|
| 341 | { |
|
| 342 | ||
| 343 | // query whether or not the header is available |
|
| 344 | if ($this->hasHeader($name)) { |
|
| 345 | // load the key for the row |
|
| 346 | $headerValue = $this->getHeader($name); |
|
| 347 | ||
| 348 | // query whether the rows column has a vaild value |
|
| 349 | return (isset($this->row[$headerValue]) && $this->row[$headerValue] != ''); |
|
| 350 | } |
|
| 351 | ||
| 352 | // return FALSE if not |
|
| 353 | return false; |
|
| 354 | } |
|
| 355 | ||
| 356 | /** |
|
| 357 | * Set the value in the passed column name. |
|
| @@ 412-426 (lines=15) @@ | ||
| 409 | * |
|
| 410 | * @return boolean TRUE if the value is set, else FALSE |
|
| 411 | */ |
|
| 412 | protected function hasValue($name) |
|
| 413 | { |
|
| 414 | ||
| 415 | // query whether or not the header is available |
|
| 416 | if ($this->hasHeader($name)) { |
|
| 417 | // load the key for the row |
|
| 418 | $headerValue = $this->getHeader($name); |
|
| 419 | ||
| 420 | // query whether the rows column has a vaild value |
|
| 421 | return (isset($this->row[$headerValue]) && $this->row[$headerValue] != ''); |
|
| 422 | } |
|
| 423 | ||
| 424 | // return FALSE if not |
|
| 425 | return false; |
|
| 426 | } |
|
| 427 | ||
| 428 | /** |
|
| 429 | * Set the value in the passed column name. |
|