sqlManager = new \database\PisSqlManager(); parent::__construct(); } /** * Default-DeConstructor */ public function __destruct() { parent::__destruct(); } /** * Method start a pis-query * @param array $queryArgs * @return query result as xml */ public function sendPisQuery($queryArgs) { $pidList = $this->removeEmptyItmes($queryArgs); if (count($pidList) < $this->maxPid) { $result = $this->sqlManager->sendPisQuery($pidList); return \utiliy\XmlManager::arrayToPisXml($result); } return NULL; } /** * Method remove all empty string * @param array $queryArgs * @return array */ private function removeEmptyItmes($queryArgs) { foreach ($queryArgs as $key => $value) { if (empty($value)) { unset($queryArgs[$key]); } } return $queryArgs; } } ?>