<?php
/* --------------------------------------------------------------
Registry.inc.php 2010-11-16 gm
Gambio GmbH
http://www.gambio.de
Copyright (c) 2010 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])
*/
var $v_values_array = array();
/*
* constructor
*/
function Registry()
{
}
/*
* 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
*/
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
*/
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
*/
function get_all_data()
{
return $this->v_values_array;
}
}
?>| nama | waktu | ukuran | owner | perm | aksi |
|---|---|---|---|---|---|
| .. | |||||
| CachedDirectory.inc.php | 2013-11-12 21:11 | 6.11 KB | 76129f60960:kunden | -xw-x----- | |
| ClassOverloadRegistry.inc.php | 2013-11-12 21:11 | 4.49 KB | 76129f60960:kunden | -xw-x----- | |
| ClassRegistry.inc.php | 2013-11-12 21:11 | 2.28 KB | 76129f60960:kunden | -xw-x----- | |
| DataCache.inc.php | 2013-11-12 21:11 | 7.25 KB | 76129f60960:kunden | -xw-x----- | |
| Debugger.inc.php | 2013-11-12 21:11 | 1.84 KB | 76129f60960:kunden | -xw-x----- | |
| MainAutoloader.inc.php | 2013-11-12 21:11 | 3.65 KB | 76129f60960:kunden | -xw-x----- | |
| MainFactory.inc.php | 2013-11-12 21:11 | 7.5 KB | 76129f60960:kunden | -xw-x----- | |
| Registry.inc.php | 2013-11-12 21:11 | 1.34 KB | 76129f60960:kunden | -xw-x----- | |
| StopWatch.inc.php | 2013-11-12 21:11 | 3.22 KB | 76129f60960:kunden | -xw-x----- | |
| index.html | 2013-11-12 21:11 | 13 B | 76129f60960:kunden | -xw-x----- | |