Predis\Command\CommandInterface::setRawArguments PHP Method

setRawArguments() public method

Sets the raw arguments for the command without processing them.
public setRawArguments ( array $arguments )
$arguments array List of arguments.
    public function setRawArguments(array $arguments);

Usage Example

コード例 #1
0
ファイル: predis.php プロジェクト: vagus10cn/wordpress_4_1_1
 /**
  * Applies the specified prefix to the keys of Z[INTERSECTION|UNION]STORE.
  *
  * @param CommandInterface $command Command instance.
  * @param string           $prefix  Prefix string.
  */
 public static function zsetStore(CommandInterface $command, $prefix)
 {
     if ($arguments = $command->getArguments()) {
         $arguments[0] = "{$prefix}{$arguments[0]}";
         $length = (int) $arguments[1] + 2;
         for ($i = 2; $i < $length; $i++) {
             $arguments[$i] = "{$prefix}{$arguments[$i]}";
         }
         $command->setRawArguments($arguments);
     }
 }
All Usage Examples Of Predis\Command\CommandInterface::setRawArguments