@@ 35-59 (lines=25) @@ | ||
32 | * |
|
33 | * @return void |
|
34 | */ |
|
35 | public function display($tpl = null) |
|
36 | { |
|
37 | jimport('joomla.client.helper'); |
|
38 | ||
39 | // Get the data |
|
40 | $this->state = $this->get('State'); |
|
41 | $this->item = $this->get('Item'); |
|
42 | $this->form = $this->get('Form'); |
|
43 | $this->formftp = $this->get('FormFtp'); |
|
44 | $this->ftp = JClientHelper::setCredentialsFromRequest('ftp'); |
|
45 | ||
46 | // Check for errors. |
|
47 | if (count($errors = $this->get('Errors'))) |
|
48 | { |
|
49 | JError::raiseError(500, implode("\n", $errors)); |
|
50 | ||
51 | return false; |
|
52 | } |
|
53 | ||
54 | // Set the toolbar |
|
55 | $this->addToolbar(); |
|
56 | ||
57 | // Display the view |
|
58 | parent::display($tpl); |
|
59 | } |
|
60 | ||
61 | /** |
|
62 | * Add the page title and toolbar. |
@@ 35-62 (lines=28) @@ | ||
32 | * |
|
33 | * @return void |
|
34 | */ |
|
35 | public function display($tpl = null) |
|
36 | { |
|
37 | jimport('joomla.client.helper'); |
|
38 | ||
39 | // Get the data |
|
40 | $this->state = $this->get('State'); |
|
41 | $this->item = $this->get('Item'); |
|
42 | $this->form = $this->get('Form'); |
|
43 | $this->formftp = $this->get('FormFtp'); |
|
44 | $this->ftp = JClientHelper::setCredentialsFromRequest('ftp'); |
|
45 | ||
46 | // Check for errors. |
|
47 | if (count($errors = $this->get('Errors'))) |
|
48 | { |
|
49 | JError::raiseError(500, implode("\n", $errors)); |
|
50 | ||
51 | return false; |
|
52 | } |
|
53 | ||
54 | // Set the toolbar |
|
55 | $this->addToolbar(); |
|
56 | ||
57 | // Prepare the document |
|
58 | $this->prepareDocument(); |
|
59 | ||
60 | // Display the view |
|
61 | parent::display($tpl); |
|
62 | } |
|
63 | ||
64 | /** |
|
65 | * Add the page title and toolbar. |
@@ 37-64 (lines=28) @@ | ||
34 | * |
|
35 | * @return void |
|
36 | */ |
|
37 | public function display($tpl = null) |
|
38 | { |
|
39 | // Get the data |
|
40 | $this->items = $this->get('Items'); |
|
41 | $this->pagination = $this->get('Pagination'); |
|
42 | $this->state = $this->get('State'); |
|
43 | $this->form = $this->get('Form'); |
|
44 | ||
45 | LocaliseHelper::addSubmenu('packages'); |
|
46 | ||
47 | // Check for errors. |
|
48 | if (count($errors = $this->get('Errors'))) |
|
49 | { |
|
50 | JError::raiseError(500, implode('<br />', $errors)); |
|
51 | ||
52 | return false; |
|
53 | } |
|
54 | ||
55 | // Set the toolbar |
|
56 | $this->addToolbar(); |
|
57 | $this->sidebar = JHtmlSidebar::render(); |
|
58 | ||
59 | // Prepare the document |
|
60 | $this->prepareDocument(); |
|
61 | ||
62 | // Display the view |
|
63 | parent::display($tpl); |
|
64 | } |
|
65 | ||
66 | /** |
|
67 | * Prepare Document |
@@ 35-59 (lines=25) @@ | ||
32 | * |
|
33 | * @return void |
|
34 | */ |
|
35 | public function display($tpl = null) |
|
36 | { |
|
37 | jimport('joomla.client.helper'); |
|
38 | ||
39 | // Get the data |
|
40 | $this->state = $this->get('State'); |
|
41 | $this->item = $this->get('Item'); |
|
42 | $this->form = $this->get('Form'); |
|
43 | $this->formftp = $this->get('FormFtp'); |
|
44 | $this->ftp = JClientHelper::setCredentialsFromRequest('ftp'); |
|
45 | ||
46 | // Check for errors. |
|
47 | if (count($errors = $this->get('Errors'))) |
|
48 | { |
|
49 | JError::raiseError(500, implode("\n", $errors)); |
|
50 | ||
51 | return false; |
|
52 | } |
|
53 | ||
54 | // Set the toolbar |
|
55 | $this->addToolbar(); |
|
56 | ||
57 | // Display the view |
|
58 | parent::display($tpl); |
|
59 | } |
|
60 | ||
61 | /** |
|
62 | * Add the page title and toolbar. |