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

Annotation of /nfo/php/libs/org.netfrag.glib/php_constants.php

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.1 - (hide annotations)
Fri Mar 28 06:43:20 2003 UTC (21 years, 3 months ago) by joko
Branch: MAIN
initial commit: php_constants.php

1 joko 1.1 <?php
2    
3     /**
4     * This file contains some core functions extending php, especially regarding constant handling.
5     *
6     * @author Andreas Motl <andreas.motl@ilo.de>
7     * @package org.netfrag.glib
8     * @name const
9     *
10     */
11    
12     /**
13     * $Id: php_extensions.php,v 1.6 2003/03/11 02:14:18 joko Exp $
14     *
15     * $Log: php_extensions.php,v $
16     *
17     */
18    
19    
20     /**
21     * --- functions supporting handling constants
22     *
23     */
24    
25    
26     /**
27     * --- php constant extension functions living in the const:: namespace
28     *
29     *
30     * @author Andreas Motl <andreas.motl@ilo.de>
31     * @copyright (c) 2003 - All Rights reserved.
32     * @license GNU LGPL (GNU Lesser General Public License)
33     *
34     * @link http://www.netfrag.org/~joko/
35     * @link http://www.gnu.org/licenses/lgpl.txt
36     *
37     * @package org.netfrag.glib
38     * @name const
39     *
40     *
41     */
42     class constants {
43    
44     function set($name, $value) {
45     define($name, $value);
46     }
47    
48     function get($name) {
49     return defined($name) ? constant($name) : null;
50     }
51    
52     }
53    
54    
55     ?>

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