| @@ 81-88 (lines=8) @@ | ||
| 78 | * |
|
| 79 | * @return bool |
|
| 80 | */ |
|
| 81 | public function getEntry($entryName) |
|
| 82 | { |
|
| 83 | if (!isset($this->nodes[$entryName]) || !is_null($this->nodes[$entryName])) { |
|
| 84 | return false; |
|
| 85 | } |
|
| 86 | ||
| 87 | return $this->nodes[$entryName]; |
|
| 88 | } |
|
| 89 | ||
| 90 | /** |
|
| 91 | * Check if a certain entry exists |
|
| @@ 97-105 (lines=9) @@ | ||
| 94 | * |
|
| 95 | * @return bool |
|
| 96 | */ |
|
| 97 | public function entryExists($entryName) |
|
| 98 | { |
|
| 99 | if (!isset($this->nodes[$entryName]) || !is_null($this->nodes[$entryName])) { |
|
| 100 | return false; |
|
| 101 | ||
| 102 | } else { |
|
| 103 | return true; |
|
| 104 | } |
|
| 105 | } |
|
| 106 | ||
| 107 | /** |
|
| 108 | * Will return true if all possible node entries contain data |
|