PluginProbe ʕ •ᴥ•ʔ
VikAppointments Services Booking Calendar / 1.2.21
VikAppointments Services Booking Calendar v1.2.21
1.2.21 1.2.20 trunk 1.2.17 1.2.18 1.2.19
vikappointments / site / helpers / libraries / import / classes / empgroups.php
vikappointments / site / helpers / libraries / import / classes Last commit date
cities.php 3 days ago coupons.php 3 days ago customers.php 3 days ago empgroups.php 3 days ago employees.php 3 days ago groups.php 3 days ago index.html 3 days ago locations.php 3 days ago optiongroups.php 3 days ago options.php 3 days ago reviews.php 3 days ago services.php 3 days ago states.php 3 days ago
empgroups.php
43 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.import.classes.groups');
15
16 /**
17 * Class used to handle an import event for the GROUPS.
18 *
19 * @see ImportObject
20 * @since 1.7.3
21 */
22 class ImportObjectEmpgroups extends ImportObjectGroups
23 {
24 /**
25 * Returns the file containing the sample data to import this type of object.
26 *
27 * @return mixed The file path if exists, otherwise false.
28 */
29 public function getSampleFile()
30 {
31 // store current sample type
32 $tmp = $this->type;
33 // temporarily overwrite type
34 $this->type = 'groups';
35 // get sample file of parent class
36 $sample = parent::getSampleFile();
37 // restore previous type
38 $this->type = $tmp;
39
40 return $sample;
41 }
42 }
43