public function __construct() { $this->serverInfo["version"] = 1.0; $this->serverInfo["serviceName"] = "Weborb.Reader.Dataset.RemotingDataSet"; $this->serverInfo["id"] = AckMessage::uuid(); // Need to move into util }
public function __construct($type, $hostname, $port, $username, $password) { $this->type = $type; $this->hostname = $hostname; $this->port = $port; $this->username = $username; $this->password = $password; $this->id = AckMessage::uuid(); }
public function __construct($correlationId, Exception $exception) { parent::__construct($correlationId, null, null); $this->rootCause = $exception->getTraceAsString(); $this->faultString = $exception->getMessage(); if ($exception instanceof ServiceException) { $this->extendedData = $exception->getCode(); } else { $this->extendedData = $exception->__toString(); } $this->faultDetail = $exception->__toString(); $this->SetError(); $this->m_authException = $exception instanceof WebORBAuthenticationException; }
public function CreateDatabaseConnection(ServerConnectionInfo $connectionInfo, $database) { $databaseConnectionInfo = new DatabaseConnectionInfo(); $databaseConnectionInfo->Connection = $connectionInfo; $databaseConnectionInfo->DatabaseName = $database; $databaseConnectionInfo->Id = AckMessage::uuid(); $userSettings = self::GetSettings(); $userSettings->DatabaseConnections[] = $databaseConnectionInfo; $userSettings->Save(Paths::getWDMConfigPath()); return $databaseConnectionInfo; }
public function __construct() { $this->ActiveRecordUID = AckMessage::uuid(); }
public function findBySql($sqlQuery, $options) { /*String*/ $queryId = AckMessage::uuid(); /*QueryOptions*/ $queryOptions = new QueryOptions(); $queryOptions->createInstance($options, $this); if ($queryOptions->IsPaged || $queryOptions->IsMonitored) { $this->registerCollection($sqlQuery, $queryId, $queryOptions->PageSize, $queryOptions->IsMonitored); } if ($queryOptions->IsPaged) { return $this->getQueryPage($queryId, 1, $queryOptions); } /*ArrayList*/ $domainObjectList = $this->fill($sqlQuery, $queryOptions->Offset, $queryOptions->Limit); $this->loadRelations($domainObjectList, $queryOptions); $totalRows = count($domainObjectList); $activeQuery = new ActiveQuery($sqlQuery, $_GET["clientid"], $totalRows, $queryOptions->IsMonitored, ""); $queryResult = new QueryResult($activeQuery, 1); $queryResult->Result = $domainObjectList; $queryResult->TotalRows = $totalRows; return $queryResult; }