예제 #1
0
 /**
  * Zpracuje command a nastavi vlastnosti objektu.
  *
  * @return Bobr_AbstractModule
  */
 protected function assignCommand()
 {
     $command = $this->command->toArray();
     array_shift($command);
     if (isset($command[0])) {
         $this->setAction($command[0]);
         array_shift($command);
         if (isset($command[0])) {
             $this->setParams($command);
         }
     } else {
         $this->action = 'default';
     }
     return $this;
 }
예제 #2
0
 public function send(Command $command)
 {
     return $this->command($command->getAction(), $command->toArray());
 }