| @@ 146-156 (lines=11) @@ | ||
| 143 | * place holders during rendering. |
|
| 144 | * @return TAttributeCollection the list of custom parameters |
|
| 145 | */ |
|
| 146 | public function getParameters() |
|
| 147 | { |
|
| 148 | if ($parameters = $this->getViewState('Parameters', null)) { |
|
| 149 | return $parameters; |
|
| 150 | } else { |
|
| 151 | $parameters = new TAttributeCollection; |
|
| 152 | $parameters->setCaseSensitive(true); |
|
| 153 | $this->setViewState('Parameters', $parameters, null); |
|
| 154 | return $parameters; |
|
| 155 | } |
|
| 156 | } |
|
| 157 | ||
| 158 | /** |
|
| 159 | * @param mixed $name |
|
| @@ 639-648 (lines=10) @@ | ||
| 636 | * as HTML tags' attributes. |
|
| 637 | * @return TAttributeCollection the list of custom attributes |
|
| 638 | */ |
|
| 639 | public function getAttributes() |
|
| 640 | { |
|
| 641 | if ($attributes = $this->getViewState('Attributes', null)) { |
|
| 642 | return $attributes; |
|
| 643 | } else { |
|
| 644 | $attributes = new TAttributeCollection; |
|
| 645 | $this->setViewState('Attributes', $attributes, null); |
|
| 646 | return $attributes; |
|
| 647 | } |
|
| 648 | } |
|
| 649 | ||
| 650 | /** |
|
| 651 | * @param mixed $name |
|
| @@ 365-374 (lines=10) @@ | ||
| 362 | /** |
|
| 363 | * @return TMap list of attributes to be rendered for label beside the checkbox |
|
| 364 | */ |
|
| 365 | public function getLabelAttributes() |
|
| 366 | { |
|
| 367 | if ($attributes = $this->getViewState('LabelAttributes', null)) { |
|
| 368 | return $attributes; |
|
| 369 | } else { |
|
| 370 | $attributes = new TAttributeCollection; |
|
| 371 | $this->setViewState('LabelAttributes', $attributes, null); |
|
| 372 | return $attributes; |
|
| 373 | } |
|
| 374 | } |
|
| 375 | ||
| 376 | /** |
|
| 377 | * @return TMap list of attributes to be rendered for the checkbox |
|
| @@ 379-388 (lines=10) @@ | ||
| 376 | /** |
|
| 377 | * @return TMap list of attributes to be rendered for the checkbox |
|
| 378 | */ |
|
| 379 | public function getInputAttributes() |
|
| 380 | { |
|
| 381 | if ($attributes = $this->getViewState('InputAttributes', null)) { |
|
| 382 | return $attributes; |
|
| 383 | } else { |
|
| 384 | $attributes = new TAttributeCollection; |
|
| 385 | $this->setViewState('InputAttributes', $attributes, null); |
|
| 386 | return $attributes; |
|
| 387 | } |
|
| 388 | } |
|
| 389 | ||
| 390 | /** |
|
| 391 | * @return string the value attribute to be rendered |
|
| @@ 238-247 (lines=10) @@ | ||
| 235 | * as HTML tags' attributes. |
|
| 236 | * @return TAttributeCollection the list of custom attributes |
|
| 237 | */ |
|
| 238 | public function getAttributes() |
|
| 239 | { |
|
| 240 | if ($attributes = $this->getViewState('Attributes', null)) { |
|
| 241 | return $attributes; |
|
| 242 | } else { |
|
| 243 | $attributes = new TAttributeCollection; |
|
| 244 | $this->setViewState('Attributes', $attributes, null); |
|
| 245 | return $attributes; |
|
| 246 | } |
|
| 247 | } |
|
| 248 | ||
| 249 | /** |
|
| 250 | * @param mixed $name |
|
| @@ 146-155 (lines=10) @@ | ||
| 143 | * Returns the list of parameters to be applied to the transform. |
|
| 144 | * @return TAttributeCollection the list of custom parameters |
|
| 145 | */ |
|
| 146 | public function getParameters() |
|
| 147 | { |
|
| 148 | if ($params = $this->getViewState('Parameters', null)) { |
|
| 149 | return $params; |
|
| 150 | } else { |
|
| 151 | $params = new TAttributeCollection(); |
|
| 152 | $this->setViewState('Parameters', $params, null); |
|
| 153 | return $params; |
|
| 154 | } |
|
| 155 | } |
|
| 156 | ||
| 157 | private function getTransformXmlDocument() |
|
| 158 | { |
|