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

« back to all changes in this revision

Viewing changes to lib/modules/fixed_ip.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: fixed_ip.inc 5243 2014-02-08 15:06:02Z gruberroland $
 
3
$Id: fixed_ip.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
59
59
        private $hostCache = null;
60
60
 
61
61
        /**
 
62
        * Returns true if this module can manage accounts of the current type, otherwise false.
 
63
        * 
 
64
        * @return boolean true if module fits
 
65
        */
 
66
        public function can_manage() {
 
67
                return in_array($this->get_scope(), array('dhcp'));
 
68
        }
 
69
 
 
70
        /**
62
71
        * Returns meta data that is interpreted by parent class
63
72
        *
64
73
        * @return array array with meta data
67
76
        */
68
77
        public function get_metaData() {
69
78
                $return = array();
70
 
                // manages host accounts
71
 
                $return["account_types"] = array("dhcp");
72
79
                // alias name
73
80
                $return["alias"] = _("Hosts");
74
81
                // this is a base module