rules
3 days ago
types
3 days ago
control.php
3 days ago
emptyloader.php
3 days ago
factory.php
3 days ago
field.php
3 days ago
index.html
3 days ago
loader.php
3 days ago
renderer.php
3 days ago
requestor.php
3 days ago
rule.php
3 days ago
emptyloader.php
34 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.customfields.loader'); |
| 15 | |
| 16 | /** |
| 17 | * Null pointer pattern to always return an empty list of custom fields. |
| 18 | * |
| 19 | * @since 1.7.7 |
| 20 | */ |
| 21 | final class VAPCustomFieldsEmptyLoader extends VAPCustomFieldsLoader |
| 22 | { |
| 23 | /** |
| 24 | * @inheritDoc |
| 25 | */ |
| 26 | public function fetch() |
| 27 | { |
| 28 | // reset instance to support new queries |
| 29 | $this->reset(); |
| 30 | |
| 31 | return []; |
| 32 | } |
| 33 | } |
| 34 |