framework/Web/UI/WebControls/TDataList.php 1 location
|
@@ 646-653 (lines=8) @@
|
| 643 |
|
* @param ITemplate $value the separator template |
| 644 |
|
* @throws TInvalidDataTypeException if the input is not an {@link ITemplate} or not null. |
| 645 |
|
*/ |
| 646 |
|
public function setSeparatorTemplate($value) |
| 647 |
|
{ |
| 648 |
|
if ($value instanceof ITemplate || $value === null) { |
| 649 |
|
$this->_separatorTemplate = $value; |
| 650 |
|
} else { |
| 651 |
|
throw new TInvalidDataTypeException('datalist_template_required', 'SeparatorTemplate'); |
| 652 |
|
} |
| 653 |
|
} |
| 654 |
|
|
| 655 |
|
/** |
| 656 |
|
* @return TTableItemStyle the style for separator |
framework/Web/UI/WebControls/TRepeater.php 1 location
|
@@ 397-404 (lines=8) @@
|
| 394 |
|
* @param ITemplate $value the separator template |
| 395 |
|
* @throws TInvalidDataTypeException if the input is not an {@link ITemplate} or not null. |
| 396 |
|
*/ |
| 397 |
|
public function setSeparatorTemplate($value) |
| 398 |
|
{ |
| 399 |
|
if ($value instanceof \Prado\Web\UI\ITemplate || $value === null) { |
| 400 |
|
$this->_separatorTemplate = $value; |
| 401 |
|
} else { |
| 402 |
|
throw new TInvalidDataTypeException('repeater_template_required', 'SeparatorTemplate'); |
| 403 |
|
} |
| 404 |
|
} |
| 405 |
|
|
| 406 |
|
/** |
| 407 |
|
* @return TControl the header item |