| Server IP : 85.158.181.41 / Your IP : 216.73.217.12 Web Server : Apache System : Linux cloud9-vm129 6.1.178+1-ph #ph SMP PREEMPT_DYNAMIC Wed Jul 29 09:00:54 UTC 2026 x86_64 User : moncbefd ( 1024) PHP Version : 7.3.33 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /home/moncbefd/www.moneta.at/system/core/ |
Upload File : |
<?php
/* --------------------------------------------------------------
Registry.inc.php 2017-09-28
Gambio GmbH
http://www.gambio.de
Copyright (c) 2017 Gambio GmbH
Released under the GNU General Public License (Version 2)
[http://www.gnu.org/licenses/gpl-2.0.html]
--------------------------------------------------------------
*/
class Registry
{
/*
* holding class-file-data (key[classname]=>value[path])
*/
public $v_values_array = array();
/*
* set new entry for class name (key) with path (value)
* @param string $p_name class name
* @param string $p_value path
* @return bool true:ok | false:error
*/
public function set($p_name, $p_value)
{
$this->v_values_array[$p_name] = $p_value;
return true;
}
/*
* get path (value) for given name (key)
* @param string $p_name class name
* @return mixed false:error | string:path for class
*/
public function get($p_name)
{
if (!empty($this->v_values_array[$p_name])) {
return $this->v_values_array[$p_name];
}
return NULL;
}
/*
* get the whole array with name and path informations
* @return array all data from path scan
*/
public function get_all_data()
{
return $this->v_values_array;
}
}