2023-03-21 22:52:57 +00:00
|
|
|
<?php
|
|
|
|
/**
|
|
|
|
* @package Joomla.Component.Builder
|
|
|
|
*
|
|
|
|
* @created 4th September, 2022
|
|
|
|
* @author Llewellyn van der Merwe <https://dev.vdm.io>
|
|
|
|
* @git Joomla Component Builder <https://git.vdm.dev/joomla/Component-Builder>
|
|
|
|
* @copyright Copyright (C) 2015 Vast Development Method. All rights reserved.
|
|
|
|
* @license GNU General Public License version 2 or later; see LICENSE.txt
|
|
|
|
*/
|
|
|
|
|
2023-10-04 18:28:29 +00:00
|
|
|
namespace VDM\Joomla\Componentbuilder\Compiler\Builder;
|
2023-03-21 22:52:57 +00:00
|
|
|
|
|
|
|
|
2023-10-10 09:39:16 +00:00
|
|
|
use VDM\Joomla\Abstraction\Registry;
|
2023-03-21 22:52:57 +00:00
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Compiler Builder Update Mysql
|
|
|
|
*
|
|
|
|
* @since 3.2.0
|
|
|
|
*/
|
2023-10-10 09:39:16 +00:00
|
|
|
class UpdateMysql extends Registry
|
2023-03-21 22:52:57 +00:00
|
|
|
{
|
|
|
|
/**
|
2023-10-10 09:39:16 +00:00
|
|
|
* Get that the active keys from a path
|
2023-03-21 22:52:57 +00:00
|
|
|
*
|
2023-10-10 09:39:16 +00:00
|
|
|
* @param string $path The path to determine the location.
|
2023-03-21 22:52:57 +00:00
|
|
|
*
|
2023-10-10 09:39:16 +00:00
|
|
|
* @return array|null The valid array of keys
|
2023-03-21 22:52:57 +00:00
|
|
|
* @since 3.2.0
|
|
|
|
*/
|
2023-10-10 09:39:16 +00:00
|
|
|
protected function getActiveKeys(string $path): ?array
|
2023-03-21 22:52:57 +00:00
|
|
|
{
|
2023-10-10 09:39:16 +00:00
|
|
|
if (!empty($path))
|
|
|
|
{
|
|
|
|
return [preg_replace('/\s+/', '', $path)];
|
|
|
|
}
|
|
|
|
|
|
|
|
return null;
|
|
|
|
}
|
2023-03-21 22:52:57 +00:00
|
|
|
}
|
|
|
|
|