Use getQuota method for retrieve account quota

This commit is contained in:
Victor LABORIE 2017-12-17 19:29:22 +01:00
parent b0409f8a55
commit 261a90e998
2 changed files with 6 additions and 2 deletions

View file

@ -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>';
}

View file

@ -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;
}