| @@ 1757-1768 (lines=12) @@ | ||
| 1754 | * @param array |
|
| 1755 | * @return int |
|
| 1756 | */ |
|
| 1757 | public function addArray($vals) |
|
| 1758 | { |
|
| 1759 | if ($this->mytype !== 0) |
|
| 1760 | { |
|
| 1761 | echo '<strong>XML_RPC_Values</strong>: already initialized as a ['.$this->kindOf().']<br />'; |
|
| 1762 | return 0; |
|
| 1763 | } |
|
| 1764 | ||
| 1765 | $this->mytype = $this->xmlrpcTypes['array']; |
|
| 1766 | $this->me['array'] = $vals; |
|
| 1767 | return 1; |
|
| 1768 | } |
|
| 1769 | ||
| 1770 | // -------------------------------------------------------------------- |
|
| 1771 | ||
| @@ 1778-1788 (lines=11) @@ | ||
| 1775 | * @param object |
|
| 1776 | * @return int |
|
| 1777 | */ |
|
| 1778 | public function addStruct($vals) |
|
| 1779 | { |
|
| 1780 | if ($this->mytype !== 0) |
|
| 1781 | { |
|
| 1782 | echo '<strong>XML_RPC_Values</strong>: already initialized as a ['.$this->kindOf().']<br />'; |
|
| 1783 | return 0; |
|
| 1784 | } |
|
| 1785 | $this->mytype = $this->xmlrpcTypes['struct']; |
|
| 1786 | $this->me['struct'] = $vals; |
|
| 1787 | return 1; |
|
| 1788 | } |
|
| 1789 | ||
| 1790 | // -------------------------------------------------------------------- |
|
| 1791 | ||