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

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

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

revision 1.1 by joko, Mon Mar 3 21:08:21 2003 UTC revision 1.2 by joko, Wed Mar 5 18:54:41 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 Exporter   * @name Exporter
9   *   *
10   */   */
11    
# Line 13  Line 13 
13   * $Id$   * $Id$
14   *   *
15   * $Log$   * $Log$
16     * Revision 1.2  2003/03/05 18:54:41  joko
17     * updated docu - phpDocumentor is very strict about its 'blocks'...
18     *
19   * Revision 1.1  2003/03/03 21:08:21  joko   * Revision 1.1  2003/03/03 21:08:21  joko
20   * refactored from flib/utils   * refactored from flib/utils
21   *   *
22   *   *
23   */   */
24    
25    /**
26     * --- shortcut functions
27     *
28     */
29    
30    //function &export_symbol() { return Exporter::export_symbol(func_get_args()); }
31    
32    
33  /**  /**
34   * --- The Exporter   * The Exporter
35   *   *
36   *  x export_symbol   * This tries to mimic a very small subset of the
37   *  x export_symbols   * functionality of CPAN's Exporter.
38     * @link http://search.cpan.org/author/JHI/perl-5.8.0/lib/Exporter.pm
39   *   *
40     *  x export_symbol <br>
41     *  x export_symbols
42   *   *
43     * <pre>
44   *  Synopsis:   *  Synopsis:
45   *   *    <code>
46   *    define('EXPORT_OK', 'loadModule mkInstance' );   *    define('EXPORT_OK', 'loadModule mkInstance' );
47   *    require_once("php_extensions.php");   *    require_once("php_extensions.php");
48     *    </code>
49   *   *
50   *  Example output:   *  Example output:
51   *   *
52   *     Exporting symbol 'php::loadModule' to 'global::loadModule' (type='__php_function').   *     Exporting symbol 'php::loadModule' to 'global::loadModule' (type='__php_function').
53   *     selected stub:   *     selected stub:
54     *    <code>
55   *     function &loadModule() { return php::loadModule(Exporter::wrap_args(func_get_args())); }   *     function &loadModule() { return php::loadModule(Exporter::wrap_args(func_get_args())); }
56     *    </code>
57   *   *
58   *     Exporting symbol 'php::mkInstance' to 'global::mkInstance' (type='__php_function').   *     Exporting symbol 'php::mkInstance' to 'global::mkInstance' (type='__php_function').
59   *     selected stub:   *     selected stub:
60     *    <code>
61   *     function &mkInstance() { return php::mkInstance(Exporter::wrap_args(func_get_args())); }   *     function &mkInstance() { return php::mkInstance(Exporter::wrap_args(func_get_args())); }
62   *   *    </code>
63     * </pre>
64   *   *
65   *   *
66   * @author Andreas Motl <andreas.motl@ilo.de>   * @author Andreas Motl <andreas.motl@ilo.de>
67   * @copyright (c) 2003 - All Rights reserved.   * @copyright (c) 2003 - All Rights reserved.
68   * @license GNU LGPL (GNU Lesser General Public License)   * @license GNU LGPL (GNU Lesser General Public License)
69   *   *
70   * @author-url http://www.netfrag.org/~joko/   * @link http://www.netfrag.org/~joko/
71   * @license-url http://www.gnu.org/licenses/lgpl.txt   * @link http://www.gnu.org/licenses/lgpl.txt
72   *   *
73   * @package org.netfrag.glib   * @package org.netfrag.glib
74   * @module Exporter   * @name Exporter
75   *   *
76   */   * @todo
77     * <pre>
 /**  
  * Todo / Ideas:  
78   *  x look at http://www.php.net/manual/en/function.method-exists.php   *  x look at http://www.php.net/manual/en/function.method-exists.php
79   *    x $bool_exists = (in_array(strtolower($methodName), get_class_methods($className)));   *    x $bool_exists = (in_array(strtolower($methodName), get_class_methods($className)));
80   *    x -> implemented in php::class_has_method   *    x -> implemented in php::class_has_method
81     * </pre>
82   *   *
83   */   */
   
   
   
 /**  
  * --- shortcut functions  
  *  
  */  
   
 //function &export_symbol() { return Exporter::export_symbol(func_get_args()); }  
   
   
 /**  
  * --- Exporter class  
  *  
  *  
  */  
   
84  class Exporter {  class Exporter {
85    
86    function export_symbol($from = null, $symbol = null, $to = array()) {    function export_symbol($from = null, $symbol = null, $to = array()) {

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

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