PluginProbe ʕ •ᴥ•ʔ
VikAppointments Services Booking Calendar / trunk
VikAppointments Services Booking Calendar vtrunk
trunk 1.2.17 1.2.18 1.2.19
vikappointments / admin / views / printorders / view.html.php
vikappointments / admin / views / printorders Last commit date
tmpl 3 years ago index.html 6 years ago view.html.php 4 years ago
view.html.php
50 lines
1 <?php
2 /**
3 * @package VikAppointments
4 * @subpackage core
5 * @author E4J s.r.l.
6 * @copyright Copyright (C) 2021 E4J s.r.l. All Rights Reserved.
7 * @license http://www.gnu.org/licenses/gpl-2.0.html GNU/GPL
8 * @link https://vikwp.com
9 */
10
11 // No direct access
12 defined('ABSPATH') or die('No script kiddies please!');
13
14 VAPLoader::import('libraries.order.factory');
15
16 /**
17 * VikAppointments print orders view.
18 *
19 * @since 1.1
20 */
21 class VikAppointmentsViewprintorders extends JViewVAP
22 {
23 /**
24 * VikAppointments view display method.
25 *
26 * @return void
27 */
28 function display($tpl = null)
29 {
30 $input = JFactory::getApplication()->input;
31 $input->set('tmpl', 'component');
32
33 $ids = $input->getUint('cid', array());
34
35 // get current language tag
36 $tag = JFactory::getLanguage()->getTag();
37
38 $this->rows = array();
39
40 foreach ($ids as $id)
41 {
42 // load order details into the current language
43 $this->rows[] = VAPOrderFactory::getAppointments($id, $tag);
44 }
45
46 // display the template
47 parent::display($tpl);
48 }
49 }
50