@@ 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. |
@@ 762-781 (lines=20) @@ | ||
759 | * |
|
760 | * @return mixed A JForm object on success, false on failure or not ftp |
|
761 | */ |
|
762 | public function getFormFtp() |
|
763 | { |
|
764 | // Get the form. |
|
765 | $form = $this->loadForm('com_localise.ftp', 'ftp'); |
|
766 | ||
767 | if (empty($form)) |
|
768 | { |
|
769 | return false; |
|
770 | } |
|
771 | ||
772 | // Check for an error. |
|
773 | if (JError::isError($form)) |
|
774 | { |
|
775 | $this->setError($form->getMessage()); |
|
776 | ||
777 | return false; |
|
778 | } |
|
779 | ||
780 | return $form; |
|
781 | } |
|
782 | ||
783 | /** |
|
784 | * Method to allow derived classes to preprocess the form. |