public function roomSetTopicAction() { $room = $this->params('room'); $topic = $this->params('topic'); $from = $this->params('from', $this->from); try { $this->hipchat->set_room_topic($room, $topic, $from); $this->console->writeLine(sprintf('Room "%s" has topic "%s"', $room, $topic), Color::GREEN); } catch (Exception $e) { $this->console->writeLine($e->getMessage(), Color::RED); } }
public function setRoomTopic($topic, $from = null) { $this->checkRoom(); return $this->hipchat->set_room_topic($this->room, $topic, $from); }