Display a single contact from the LaSalleCRM database

@param  mixed        $id        LaSalleCRM people ID (int) or "Firstname@Lastname" (text)
@return response
182028
public function show($id) {

        // $id can be an integer -- the actual ID of the PEOPLES table; or,
        // $id can be a string, in the format "Firstname@Lastname"
        $peopleID = $this->helpers->determinePeopleID($id);

        if (!$this->helpers->isAllowedPeopleIdSingleContactDisplay($peopleID)) {
            return redirect()->back();
        }

        $people    = $this->peopleRepository->getFind($peopleID);
        $email     = $this->peopleRepository->getFirstWorkEmail($peopleID);
        $telephone = $this->peopleRepository->getFirstWorkTelephone($peopleID);

        return view('lasallecrmcontact::single_crmcontact_basic', [
            'people'                              => $people,
            'email'                               => $email,
            'telephone'                           => $telephone,
            'single_contact_display_contact_form' => Config::get('lasallecrmcontact.single_contact_display_contact_form'),
            'Config'                              => Config::class,
        ]);
    }
1257948
public function show($id = null)
    {
        if ($id === 'new') {
            return response()->json([
                'entry' => WinkTag::make([
                    'id' => Str::uuid(),
                ]),
            ]);
        }

        $entry = WinkTag::findOrFail($id);

        return response()->json([
            'entry' => $entry,
        ]);
    }
610331
public function deleteAction($id)
    {
        try {
            $deleteCallback = $this->getContactManager()->delete();
            $view = $this->responseDelete($id, $deleteCallback);
        } catch (EntityNotFoundException $e) {
            $view = $this->view($e->toArray(), 404);
        }

        return $this->handleView($view);
    }
429381
public function getPersonById($id)
    {
        $id = (int) $id;
        $id = max(0, $id);

        return $this->request('people/'.$id);
    }
477944
public function show($id)
	{
		$entity = $this->getModel()->getRepository()->getById($id);

		return $this->response()
			->item($entity)
			->view($this->getView('show'), [
				'entity' => $entity
			]);
	}
1237569
public function getContact($id)
    {
        //get contact from db
        foreach ($this->contacts as $contact) {
            if ($contact->id == $id) {
                return $contact;
            }
        }
        //might wanna throw an exception when it does not exists
        throw new Exception("Contact '$id' not found");
    }
372541
public function show($id)
    {
        $question = $this->client->get(
            sprintf('buckets/%d/questions/%d.json', $this->bucket, $id)
        );

        return new Question($this->response($question));
    }
4502
public function actionView(int $id)
    {
        $model = $this->findModel($id);

        return $this->render('view', [
            'model' => $model,
            'usernameField' => $this->usernameField,
        ]);
    }
609281
public function showAction($id)
    {
        $em = $this->getDoctrine()->getEntityManager();

        $entity = $em->getRepository('DMSLauncherBundle:PreUser')->find($id);

        if (!$entity) {
            throw $this->createNotFoundException('Unable to find PreUser entity.');
        }

        return array(
            'entity'        => $entity,
            'referralCount' => $em->getRepository('DMSLauncherBundle:PreUser')->getReferralsCount($entity->getToken()),
        );
    }
1345420
protected function _post($id = null)
    {
        $subject = $this->_subject();
        $subject->set(['id' => $id]);

        $entity = $this->_findRecord($id, $subject);

        $event = $this->_trigger('beforeDelete', $subject);
        if ($event->isStopped()) {
            return $this->_stopped($subject);
        }

        $method = $this->getConfig('deleteMethod');
        if ($this->_table()->$method($entity)) {
            $this->_success($subject);
        } else {
            $this->_error($subject);
        }

        return $this->_redirect($subject, ['action' => 'index']);
    }
64085
public function one($id) {

		if($this->_where) {
			throw new InvalidCallException(__METHOD__.'() can not be called with "where" clause');
		}

		$model = $this->_populate(
			$this->_request('get',
				$this->_getUrl('element', $id),
				[
					'query' => $this->_buildQueryParams()
				]
			),
			false
		);

		return $model;
	}
794756
public function getById($id) : Response
    {
        //find the info
        $user = $this->model->findFirst([
            'id = ?0 AND is_deleted = 0',
            'bind' => [$this->userData->getId()],
        ]);

        $user->password = null;

        //get relationship
        if ($this->request->hasQuery('relationships')) {
            $relationships = $this->request->getQuery('relationships', 'string');

            $user = QueryParser::parseRelationShips($relationships, $user);
        }

        if ($user) {
            return $this->response($user);
        } else {
            throw new Exception('Record not found');
        }
    }
773126
public function show($id)
    {
        $event = $this->repository->find($id);

        if (empty($event)) {
            abort(404);
        }

        return view('cms-frontend::events.'.$event->template)->with('event', $event);
    }
861825
public function showAction($id)
    {
        $em = $this->getDoctrine()->getManager();
        $actor = $em->getRepository($this->get('core_manager')->getActorBundleName().':Actor')->findOneById($id);
        
        $deleteForm = $this->createDeleteForm($actor);
        
        $returnValues = array(
            'entity' => $actor,
            'delete_form' => $deleteForm->createView(),
        );
                
        $twigGlobal = $this->get('twig.global');
        if($twigGlobal->checkUse('CoreExtraBundle')){
            $shippingForm = $this->createForm('CoreExtraBundle\Form\EmailType', null, array('email' => $actor->getEmail()));
            $returnValues['shippingForm'] = $shippingForm->createView();
        }
        if($this->get('core_manager')->useEcommerce()){
            $addressForm = $this->createForm('EcommerceBundle\Form\AddressType', null, array('token_storage' => $this->container->get('security.token_storage')));
            $returnValues['addressForm'] = $addressForm->createView();
        }
        
        return array_merge($returnValues, array(
            'entity' => $actor,
            'delete_form' => $deleteForm->createView(),
        ));
    }
354844
public function fetchById( $id )
    {
        // If a fetch is called with an empty ID, we throw an exception, as we
        // would get database statistics otherwise, and the following error may
        // be hard to debug.
        if ( empty( $id ) )
        {
            throw new phpillowResponseNotFoundErrorException( array(
                'error'  => 'not_found',
                'reason' => 'No document ID specified.',
            ) );
        }

        // Fetch object from database
        $db = $this->getConnection();
        $response = $db->get(
            $this->getDatabase() . urlencode( $id )
        );

        // Check if type of response matches type of class
        $this->checkTypeOfResponse( $response );

        // Create document contents from fetched object
        $this->fromResponse( $response );

        return $this;
    }
1001535
public static function getRelatedPeople($id)
    {
        global $config;
        $req="SELECT idEvenement
            FROM `_evenementPersonne`
            WHERE `idPersonne` = '".mysql_real_escape_string($id)."';";
        $res = $config->connexionBdd->requete($req);
        $return = array();
        while ($event=mysql_fetch_object($res)) {
            $req2="SELECT DISTINCT idPersonne
                FROM `_evenementPersonne`
                WHERE `idEvenement` =".$event->idEvenement;
            $res2 = $config->connexionBdd->requete($req2);
            while ($person=mysql_fetch_object($res2)) {
                if ($person->idPersonne != $id && !in_array($person->idPersonne, $return)) {
                    $return[]=$person->idPersonne;
                }
            }
        }
        return $return;
    }
582517
public function show($id)
    {
        $chatbot = $this->client->get(
            sprintf('buckets/%d/chats/%d/integrations/%d.json', $this->bucket, $this->parent, $id)
        );
        $chatbot = new Chatbot($this->response($chatbot));
        $chatbot->inContext($this->bucket, $this->parent);

        return $chatbot;
    }