| 5 |
* |
* |
| 6 |
* @author Andreas Motl <andreas.motl@ilo.de> |
* @author Andreas Motl <andreas.motl@ilo.de> |
| 7 |
* @package org.netfrag.glib |
* @package org.netfrag.glib |
| 8 |
* @module php |
* @name php |
| 9 |
* |
* |
| 10 |
*/ |
*/ |
| 11 |
|
|
| 13 |
* $Id$ |
* $Id$ |
| 14 |
* |
* |
| 15 |
* $Log$ |
* $Log$ |
| 16 |
|
* Revision 1.5 2003/03/10 22:58:46 joko |
| 17 |
|
* + fixed metadata for phpDocumentor |
| 18 |
|
* |
| 19 |
|
* Revision 1.4 2003/03/05 23:16:46 joko |
| 20 |
|
* updated docu - phpDocumentor is very strict about its 'blocks'... |
| 21 |
|
* |
| 22 |
|
* Revision 1.3 2003/03/05 18:54:41 joko |
| 23 |
|
* updated docu - phpDocumentor is very strict about its 'blocks'... |
| 24 |
|
* |
| 25 |
* Revision 1.2 2003/03/05 11:58:49 joko |
* Revision 1.2 2003/03/05 11:58:49 joko |
| 26 |
* modified is_hash, mkInstance and others |
* modified is_hash, mkInstance and others |
| 27 |
* |
* |
| 33 |
|
|
| 34 |
|
|
| 35 |
/** |
/** |
|
* --- php extension functions |
|
|
* |
|
|
* x php::Dumper |
|
|
* x php::session_register_safe |
|
|
* x php::array_init |
|
|
* x php::is_hash |
|
|
* x php::array_join_merge |
|
|
* o php::merge |
|
|
* o php::merge_to |
|
|
* x php::loadModule |
|
|
* x php::mkInstance |
|
|
* |
|
|
* @author Andreas Motl <andreas.motl@ilo.de> |
|
|
* @copyright (c) 2003 - All Rights reserved. |
|
|
* @license GNU LGPL (GNU Lesser General Public License) |
|
|
* |
|
|
* @author-url http://www.netfrag.org/~joko/ |
|
|
* @license-url http://www.gnu.org/licenses/lgpl.txt |
|
|
* |
|
|
* @package org.netfrag.glib |
|
|
* @module php |
|
|
* |
|
|
*/ |
|
|
|
|
|
/** |
|
|
* Todo: |
|
|
* o establish mkInstance here (move from DesignPattern::Object::mkObject) |
|
|
* o establish loadModule here (move from DesignPattern::Object::loadModule) |
|
|
* |
|
|
* Ideas: |
|
|
* o php::create_redirector_function('func', array( type => 'lamba|function|method', name => 'Abc::do_xyz') ) |
|
|
* o php::create_redirector_method('class|obj_ref', 'method', $target) |
|
|
* o php::export_symbol(from, to) (maybe solves above two) |
|
|
* |
|
|
*/ |
|
|
|
|
|
|
|
|
|
|
|
/** |
|
| 36 |
* --- shortcut functions |
* --- shortcut functions |
| 37 |
* Is there a mechanism in php to 'export' these methods |
* Is there a mechanism in php to 'export' these methods |
| 38 |
* to the global symbol table automagically? |
* to the global symbol table automagically? |
| 49 |
* TODO: $php::EXPORT_OK = array('Dumper', 'session_register_safe', 'mkObject', 'is_hash', 'merge_to'); |
* TODO: $php::EXPORT_OK = array('Dumper', 'session_register_safe', 'mkObject', 'is_hash', 'merge_to'); |
| 50 |
* |
* |
| 51 |
*/ |
*/ |
|
|
|
| 52 |
// this is (and will probably always be) required by the "Exporter" |
// this is (and will probably always be) required by the "Exporter" |
| 53 |
function &Dumper() { |
function &Dumper() { |
| 54 |
$args = func_get_args(); |
$args = func_get_args(); |
| 74 |
|
|
| 75 |
|
|
| 76 |
/** |
/** |
| 77 |
* --- php extension functions lying in the php:: namespace |
* --- php extension functions living in the php:: namespace |
| 78 |
|
* |
| 79 |
|
* <pre> |
| 80 |
|
* x php::Dumper |
| 81 |
|
* x php::session_register_safe |
| 82 |
|
* x php::array_init |
| 83 |
|
* x php::is_hash |
| 84 |
|
* x php::array_join_merge |
| 85 |
|
* o php::merge |
| 86 |
|
* o php::merge_to |
| 87 |
|
* x php::loadModule |
| 88 |
|
* x php::mkInstance |
| 89 |
|
* </pre> |
| 90 |
|
* |
| 91 |
|
* @author Andreas Motl <andreas.motl@ilo.de> |
| 92 |
|
* @copyright (c) 2003 - All Rights reserved. |
| 93 |
|
* @license GNU LGPL (GNU Lesser General Public License) |
| 94 |
|
* |
| 95 |
|
* @link http://www.netfrag.org/~joko/ |
| 96 |
|
* @link http://www.gnu.org/licenses/lgpl.txt |
| 97 |
|
* |
| 98 |
|
* @package org.netfrag.glib |
| 99 |
|
* @name php |
| 100 |
|
* |
| 101 |
|
* Todo: |
| 102 |
|
* @todo (o) establish mkInstance here (move from DesignPattern::Object::mkObject) |
| 103 |
|
* @todo (o) establish loadModule here (move from DesignPattern::Object::loadModule) |
| 104 |
|
* |
| 105 |
|
* Ideas: |
| 106 |
|
* @todo (o) php::create_redirector_function('func', array( type => 'lamba|function|method', name => 'Abc::do_xyz') ) |
| 107 |
|
* @todo (o) php::create_redirector_method('class|obj_ref', 'method', $target) |
| 108 |
|
* @todo (o) php::export_symbol(from, to) (maybe solves above two) |
| 109 |
* |
* |
| 110 |
*/ |
*/ |
|
|
|
|
|
|
| 111 |
class php { |
class php { |
| 112 |
|
|
| 113 |
|
|