src/ImboClient/ImboClient.php
public function addAccessControlRules($publicKey, $rules) {
        $this->validatePublicKeyName($publicKey);

        return $this->getCommand('AddAccessControlRules', array(
            'publicKey' => $publicKey,
            'rules' => json_encode($rules),
        ))->execute();
    }
public function addAccessControlRules($publicKey, $rules) {
        $this->validatePublicKeyName($publicKey);

        return $this->getCommand('AddAccessControlRules', array(
            'publicKey' => $publicKey,
            'rules' => json_encode($rules),
        ))->execute();
    }
public function addAccessControlRules ( $ publicKey , $ rules ) { $ this -> validatePublicKeyName ( $ publicKey ) ; return $ this -> getCommand ( 'AddAccessControlRules' , array ( 'publicKey' => $ publicKey , 'rules' => json_encode ( $ rules ) , ) ) -> execute ( ) ; }
Add access control rules to the given public key

@param string $publicKey Public key to add rules to
@param array $rules Rules to add
@return Model
@throws InvalidArgumentException If the public key name is invalid
Add access control rules to the given public key