/[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.6 by joko, Tue Mar 11 02:14:18 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.2  2003/03/05 11:58:49  joko   * Revision 1.6  2003/03/11 02:14:18  joko
17   * modified is_hash, mkInstance and others   * + fixed metadata for phpDocumentor
18   *   *
19   * Revision 1.1  2003/03/03 21:08:21  joko   * Revision 1.5  2003/03/10 22:58:46  joko
20   * refactored from flib/utils   * + fixed metadata for phpDocumentor
21   *   *
22     * Revision 1.4  2003/03/05 23:16:46  joko
23     * updated docu - phpDocumentor is very strict about its 'blocks'...
24   *   *
25   */   * Revision 1.3  2003/03/05 18:54:41  joko
26     * updated docu - phpDocumentor is very strict about its 'blocks'...
   
 /**  
  * --- php extension functions  
27   *   *
28   *  x php::Dumper   * Revision 1.2  2003/03/05 11:58:49  joko
29   *  x php::session_register_safe   * modified is_hash, mkInstance and others
  *  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  
30   *   *
31   */   * Revision 1.1  2003/03/03 21:08:21  joko
32     * refactored from flib/utils
 /**  
  * Todo:  
  *  o establish mkInstance here (move from DesignPattern::Object::mkObject)  
  *  o establish loadModule here (move from DesignPattern::Object::loadModule)  
33   *   *
  * 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)  
34   *   *
35   */   */
36    
37    
   
38  /**  /**
39   * --- shortcut functions   * --- shortcut functions
40   * Is there a mechanism in php to 'export' these methods   * Is there a mechanism in php to 'export' these methods
# Line 79  Line 52 
52   * 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');
53   *   *
54   */   */
   
55  // this is (and will probably always be) required by the "Exporter"  // this is (and will probably always be) required by the "Exporter"
56  function &Dumper() {  function &Dumper() {
57    $args = func_get_args();    $args = func_get_args();
# Line 105  php::export_symbols(); Line 77  php::export_symbols();
77    
78    
79  /**  /**
80   * --- php extension functions lying in the php:: namespace   * --- php extension functions living in the php:: namespace
81     *
82     * <pre>
83     *  x php::Dumper
84     *  x php::session_register_safe
85     *  x php::array_init
86     *  x php::is_hash
87     *  x php::array_join_merge
88     *  o php::merge
89     *  o php::merge_to
90     *  x php::loadModule
91     *  x php::mkInstance
92     * </pre>
93     *
94     * @author Andreas Motl <andreas.motl@ilo.de>
95     * @copyright (c) 2003 - All Rights reserved.
96     * @license GNU LGPL (GNU Lesser General Public License)
97     *
98     * @link http://www.netfrag.org/~joko/
99     * @link http://www.gnu.org/licenses/lgpl.txt
100     *
101     * @package org.netfrag.glib
102     * @name php
103     *
104     * <pre>
105     * Todo:
106     * @todo (o) establish mkInstance here (move from DesignPattern::Object::mkObject)
107     * @todo (o) establish loadModule here (move from DesignPattern::Object::loadModule)
108     *
109     * Ideas:
110     * @todo (o) php::create_redirector_function('func', array( type => 'lamba|function|method', name => 'Abc::do_xyz') )
111     * @todo (o) php::create_redirector_method('class|obj_ref', 'method', $target)
112     * @todo (o) php::export_symbol(from, to) (maybe solves above two)
113     * </pre>
114   *   *
115   */   */
   
   
116  class php {  class php {
117    
118    

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

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