public function addTorrent(PwTorrentDm $dm) { if (($result = $dm->beforeAdd()) !== true) { return $result; } return $this->_getDao(self::FETCH_MAIN)->addTorrent($dm->getData()); }