Get the details for a single company by its ID.

@param int $id The ID of the company.

@return string The response received from the API.
346660
public function getCompanyById($id)
    {
        $id = (int) $id;
        $id = max(0, $id);

        return $this->request('companies/'.$id);
    }
1233732
public function getByID($id)
    {
        if(array_key_exists($id, $this->idToSlugCache))
            $slug = $this->idToSlugCache[$id];
        else
            $slug = $this->SystemCache->get($this->getModel()->getTableName().':id:'.$id);

        if (!empty($slug)) {
            return $this->getBySlug($slug);
        }

        $this->loadSource();

        if(!isset($this->slugsByID[$id]))
            return null;

        $slug = $this->slugsByID[$id];

        return $this->getBySlug($slug);
    }
840959
private function getPrefixAndSid($id)
    {
        if (count($parts = explode('.', $id)) < 2) {
            return array(null, $id);
        }

        $sid    = array_pop($parts);
        $prefix = implode('.', $parts);

        return array($prefix, $sid);
    }
809782
function get( $id )
    {
        $params = [
            'index' => $this->config->index,
            'type' => $this->config->type,
            'id' => $id,
        ];

        $response = $this->client->get($params);
        return $response['_source'];
    }
685226
public function get($id)
    {
        return $this->_sendPayload(
            $this->_getService($this->_pageServiceKey)->getTemplateLayout($id)
        );
    }
744457
public function detailCacheAll($id){
        $sentence = new SentenceUtil();
        $sentence->fromCommand("/ip/dns/cache/all/print");
        $sentence->where(".id", "=", $id);
        $this->talker->send($sentence);
        $rs = $this->talker->getResult();
        $i = 0 ;
        if ($i < $rs->size()){
            return $rs->getResultArray();
        }  else {
            return "No Ip DNS Cache All With This Id = ".$id;
        }
    }
571923
public function getQuestion4Id($id)
    {
        $query = $this->createQueryBuilder('p')
            ->select('p')
            ->where('p.id = :id')
            ->setParameter('id', $id)
            ->getQuery();


        return $query->getOneOrNullResult();
    }
772210
public function getById($id)
    {
        $model = $this
            ->prepareQuery()
            ->where($this->model->getTable() . '.id', $id)
            ->first();

        if (empty($model))
            return null;

        $model = $this->addPermissionsForModel($model);

        return $this->formatModel($model);
    }
600049
public function get($id)
    {
        $request = $this->paystackHttpClient->get(
            $this->transformUrl(Resource::CUSTOMERS_URL, $id)
        );

        return $this->processResourceRequestResponse($request);
    }
1216395
public function getDetailContent($id)
    {
        $response = $this->mailjet->get(Resources::$TemplateDetailcontent,
            ['id' => $id]);
        if (!$response->success()) {
            $this->throwError("TemplateService:getDetailContent failed",
                $response);
        }

        return $response->getData();
    }
837929
public function getField($id)
    {
        if (!isset($this->_fields[$id])) {
            $this->$id = ''; // @see SearchIndexDocument::__set()
        }
        return $this->_fields[$id];
    }
1076103
public function getCampaignInfo($id)
    {
        if (empty($id)) {
            return $this->handleError('Empty campaign id');
        }

        $requestResult = $this->sendRequest('campaigns/' . $id);

        return $this->handleResult($requestResult);
    }
1325397
public function fetchById($id)
    {
        $data = $this->getProvider()->fetchById($id);
        return $this->resultAsModel($data);
    }
312589
protected function getPayload($id)
    {
        $rawPayload = $this->getRedis()->hget($this->getRedisJobNamespace(), $id);

        return static::parsePayload($rawPayload);
    }
307087
public function getServiceById($id)
    {
        if ($name = $this->getServiceNameById($id)) {
            return $this->getService($name);
        }

        return null;
    }
129257
public function getClientDetailsById($id)
	{
		$database = \App::get('db');

		$sql = "SELECT * FROM `#__developer_applications`
				WHERE `id`=" . $database->quote($id);
		$database->setQuery($sql);
		return $database->loadAssoc();
	}
401521
public function getDataById($id)
    {
        $id = (int)$id;
        return array_key_exists($id, $this->_data) ? $this->_data[$id] : null;
    }