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

« back to all changes in this revision

Viewing changes to lib/modules/range.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: range.inc 5229 2014-01-28 20:00:47Z gruberroland $
 
3
$Id: range.inc 5352 2014-04-20 13:00:42Z 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
53
53
        public $overlaped;
54
54
 
55
55
        /**
 
56
        * Returns true if this module can manage accounts of the current type, otherwise false.
 
57
        * 
 
58
        * @return boolean true if module fits
 
59
        */
 
60
        public function can_manage() {
 
61
                return in_array($this->get_scope(), array('dhcp'));
 
62
        }
 
63
 
 
64
        /**
56
65
        * Returns meta data that is interpreted by parent class
57
66
        *
58
67
        * @return array array with meta data
61
70
        */
62
71
        public function get_metaData() {
63
72
                $return = array();
64
 
                // manages dhcp accounts
65
 
                $return["account_types"] = array("dhcp");
66
73
                // alias name
67
74
                $return["alias"] = _("Ranges");
68
75
                // this is a base module