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

« back to all changes in this revision

Viewing changes to lib/modules/dhcp_settings.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: dhcp_settings.inc 5020 2013-08-31 09:33:45Z gruberroland $
 
3
$Id: dhcp_settings.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
108
108
        }
109
109
 
110
110
        /**
 
111
        * Returns true if this module can manage accounts of the current type, otherwise false.
 
112
        * 
 
113
        * @return boolean true if module fits
 
114
        */
 
115
        public function can_manage() {
 
116
                return in_array($this->get_scope(), array('dhcp'));
 
117
        }
 
118
 
 
119
        /**
111
120
         * Returns meta data that is interpreted by parent class
112
121
         *
113
122
         * @return array array with meta data
114
123
         */
115
124
        public function get_metaData() {
116
125
                $return = array();
117
 
                // manages host accounts
118
 
                $return["account_types"] = array("dhcp");
119
126
                // alias name
120
127
                $return["alias"] = _("DHCP settings");
121
128
                // this is a base module