~ubuntu-branches/ubuntu/utopic/ldap-account-manager/utopic-proposed

« back to all changes in this revision

Viewing changes to lib/modules/ddns.inc

  • Committer: Package Import Robot
  • Author(s): Roland Gruber
  • Date: 2014-06-12 17:51:20 UTC
  • mfrom: (1.2.24)
  • Revision ID: package-import@ubuntu.com-20140612175120-grobhwyk369g9aod
Tags: 4.6-1
new upstream release

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
<?php
2
2
/*
3
 
$Id: ddns.inc 4777 2013-02-25 19:29:21Z gruberroland $
 
3
$Id: ddns.inc 5351 2014-04-20 12:59:36Z gruberroland $
4
4
 
5
5
  This code is part of LDAP Account Manager (http://www.ldap-account-manager.org/)
6
6
  Copyright (C) 2008         Thomas Manninger
7
 
                2008 - 2013  Roland Gruber
 
7
                2008 - 2014  Roland Gruber
8
8
 
9
9
  This program is free software; you can redistribute it and/or modify
10
10
  it under the terms of the GNU General Public License as published by
44
44
        
45
45
 
46
46
        /**
 
47
        * Returns true if this module can manage accounts of the current type, otherwise false.
 
48
        * 
 
49
        * @return boolean true if module fits
 
50
        */
 
51
        public function can_manage() {
 
52
                return in_array($this->get_scope(), array('dhcp'));
 
53
        }
 
54
 
 
55
        /**
47
56
         * Returns meta data that is interpreted by parent class.
48
57
         *
49
58
         * @return array array with meta data
50
59
         */
51
60
        public function get_metaData() {
52
61
                $return = array();
53
 
                // manages host accounts
54
 
                $return["account_types"] = array("dhcp");
55
62
                // alias name
56
63
                $return["alias"] = _("DDNS");
57
64
                // this is a base module