/[cvs]/nfo/php/libs/org.netfrag.glib/php_extensions.php
ViewVC logotype

Diff of /nfo/php/libs/org.netfrag.glib/php_extensions.php

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

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

Legend:
Removed from v.1.2  
changed lines
  Added in v.1.4

MailToCvsAdmin">MailToCvsAdmin
ViewVC Help
Powered by ViewVC 1.1.26 RSS 2.0 feed