| @@ 121-132 (lines=12) @@ | ||
| 118 | * @param mixed $identifier |
|
| 119 | * @return mixed |
|
| 120 | */ |
|
| 121 | public function get( $identifier ) { |
|
| 122 | $this->rewind(); |
|
| 123 | while ( $this->valid() ) { |
|
| 124 | if ( $identifier === $this->getInfo() ) { |
|
| 125 | $object = $this->current(); |
|
| 126 | $this->rewind(); |
|
| 127 | return $object; |
|
| 128 | } |
|
| 129 | $this->next(); |
|
| 130 | } |
|
| 131 | return null; |
|
| 132 | } |
|
| 133 | ||
| 134 | ||
| 135 | ||
| @@ 146-156 (lines=11) @@ | ||
| 143 | * @param mixed $identifier |
|
| 144 | * @return bool |
|
| 145 | */ |
|
| 146 | public function has( $identifier ) { |
|
| 147 | $this->rewind(); |
|
| 148 | while ( $this->valid() ) { |
|
| 149 | if ( $identifier === $this->getInfo() ) { |
|
| 150 | $this->rewind(); |
|
| 151 | return true; |
|
| 152 | } |
|
| 153 | $this->next(); |
|
| 154 | } |
|
| 155 | return false; |
|
| 156 | } |
|
| 157 | ||
| 158 | ||
| 159 | ||
| @@ 223-232 (lines=10) @@ | ||
| 220 | * @param mixed $identifier |
|
| 221 | * @return boolean |
|
| 222 | */ |
|
| 223 | public function setCurrent( $identifier ) { |
|
| 224 | $this->rewind(); |
|
| 225 | while ( $this->valid() ) { |
|
| 226 | if ( $identifier === $this->getInfo() ) { |
|
| 227 | return true; |
|
| 228 | } |
|
| 229 | $this->next(); |
|
| 230 | } |
|
| 231 | return false; |
|
| 232 | } |
|
| 233 | ||
| 234 | ||
| 235 | ||
| @@ 43-55 (lines=13) @@ | ||
| 40 | * @param mixed $identifier |
|
| 41 | * @return boolean |
|
| 42 | */ |
|
| 43 | public function unRegisterBlock($identifier) |
|
| 44 | { |
|
| 45 | $this->rewind(); |
|
| 46 | while ($this->valid()) { |
|
| 47 | if ($identifier === $this->getInfo()) { |
|
| 48 | $object = $this->current(); |
|
| 49 | $this->rewind(); |
|
| 50 | return $object->unRegisterBlock(); |
|
| 51 | } |
|
| 52 | $this->next(); |
|
| 53 | } |
|
| 54 | return false; |
|
| 55 | } |
|
| 56 | ||
| 57 | ||
| 58 | /** |
|