Lists all VideoGallery videos models.

@param $id VideoGallery id
@return mixed
549528
public function actionVideos($id)
    {
        $video_gallery = $this->findModel($id);

        $searchModel  = $this->module->manager->createVideoGalleryItemSearch();
        $dataProvider = $searchModel->search($_GET, $id);

        return $this->render('video/index', [
            'video_gallery' => $video_gallery,
            'dataProvider' => $dataProvider,
            'searchModel'  => $searchModel,
        ]);
    }
389577
public function actionView($id)
    {
        $model = $this->findModel($id);
        $this->fire('view', [$model]);
        return $model;
    }
1215129
public function getVideo(string $videoId): Video
	{
		return $this->parseData($this->getData($videoId), $videoId);
	}
11551
public function actionIndex($id)
    {
        $model = $this->findModel($id);
        $dataProvider = new ActiveDataProvider([
            'query' => Coin::find()->where(['user_id' => $model->id])->orderBy(['created_at' => SORT_DESC]),
        ]);
        return $this->render('index', [
            'model' => $model,
            'dataProvider' => $dataProvider
        ]);
    }
434530
public function actionView($id)
    {
        $record = $this->findRecord($id);
        if ($record->lastExec && $record->lastExec->isFailed()) {
            return $this->redirect(['view-attempts', 'id' => $record->id]);
        }
        return $this->redirect(['view-details', 'id' => $record->id]);
    }
1333752
public function getVideoList($id)
    {
        $this->setId($id);

        $list = array();
        $data = $this->getData(str_replace('{key}', $this->key, $this->baseChannelUrl));

        if(!isset($data->items))
        {
            throw new \Exception("Video channel not found");
        }

        foreach($data->items as $value)
        {
            $list[] = $this->getVideoDetail($value->contentDetails->videoId);
        }

        return $list;
    }
1326501
public function actionCreateVideo($id)
    {
        $video_gallery = $this->findModel($id);

        $model = $this->module->manager->createVideoGalleryItem(['scenario' => 'create']);

        $model->loadDefaultValues();

        if ($model->load(\Yii::$app->request->post())) {
            $model->video_gallery_id = $video_gallery->id;
            if($model->create()) {
                \Yii::$app->getSession()->setFlash('video_gallery.success', \Yii::t('video_gallery', 'Video has been created'));
                return $this->redirect(['videos', 'id' => $id]);
            }
        }

        return $this->render('video/create', [
            'video_gallery' => $video_gallery,
            'model' => $model
        ]);
    }
1015915
protected function findModel($id)
    {
        if (($model = Media::findOne($id)) !== null) {
            return $model;
        } else {
            throw new NotFoundHttpException(t('app', 'The requested page does not exist.'));
        }
    }
421924
public function actionView($id)
	{
		//get the model, to use it within the meta tags
		$model = $this->findModel($id);
		//setting the meta keywords for this page
		$tok = new ClassifierBasedTokenizer(
	    new EndOfSentence(),
	    new WhitespaceTokenizer()
		);
		$text = strip_tags($model->content);
		$sentences = $tok->tokenize($text);
		if(is_array($sentences) && array_key_exists(0, $sentences))
		{			
			$this->view->registerMetaTag(
	            [
	                'name'    => 'metadescription',
	                'content' => $model->title . ' ' . substr($sentences[0],0,100)
	            ],
	            'keywords'
	        );
		}
		else{
			$this->view->registerMetaTag(
	            [
	                'name'    => 'metadescription',
	                'content' => $model->title . ' ' . $text
	            ],
	            'keywords'
	        );
		}

		$this->view->registerMetaTag(
            [
                'name'    => 'metakeywords',
                'content' => $model->tags
            ],
            'keywords'
        );

		return $this->render('onlineview', [
			'model' => $model,
		]);
	}
1156694
public function getCrewCreditsByID($ID){
		$url = self::APIURL.'/people/'.$ID.'/crewcredits?embed=show';
		$crewCredit = $this->getFile($url);

		$shows_appeared = [];
		foreach($crewCredit as $series){
			$position = $series['type'];
			$TVShow = new TVShow($series['_embedded']['show']);
			$shows_appeared[] = [$position, $TVShow];
		}
		return $shows_appeared;
	}
1234931
public function getAllVideos()
    {
        $videos = new ArrayList();
        if ($this->hasHeroVideo()) {
            $videos->push($this->HeroVideo());
        }
        if ($this->hasGalleryVideos()) {
            $videos->merge($this->VideoGallery());
        }
        $videos->removeDuplicates('HailID');

        return $videos;
    }
1179106
public function show($id)
    {
        $entry = $this->entriesRepository->getById($id, $this->resource);

        return view('laramanager::entries.show')
            ->with('resource', $this->resource)
            ->with('entry', $entry)
            ->with('objects', LaramanagerObject::all());
    }
184534
public function AnimeForum(int $id): array
    {
        return $this->myanimelist->getAnimeForum(
            new Request\Anime\AnimeForumRequest($id)
        );
    }
211161
public function AnimeVideos(int $id): Model\Anime\AnimeVideos
    {
        return $this->myanimelist->getAnimeVideos(
            new Request\Anime\AnimeVideosRequest($id)
        );
    }
598931
public function actionView($id)
    {
        $model = $this->findModel($id);
        $providerWarehouseVoucherItems = new \yii\data\ArrayDataProvider([
            'allModels' => $model->warehouseVoucherItems,
        ]);

        return $this->render('view', [
            'model'                         => $this->findModel($id),
            'providerWarehouseVoucherItems' => $providerWarehouseVoucherItems,
        ]);
    }
1364247
public function show($id)
    {
        // Check the cache for item data. Otherwise get from the db.
        $item = Cache::rememberForever($this->modelTableName . ':' . $id, function () use ($id) {
            return call_user_func([$this->getModelClass(), 'findOrFail'], $id)->toArray();
        });

        return $this->generateResponse($this->modelTableName, $item);
    }
52696
public function index($id = null)
    {
        $this->authorize('readList', Content::class);
        $input  = $this->validator->validate('list');
        $params = $this->processor->process($input)->getProcessedFields();
        if ($id) { // content/id/children
            $content = $this->repository->getById($id);
            if (!empty($content)) {
                $results = $this->repository->getChildren(
                    $content,
                    $params['filter'],
                    $params['orderBy'],
                    $params['page'],
                    $params['perPage']
                );
                return $this->respondWithSuccess($results, new ContentTransformer);
            } else {
                return $this->respondNotFound();
            }
        }

        $results = $this->repository->getContents(
            $params['filter'],
            $params['orderBy'],
            $params['page'],
            $params['perPage']
        );

        return $this->respondWithSuccess($results, new ContentTransformer);
    }