1: <?php
2: /**
3: * TODO
4: *
5: * Copyright 1999-2012 Horde LLC (http://www.horde.org/)
6: *
7: * See the enclosed file COPYING for license information (LGPL). If you
8: * did not receive this file, see http://www.horde.org/licenses/lgpl21.
9: *
10: * @category Horde
11: * @package Core
12: */
13: class Horde_Registry_Caller
14: {
15: /**
16: * TODO
17: */
18: protected $registry;
19:
20: /**
21: * TODO
22: */
23: protected $api;
24:
25: /**
26: * TODO
27: */
28: public function __construct($registry, $api)
29: {
30: $this->registry = $registry;
31: $this->api = $api;
32: }
33:
34: /**
35: * TODO
36: *
37: * @throws Horde_Exception
38: */
39: public function __call($method, $args)
40: {
41: return $this->registry->call($this->api . '/' . $method, $args);
42: }
43:
44: }
45: