src/LdapTools/Security/Acl/Acl.php
public function toBinary()
    {
        $aces = '';
        foreach ($this->aces as $ace) {
            $aces .= $ace->toBinary();
        }

        return pack(
            'C1C1v1v1v1',
            $this->revision,
            $this->sbz1,
            ((16 + (strlen(bin2hex($aces)))) / 2),
            count($this->aces),
            $this->sbz2
        ).$aces;
    }
public function toBinary()
    {
        $aces = '';
        foreach ($this->aces as $ace) {
            $aces .= $ace->toBinary();
        }

        return pack(
            'C1C1v1v1v1',
            $this->revision,
            $this->sbz1,
            ((16 + (strlen(bin2hex($aces)))) / 2),
            count($this->aces),
            $this->sbz2
        ).$aces;
    }
public function toBinary ( ) { $ aces = '' ; foreach ( $ this -> aces as $ ace ) { $ aces .= $ ace -> toBinary ( ) ; } return pack ( 'C1C1v1v1v1' , $ this -> revision , $ this -> sbz1 , ( ( 16 + ( strlen ( bin2hex ( $ aces ) ) ) ) / 2 ) , count ( $ this -> aces ) , $ this -> sbz2 ) . $ aces ; }
Get the binary string representation of the ACL.

@return string
Get the binary string representation of the ACL .