root/devel/mod/rpc/lib/class_rpc_config.php

Revision 758, 0.6 kB (checked in by sven, 2 years ago)

set svn property eol-style native on some files without it

  • Property svn:eol-style set to native
Line 
1 <?php
2
3     // Real simple registry class
4     Class RpcConfig
5     {
6         var $handlers = array();
7
8         function RpcConfig()
9         {
10             $this->handlers["mapping"] = array();
11             $this->handlers["library"] = array();
12         }
13
14         function addMapping($mapping)
15         {
16             if(is_array($mapping))
17             {
18                 $this->handlers["mapping"] = $this->handlers["mapping"] + $mapping;
19             }
20         }
21
22         function addLibrary($library)
23         {
24             $this->handlers["library"][] = $library;
25         }
26     }
27
28 ?>
29
Note: See TracBrowser for help on using the browser.