1: <?php
2: /**
3: * Vilma external API interface.
4: *
5: * This file defines Vilma's external API interface. Other applications
6: * can interact with Vilma through this API.
7: *
8: * Copyright 2006-2007 Alkaloid Networks <http://www.alkaloid.net/>
9: *
10: * See the enclosed file LICENSE for license information (BSD). If you did not
11: * did not receive this file, see http://cvs.horde.org/co.php/vilma/LICENSE.
12: *
13: * @author Ben Klang <ben@alkaloid.net>
14: * @package Vilma
15: */
16: class Vilma_Api extends Horde_Registry_Api
17: {
18: public function listDomains()
19: {
20: $domains = array();
21: foreach ($GLOBALS['vilma']->driver->getDomains() as $domain) {
22: $domains[] = $domain['domain_name'];
23: }
24: return $domains;
25: }
26: }
27: