| @@ -1,0 +1,48 @@ | ||
| 1 | +<?php | |
| 2 | +/** | |
| 3 | + * @package VikBooking | |
| 4 | + * @subpackage com_vikbooking | |
| 5 | + * @author Alessio Gaggii - e4j - Extensionsforjoomla.com | |
| 6 | + * @copyright Copyright (C) 2018 e4j - Extensionsforjoomla.com. All rights reserved. | |
| 7 | + * @license GNU General Public License version 2 or later; see LICENSE | |
| 8 | + * @link https://vikwp.com | |
| 9 | + */ | |
| 10 | + | |
| 11 | +defined('ABSPATH') or die('No script kiddies please!'); | |
| 12 | + | |
| 13 | +jimport('joomla.application.component.view'); | |
| 14 | + | |
| 15 | +/** | |
| 16 | + * VikBooking Sample Data view. | |
| 17 | + * @wponly | |
| 18 | + * | |
| 19 | + * @since 1.3.9 | |
| 20 | + */ | |
| 21 | +class VikBookingViewSampledata extends JViewVikBooking | |
| 22 | +{ | |
| 23 | + /** | |
| 24 | + * @override | |
| 25 | + * View display method. | |
| 26 | + * | |
| 27 | + * @return void | |
| 28 | + */ | |
| 29 | + public function display($tpl = null) | |
| 30 | + { | |
| 31 | + $this->addToolbar(); | |
| 32 | + | |
| 33 | + // display parent | |
| 34 | + parent::display($tpl); | |
| 35 | + } | |
| 36 | + | |
| 37 | + /** | |
| 38 | + * Helper method to setup the toolbar. | |
| 39 | + * | |
| 40 | + * @return void | |
| 41 | + */ | |
| 42 | + public function addToolbar() | |
| 43 | + { | |
| 44 | + JToolbarHelper::title(JText::translate('VBO_SAMPLEDATA_MENU_TITLE')); | |
| 45 | + | |
| 46 | + JToolbarHelper::cancel('canceldash'); | |
| 47 | + } | |
| 48 | +} | |