Use getQuota method for retrieve account quota
This commit is contained in:
parent
b0409f8a55
commit
261a90e998
|
@ -154,7 +154,7 @@ if (!empty($_POST['isactive']) && $server->isSuperAdmin()) {
|
|||
} else {
|
||||
print '<td><span class="glyphicon glyphicon-remove"></span></td>';
|
||||
}
|
||||
print '<td>' .getquota($account->getUid(),'user'). '</td>';
|
||||
print '<td>'.$account->getQuota().'</td>';
|
||||
print '<td><button type="submit" name="account" value="'.$account->getUid().'"><span class="glyphicon glyphicon-trash"></span></button></td>';
|
||||
print '</tr>';
|
||||
}
|
||||
|
|
|
@ -4,7 +4,7 @@ class LdapAccount extends LdapDomain {
|
|||
static $objectClass = array('mailAccount', 'posixAccount', 'organizationalRole');
|
||||
static $dn='uid';
|
||||
|
||||
protected $domain,$uid,$name,$active=false,$admin=false,$courier=false,$authsmtp=false;
|
||||
protected $domain,$uid,$name,$active=false,$admin=false,$courier=false,$authsmtp=false,$quota="0M/0M";
|
||||
private $aliases=array(),$redirections=array();
|
||||
|
||||
public function __construct(LdapDomain $domain, $uid) {
|
||||
|
@ -78,6 +78,10 @@ class LdapAccount extends LdapDomain {
|
|||
return $this->authsmtp;
|
||||
}
|
||||
|
||||
public function getQuota() {
|
||||
return $this->quota;
|
||||
}
|
||||
|
||||
public function __destruct() {
|
||||
return true;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue