Fetches the latest root cause analysis results for a specified check.

@param int $check_id
The ID of the check.
@param array $parameters
An array of parameters for the request.

@return string
The returned response message.
546409
public function getAnalysis($check_id, $parameters = array()) {
    $this->ensureParameters(array('check_id' => $check_id), __METHOD__);
    $data = $this->request('GET', "analysis/${check_id}", $parameters);
    return $data->analysis;
  }
476068
public function get($role_id)
    {
        $result = &gplcart_static("user.role.get.$role_id");

        if (isset($result)) {
            return $result;
        }

        $this->hook->attach('user.role.get.before', $role_id, $result, $this);

        if (isset($result)) {
            return $result;
        }

        $sql = 'SELECT * FROM role WHERE role_id=?';
        $result = $this->db->fetch($sql, array($role_id), array('unserialize' => 'permissions'));
        $this->hook->attach('user.role.get.after', $role_id, $result, $this);
        return $result;
    }
450480
public function pauseChecks($check_ids) {
    $this->ensureParameters(array('check_ids' => $check_ids), __METHOD__);
    $parameters = array(
      'paused' => TRUE,
    );
    return $this->modifyChecks($check_ids, $parameters);
  }
651075
public function listMethod($employee_id)
    {
        $result = $this->listMethodInternal(compact('employee_id'));
        $statusCode = (int)$result[ 'statusCode' ];

        if ($statusCode === 200) {
            return $this->getResultAsArrayWithoutStatusCode($result);
        }

        $this->reportUnexpectedResponse($result, 1541006346);
    }
889906
static function get($post_id)
	{
		global $db;
		//$sql = "SELECT p.*, t.topic_first_post_id, t.topic_last_post_id
		//		FROM " . POSTS_TABLE . " p, " . TOPICS_TABLE . " t
		//		WHERE p.post_id=" . intval($this->post_id) . " AND t.topic_id = p.topic_id";
		$sql = "SELECT * FROM " . POSTS_TABLE . " WHERE post_id=" . intval($post_id);
		$result = $db->sql_query($sql);
		$post_data = $db->sql_fetchrow($result);
		$db->sql_freeresult($result);

		if(!$post_data)
		{
			//post does not exist, return false
			return false;
		}


		return post::from_array($post_data);
	}
820645
public function getMeta($posts_id)
    {
        if (!is_array($posts_id)) {
            $posts_id = [$posts_id];
        }

        array_map([$this, 'checkId'], $posts_id);

        return $this->adapter->get(sprintf('/posts/meta?ids=%s', implode(',', $posts_id)));
    }
1055002
public function findWhereOrFail(int $id, array $parameters)
    {
        $response = $this->model->with($this->with)->where($parameters)->findOrFail($id);
        $this->with = [];
        return $response;
    }
1036174
public function getItemStatus($id, $movieId, array $parameters = [], array $headers = [])
    {
        return $this->get(
            'list/' . $id . '/item_status',
            array_merge($parameters, ['movie_id' => $movieId]),
            $headers
        );
    }
1168813
public function getCode($code, $card_id = null, $check_consume = null)
    {
        $data = ['code' => $code];
        is_null($card_id) || $data['card_id'] = $card_id;
        is_null($check_consume) || $data['check_consume'] = $check_consume;
        $url = "https://api.weixin.qq.com/card/code/get?access_token=ACCESS_TOKEN";
        $this->registerApi($url, __FUNCTION__, func_get_args());
        return $this->httpPostForJson($url, $data);
    }
1271574
public function getChangePasswordForm($args_array = null)
    {
        if (! $this->canSetPassword()) {
            return;
        }

        $args = \MUtil_Ra::args(func_get_args());
        if (isset($args['askCheck']) && $args['askCheck']) {
            $args['checkFields'] = $this->loadResetPasswordCheckFields();
        }

        return $this->userLoader->getChangePasswordForm($this, $args);
    }
674052
public function check($container_type, $container_id)
    {
        if (strtolower($container_type) === 'default') {
            return true;
        }

        $classname = 'Lemurro\\Api\\App\\Checker\\File' . ucfirst($container_type);

        if (class_exists($classname)) {
            $class = new $classname($this->dic);

            return call_user_func([$class, 'check'], $container_id);
        } else {
            /** @var Logger $log */
            $log = $this->dic['log'];

            $log->error('/File/FileRights.php: Unknown class "' . $classname . '"');

            return false;
        }
    }
1049587
public function branches($project_id, array $parameters = [])
    {
        $resolver = $this->createOptionsResolver();
        $resolver->setDefined('search')
            ->setAllowedTypes('search', 'string');

        return $this->get($this->getProjectPath($project_id, 'repository/branches'), $resolver->resolve($parameters));
    }
697364
public function checkout($aggregate_root_id)
    {
        $aggregate_root = $this->create();
        $event_stream = $this->event_reader->read($aggregate_root_id);

        if ($event_stream) {
            $aggregate_root->reconstituteFrom($event_stream->getEvents());
        } else {
            $this->logger->debug(__METHOD__ . ' - ' . get_class($this->event_reader));
            throw new RuntimeError(
                sprintf('Unable to load event stream for given AR identifier: %s', $aggregate_root_id)
            );
        }
        return $aggregate_root;
    }
1354894
public function getTransactionDetail($transaction_id){
        $url = $this->authenticationService->getServerEndPoint() . Endpoints::VERSION . Endpoints::BASE_WALLET . Endpoints::WALLET_TRANSACTION;
        $url = sprintf($url,$transaction_id);
        $result = $this->authenticationService->getTransport()->fetch($url);

        if($result["code"] == APIResponse::RESPONSE_SUCCESS){
            // Wrap it in a array since maskData takes an Array of Array
            $maskWrapper = array($result['results']);
            $this->maskData($maskWrapper);
            return $maskWrapper[0];
        }else{
            return 0;
        }
    }
358596
function status ($reference_id, array $params = []) {
    return $this->get(sprintf(self::MESSAGING_STATUS_RESOURCE, $reference_id), $params);
  }
288560
public function checkIn() {
        $now = date('Y-m-d H:i:s');
        $serverRow = $this->_fetchServerRow();

        if (!$serverRow) {
            $serverRow = $this->createRow();
            $serverRow->hostname = gethostname();
            $lastCheckIn = $now;
        } else {
            $lastCheckIn = $serverRow->modified;
        }

        //  set the modified date manually, to make sure the record is updated.
        $serverRow->modified = $now;
        $serverId = $serverRow->save();

        return array(
            $serverId,
            $lastCheckIn
        );
    }
689598
public function updateStatus($session_id, $test_status)
	{
		$data = array('status' => $test_status ? 'completed' : 'error');
		$result = $this->execute('PUT', 'sessions/' . $session_id . '.json', $data);

		return $result['automation_session'];
	}