show

@author Tom Haskins-Vaughan <tom@harvestcloud.com>
@since  2012-04-25
@todo   Reduce number of queries on this page

@param  int  $id
968649
public function showAction($id)
    {
        $hub     = $this->getRepo('Profile')->find($id);
        $origin  = $hub->getDefaultLocation();
        $buyer   = $this->getUser()->getCurrentProfile();

        if (!$hub)
        {
            throw $this->createNotFoundException('No hub found for id '.$id);
        }

        $buyerHubRef = $this->getRepo('BuyerHubRef')->findOneByBuyerAndHub($buyer, $hub);

        return $this->render('HarvestCloudCoreBundle:Buyer/Hub:show.html.twig', array(
          'hub'         => $hub,
          'buyerHubRef' => $buyerHubRef,
          'origin'      => $origin,
        ));
    }
739872
public function show($id)
    {
        $document = $this->client->get(
            sprintf('buckets/%d/documents/%d.json', $this->bucket, $id)
        );

        return new Document($this->response($document));
    }
691552
public function show($id)
    {
        $newsletter = $this->newsletter->find($id);
        
        return view('newsletter::Frontend.show')->with(['newsletter' => $newsletter]);
    }
4502
public function actionView(int $id)
    {
        $model = $this->findModel($id);

        return $this->render('view', [
            'model' => $model,
            'usernameField' => $this->usernameField,
        ]);
    }
1321061
public function actionView($id)
    {
        $this->layout = static::MAIN_LAYOUT;
        return $this->render('view', [
            'model' => $this->findModel($id),
        ]);
    }
13765
public function show($id)
    {
        return $this->patientAdapter->toOutput( $this->patientRepository->find()->byPid( $id ) );
    }
516069
public function view($id = null) {
        $cmsTermTaxonomy = $this->CmsTermTaxonomy->get($id, [
            'contain' => ['CmsTerm', 'CmsTermRelation']
        ]);
        $this->set('cmsTermTaxonomy', $cmsTermTaxonomy);
        $this->set('_serialize', ['cmsTermTaxonomy']);
    }
1018438
public function show($id) {

        // Mark this email as read
        $this->repository->markEmailAsRead($id);

        return view('lasallecmsemail::admin/emailhandling/show',
            [
                'record'                       => $this->repository->getFind($id),
                'records_attachments'          => $this->email_attachmentRepository->getEmailAttachmentsForAdminShow($id),
                'package_title'                => $this->model->package_title,
                'table_name'                   => $this->model->table,
                'model_class'                  => $this->model->model_class,
                'resource_route_name'          => $this->model->resource_route_name,
                'DatesHelper'                  => DatesHelper::class,
                'HTMLHelper'                   => HTMLHelper::class,
                'ImagesHelper'                 => ImagesHelper::class,
                'Config'                       => Config::class,
                'admin_template_name'          => config('lasallecmsadmin.admin_template_name'),
            ]);
    }
534066
public function actionView($id)
    {
        $model = $this->findModel($id);
        $model->updateCounters(['views' => 1]);
        return $this->render($model->view, [
            'model' => $model,
        ]);
    }
1032396
public function show($id)
    {
      $user  = $this->users->findOrFail($id);
      return \View::make('admin.users.show', [
        'user'              =>  $user,
        'title'              => 'view',
      ]);
    }
551399
public function show($id)
    {
        $content = $this->repository->getById($id);
        if (!empty($content)) {
            $this->authorize('read', $content);
            return $this->respondWithSuccess($content, new ContentTransformer);
        }
        return $this->respondNotFound();
    }
847760
public function show($id)
    {
        $block = $this->repository->getById($id);
        if (!empty($block)) {
            $this->authorize('read', $block);
            return $this->respondWithSuccess($block, new BlockTransformer);
        }
        return $this->respondNotFound();
    }
845760
final public function doShow($id)
    {
        $this->db->query('SELECT * FROM '.$this->table.' WHERE id = :id', [':id'=>$id]);
        $result = $this->db->result();
        return $result ? $result : false;
    }
789507
public function show($id)
    {
        $apiRequest = RequestFactory::create();

        $resource = new GetResource(
            $this->serializer,
            $apiRequest->getFields(),
            $apiRequest->getIncludedRelationships()
        );

        $find = $this->findResourceCallable($id);

        return $this->addHeaders($resource->get($id, get_class($this->getDataModel()), $find));
    }
808662
public function show($id)
    {
        $comment = $this->client->get(
            sprintf('buckets/%d/comments/%d.json', $this->bucket, $id)
        );

        return new Comment($this->response($comment));
    }
95663
public function show($id)
    {
        $vault = $this->client->get(
            sprintf('buckets/%d/vaults/%d.json', $this->bucket, $id)
        );

        return new Vault($this->response($vault));
    }
230198
public function show($id)
    {
        $message = $this->client->get(
            sprintf('buckets/%d/messages/%d.json', $this->bucket, $id)
        );

        return new Message($this->response($message));
    }