@@ 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. |
@@ 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. |