/** * 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; }
public function send(Command $command) { return $this->command($command->getAction(), $command->toArray()); }