@@ 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. |
@@ 134-153 (lines=20) @@ | ||
131 | * |
|
132 | * @return mixed A JForm object on success, false on failure or not ftp |
|
133 | */ |
|
134 | public function getFormFtp() |
|
135 | { |
|
136 | // Get the form. |
|
137 | $form = $this->loadForm('com_localise.ftp', 'ftp'); |
|
138 | ||
139 | if (empty($form)) |
|
140 | { |
|
141 | return false; |
|
142 | } |
|
143 | ||
144 | // Check for an error. |
|
145 | if (JError::isError($form)) |
|
146 | { |
|
147 | $this->setError($form->getMessage()); |
|
148 | ||
149 | return false; |
|
150 | } |
|
151 | ||
152 | return $form; |
|
153 | } |
|
154 | ||
155 | /** |
|
156 | * Method to get the language. |
@@ 763-782 (lines=20) @@ | ||
760 | * |
|
761 | * @return mixed A JForm object on success, false on failure or not ftp |
|
762 | */ |
|
763 | public function getFormFtp() |
|
764 | { |
|
765 | // Get the form. |
|
766 | $form = $this->loadForm('com_localise.ftp', 'ftp'); |
|
767 | ||
768 | if (empty($form)) |
|
769 | { |
|
770 | return false; |
|
771 | } |
|
772 | ||
773 | // Check for an error. |
|
774 | if (JError::isError($form)) |
|
775 | { |
|
776 | $this->setError($form->getMessage()); |
|
777 | ||
778 | return false; |
|
779 | } |
|
780 | ||
781 | return $form; |
|
782 | } |
|
783 | ||
784 | /** |
|
785 | * Method to allow derived classes to preprocess the form. |