LdapTools\Utilities\TSProperty::toBinary PHP Метод

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

Convert the TSProperty name/value back to its binary representation for the userParameters blob.
public toBinary ( ) : string
Результат string
    public function toBinary()
    {
        $name = bin2hex($this->name);
        $binValue = $this->getEncodedValueForProp($this->name, $this->value);
        $valueLen = strlen(bin2hex($binValue)) / 3;
        $binary = hex2bin($this->dec2hex(strlen($name)) . $this->dec2hex($valueLen) . $this->dec2hex($this->valueType) . $name);
        return $binary . $binValue;
    }