| @@ 103-118 (lines=16) @@ | ||
| 100 | * |
|
| 101 | * @return mixed The data for the form. |
|
| 102 | */ |
|
| 103 | protected function loadFormData() |
|
| 104 | { |
|
| 105 | // Initialise variables. |
|
| 106 | $app = JFactory::getApplication(); |
|
| 107 | ||
| 108 | // Check the session for previously entered form data. |
|
| 109 | $data = $app->getUserState('com_localise.edit.package.data', array()); |
|
| 110 | ||
| 111 | // Get the package data. |
|
| 112 | if (empty($data)) |
|
| 113 | { |
|
| 114 | $data = $this->getItem(); |
|
| 115 | } |
|
| 116 | ||
| 117 | return $data; |
|
| 118 | } |
|
| 119 | ||
| 120 | /** |
|
| 121 | * Method to get the ftp form. |
|
| @@ 103-118 (lines=16) @@ | ||
| 100 | * |
|
| 101 | * @return mixed The data for the form. |
|
| 102 | */ |
|
| 103 | protected function loadFormData() |
|
| 104 | { |
|
| 105 | // Initialise variables. |
|
| 106 | $app = JFactory::getApplication(); |
|
| 107 | ||
| 108 | // Check the session for previously entered form data. |
|
| 109 | $data = $app->getUserState('com_localise.edit.packagefile.data', array()); |
|
| 110 | ||
| 111 | // Get the package data. |
|
| 112 | if (empty($data)) |
|
| 113 | { |
|
| 114 | $data = $this->getItem(); |
|
| 115 | } |
|
| 116 | ||
| 117 | return $data; |
|
| 118 | } |
|
| 119 | ||
| 120 | /** |
|
| 121 | * Method to get the ftp form. |
|