| @@ 425-442 (lines=18) @@ | ||
| 422 | case 'VERSION': |
|
| 423 | return ( !empty( $this->version )) ? $this->version : null; |
|
| 424 | break; |
|
| 425 | default: |
|
| 426 | if( $propName != 'X-PROP' ) { |
|
| 427 | if( !isset( $this->xprop[$propName] )) return FALSE; |
|
| 428 | return ( $inclParam ) ? array( $propName, $this->xprop[$propName] ) |
|
| 429 | : array( $propName, $this->xprop[$propName]['value'] ); |
|
| 430 | } |
|
| 431 | else { |
|
| 432 | if( empty( $this->xprop )) return FALSE; |
|
| 433 | $xpropno = 0; |
|
| 434 | foreach( $this->xprop as $xpropkey => $xpropvalue ) { |
|
| 435 | if( $propix == $xpropno ) |
|
| 436 | return ( $inclParam ) ? array( $xpropkey, $this->xprop[$xpropkey] ) |
|
| 437 | : array( $xpropkey, $this->xprop[$xpropkey]['value'] ); |
|
| 438 | else |
|
| 439 | $xpropno++; |
|
| 440 | } |
|
| 441 | return FALSE; // not found ?? |
|
| 442 | } |
|
| 443 | } |
|
| 444 | return FALSE; |
|
| 445 | } |
|
| @@ 6170-6187 (lines=18) @@ | ||
| 6167 | case 'URL': |
|
| 6168 | if( !empty( $this->url['value'] )) return ( $inclParam ) ? $this->url : $this->url['value']; |
|
| 6169 | break; |
|
| 6170 | default: |
|
| 6171 | if( $propName != 'X-PROP' ) { |
|
| 6172 | if( !isset( $this->xprop[$propName] )) return FALSE; |
|
| 6173 | return ( $inclParam ) ? array( $propName, $this->xprop[$propName] ) |
|
| 6174 | : array( $propName, $this->xprop[$propName]['value'] ); |
|
| 6175 | } |
|
| 6176 | else { |
|
| 6177 | if( empty( $this->xprop )) return FALSE; |
|
| 6178 | $xpropno = 0; |
|
| 6179 | foreach( $this->xprop as $xpropkey => $xpropvalue ) { |
|
| 6180 | if( $propix == $xpropno ) |
|
| 6181 | return ( $inclParam ) ? array( $xpropkey, $this->xprop[$xpropkey] ) |
|
| 6182 | : array( $xpropkey, $this->xprop[$xpropkey]['value'] ); |
|
| 6183 | else |
|
| 6184 | $xpropno++; |
|
| 6185 | } |
|
| 6186 | return FALSE; // not found ?? |
|
| 6187 | } |
|
| 6188 | } |
|
| 6189 | return FALSE; |
|
| 6190 | } |
|