src/LdapTools/Utilities/TSProperty.php
protected function getDecodedValueForProp($propName, $propValue)
    {
        if (in_array($propName, $this->propTypes['string'])) {
            // Strip away null terminators. I think this should be desired, otherwise it just ends in confusion.
            $value = str_replace("\0", '', $this->decodePropValue($propValue, true));
        } elseif (in_array($propName, $this->propTypes['time'])) {
            // Convert from microseconds to minutes (how ADUC displays it anyway, and seems the most practical).
            $value = hexdec($this->decodePropValue($propValue)) / self::TIME_CONVERSION;
        } elseif (in_array($propName, $this->propTypes['int'])) {
            $value = hexdec($this->decodePropValue($propValue));
        } else {
            $value = $this->decodePropValue($propValue);
        }

        return $value;
    }
protected function getDecodedValueForProp($propName, $propValue)
    {
        if (in_array($propName, $this->propTypes['string'])) {
            // Strip away null terminators. I think this should be desired, otherwise it just ends in confusion.
            $value = str_replace("\0", '', $this->decodePropValue($propValue, true));
        } elseif (in_array($propName, $this->propTypes['time'])) {
            // Convert from microseconds to minutes (how ADUC displays it anyway, and seems the most practical).
            $value = hexdec($this->decodePropValue($propValue)) / self::TIME_CONVERSION;
        } elseif (in_array($propName, $this->propTypes['int'])) {
            $value = hexdec($this->decodePropValue($propValue));
        } else {
            $value = $this->decodePropValue($propValue);
        }

        return $value;
    }
protected function getDecodedValueForProp ( $ propName , $ propValue ) { if ( in_array ( $ propName , $ this -> propTypes [ 'string' ] ) ) { // Strip away null terminators. I think this should be desired, otherwise it just ends in confusion. $ value = str_replace ( "\0" , '' , $ this -> decodePropValue ( $ propValue , true ) ) ; } elseif ( in_array ( $ propName , $ this -> propTypes [ 'time' ] ) ) { // Convert from microseconds to minutes (how ADUC displays it anyway, and seems the most practical). $ value = hexdec ( $ this -> decodePropValue ( $ propValue ) ) / self :: TIME_CONVERSION ; } elseif ( in_array ( $ propName , $ this -> propTypes [ 'int' ] ) ) { $ value = hexdec ( $ this -> decodePropValue ( $ propValue ) ) ; } else { $ value = $ this -> decodePropValue ( $ propValue ) ; } return $ value ; }
Based on the property name in question, get its actual value from the binary blob value.

@param string $propName
@param string $propValue
@return string|int
Based on the property name in question get its actual value from the binary blob value .