/** * Init soap * * @return void */ protected function initSoap() { if ($this->repository->getWsdlUrl()) { /** @var $soap tx_em_Connection_Soap */ $this->soap = t3lib_div::makeInstance('tx_em_Connection_Soap'); $this->soap->init(array('wsdl' => $this->repository->getWsdlUrl(), 'soapoptions' => array('trace' => 1, 'exceptions' => 1)), $this->settings['fe_u'], $this->settings['fe_p']); } }
/** * Function inserts a repository object into database. * * @access public * @param tx_em_Repository $repository repository object * @return integer UID of the newly inserted repository object */ public function insertRepository(tx_em_Repository $repository) { $repositoryData = array('title' => $repository->getTitle(), 'description' => $repository->getDescription(), 'wsdl_url' => $repository->getWsdlUrl(), 'mirror_url' => $repository->getMirrorListUrl(), 'lastUpdated' => $repository->getLastUpdate(), 'extCount' => $repository->getExtensionCount()); $GLOBALS['TYPO3_DB']->exec_INSERTquery(self::TABLE_REPOSITORY, $repositoryData); return $GLOBALS['TYPO3_DB']->sql_insert_id(); }