LdapTools\Utilities\ADTimeSpan::getLdapValue PHP Метод

getLdapValue() публичный Метод

Get the value of all the time units in the format that LDAP expects it in.
public getLdapValue ( ) : string
Результат string
    public function getLdapValue()
    {
        if ($this->never) {
            $value = self::NEVER;
        } else {
            $total = 0;
            foreach (self::UNIT as $unit => $conversion) {
                $total += $this->{$unit} * $conversion;
            }
            $value = number_format($total, 0, '.', '');
        }
        return $value;
    }