| @@ 638-646 (lines=9) @@ | ||
| 635 | * |
|
| 636 | * @return Response |
|
| 637 | */ |
|
| 638 | public function createInput($sParent, $sType, $sName, $sId) |
|
| 639 | { |
|
| 640 | $aAttributes = [ |
|
| 641 | 'id' => trim((string)$sParent, " \t"), |
|
| 642 | 'prop' => trim((string)$sId, " \t"), |
|
| 643 | 'type' => trim((string)$sType, " \t") |
|
| 644 | ]; |
|
| 645 | return $this->_addCommand('ci', $aAttributes, trim((string)$sName, " \t\n")); |
|
| 646 | } |
|
| 647 | ||
| 648 | /** |
|
| 649 | * Add a command to insert a new input element preceding the specified element |
|
| @@ 658-666 (lines=9) @@ | ||
| 655 | * |
|
| 656 | * @return Response |
|
| 657 | */ |
|
| 658 | public function insertInput($sBefore, $sType, $sName, $sId) |
|
| 659 | { |
|
| 660 | $aAttributes = [ |
|
| 661 | 'id' => trim((string)$sBefore, " \t"), |
|
| 662 | 'prop' => trim((string)$sId, " \t"), |
|
| 663 | 'type' => trim((string)$sType, " \t") |
|
| 664 | ]; |
|
| 665 | return $this->_addCommand('ii', $aAttributes, trim((string)$sName, " \t\n")); |
|
| 666 | } |
|
| 667 | ||
| 668 | /** |
|
| 669 | * Add a command to insert a new input element after the specified element |
|
| @@ 678-686 (lines=9) @@ | ||
| 675 | * |
|
| 676 | * @return Response |
|
| 677 | */ |
|
| 678 | public function insertInputAfter($sAfter, $sType, $sName, $sId) |
|
| 679 | { |
|
| 680 | $aAttributes = [ |
|
| 681 | 'id' => trim((string)$sAfter, " \t"), |
|
| 682 | 'prop' => trim((string)$sId, " \t"), |
|
| 683 | 'type' => trim((string)$sType, " \t") |
|
| 684 | ]; |
|
| 685 | return $this->_addCommand('iia', $aAttributes, trim((string)$sName, " \t\n")); |
|
| 686 | } |
|
| 687 | ||
| 688 | /** |
|
| 689 | * Add a command to set an event handler on the browser |
|