Request['id']); $pool = $this->getModule('pool')->getPoolById($poolid); $allowedPools = $this->getModule('bconsole')->bconsoleCommand($this->director, array('.pool'), $this->user)->output; if(!is_null($pool) && in_array($pool->name, $allowedPools)) { $this->output = $pool; $this->error = PoolError::ERROR_NO_ERRORS; } else { $this->output = PoolError::MSG_ERROR_POOL_DOES_NOT_EXISTS; $this->error = PoolError::ERROR_POOL_DOES_NOT_EXISTS; } } public function set($id, $params) { $result = ($this->user === null) ? $this->getModule('pool')->setPool($id, $params) : true; if($result === true) { $this->output = null; $this->error = PoolError::ERROR_NO_ERRORS; } else { $this->output = DatabaseError::MSG_ERROR_WRITE_TO_DB_PROBLEM; $this->error = DatabaseError::ERROR_WRITE_TO_DB_PROBLEM; } } } ?>