| @@ 121-140 (lines=20) @@ | ||
| 118 | * | |
| 119 | * @return mixed A JForm object on success, false on failure or not ftp | |
| 120 | */ | |
| 121 | public function getFormFtp() | |
| 122 | 	{ | |
| 123 | // Get the form. | |
| 124 | 		$form = $this->loadForm('com_localise.ftp', 'ftp'); | |
| 125 | ||
| 126 | if (empty($form)) | |
| 127 | 		{ | |
| 128 | return false; | |
| 129 | } | |
| 130 | ||
| 131 | // Check for an error. | |
| 132 | if (JError::isError($form)) | |
| 133 | 		{ | |
| 134 | $this->setError($form->getMessage()); | |
| 135 | ||
| 136 | return false; | |
| 137 | } | |
| 138 | ||
| 139 | return $form; | |
| 140 | } | |
| 141 | ||
| 142 | /** | |
| 143 | * Method to get the language. | |
| @@ 125-144 (lines=20) @@ | ||
| 122 | * | |
| 123 | * @return mixed A JForm object on success, false on failure or not ftp | |
| 124 | */ | |
| 125 | public function getFormFtp() | |
| 126 | 	{ | |
| 127 | // Get the form. | |
| 128 | 		$form = $this->loadForm('com_localise.ftp', 'ftp'); | |
| 129 | ||
| 130 | if (empty($form)) | |
| 131 | 		{ | |
| 132 | return false; | |
| 133 | } | |
| 134 | ||
| 135 | // Check for an error. | |
| 136 | if (JError::isError($form)) | |
| 137 | 		{ | |
| 138 | $this->setError($form->getMessage()); | |
| 139 | ||
| 140 | return false; | |
| 141 | } | |
| 142 | ||
| 143 | return $form; | |
| 144 | } | |
| 145 | ||
| 146 | /** | |
| 147 | * Method to get the package. | |
| @@ 125-144 (lines=20) @@ | ||
| 122 | * | |
| 123 | * @return mixed A JForm object on success, false on failure or not ftp | |
| 124 | */ | |
| 125 | public function getFormFtp() | |
| 126 | 	{ | |
| 127 | // Get the form. | |
| 128 | 		$form = $this->loadForm('com_localise.ftp', 'ftp'); | |
| 129 | ||
| 130 | if (empty($form)) | |
| 131 | 		{ | |
| 132 | return false; | |
| 133 | } | |
| 134 | ||
| 135 | // Check for an error. | |
| 136 | if (JError::isError($form)) | |
| 137 | 		{ | |
| 138 | $this->setError($form->getMessage()); | |
| 139 | ||
| 140 | return false; | |
| 141 | } | |
| 142 | ||
| 143 | return $form; | |
| 144 | } | |
| 145 | ||
| 146 | /** | |
| 147 | * Method to get the package. | |
| @@ 759-778 (lines=20) @@ | ||
| 756 | * | |
| 757 | * @return mixed A JForm object on success, false on failure or not ftp | |
| 758 | */ | |
| 759 | public function getFormFtp() | |
| 760 | 	{ | |
| 761 | // Get the form. | |
| 762 | 		$form = $this->loadForm('com_localise.ftp', 'ftp'); | |
| 763 | ||
| 764 | if (empty($form)) | |
| 765 | 		{ | |
| 766 | return false; | |
| 767 | } | |
| 768 | ||
| 769 | // Check for an error. | |
| 770 | if (JError::isError($form)) | |
| 771 | 		{ | |
| 772 | $this->setError($form->getMessage()); | |
| 773 | ||
| 774 | return false; | |
| 775 | } | |
| 776 | ||
| 777 | return $form; | |
| 778 | } | |
| 779 | ||
| 780 | /** | |
| 781 | * Method to allow derived classes to preprocess the form. | |