| @@ 75-90 (lines=16) @@ | ||
| 72 | return $this->structure; |
|
| 73 | } |
|
| 74 | ||
| 75 | public function parameters() { |
|
| 76 | if ( empty($this->parameters) ) { |
|
| 77 | $structure = $this->structure(); |
|
| 78 | ||
| 79 | $this->parameters['bytes'] = @$structure->bytes; |
|
| 80 | ||
| 81 | foreach ((array) @$structure->parameters as $param) { |
|
| 82 | $this->parameters[ strtolower($param->attribute) ] = $param->value; |
|
| 83 | } |
|
| 84 | foreach ((array) @$structure->dparameters as $param) { |
|
| 85 | $this->parameters[ strtolower($param->attribute) ] = $param->value; |
|
| 86 | } |
|
| 87 | } |
|
| 88 | ||
| 89 | return $this->parameters; |
|
| 90 | } |
|
| 91 | ||
| 92 | public function parameter( $name ) { |
|
| 93 | $parameters = $this->parameters(); |
|
| @@ 159-174 (lines=16) @@ | ||
| 156 | return ''; |
|
| 157 | } |
|
| 158 | ||
| 159 | public function parameters() { |
|
| 160 | if ( empty($this->parameters) ) { |
|
| 161 | $structure = $this->structure(); |
|
| 162 | ||
| 163 | $this->parameters['bytes'] = @$structure->bytes; |
|
| 164 | ||
| 165 | foreach ((array) @$structure->parameters as $param) { |
|
| 166 | $this->parameters[ strtolower($param->attribute) ] = $param->value; |
|
| 167 | } |
|
| 168 | foreach ((array) @$structure->dparameters as $param) { |
|
| 169 | $this->parameters[ strtolower($param->attribute) ] = $param->value; |
|
| 170 | } |
|
| 171 | } |
|
| 172 | ||
| 173 | return $this->parameters; |
|
| 174 | } |
|
| 175 | ||
| 176 | public function simpleStructure() { |
|
| 177 | $parts = []; |
|