/**
  * Returns the typeahead data for the actor fields.
  * @param string $mediaType filter by movies or TV shows
  */
 public function actionGetActorNames($mediaType)
 {
     $cacheId = 'MovieFilterActorNameTypeahead_' . $mediaType;
     $this->renderJson($this->getTypeaheadSource($cacheId, function () use($mediaType) {
         return $this->getTypeaheadData(VideoLibrary::getActors($mediaType));
     }));
 }
 /**
  * Returns the typeahead data for the actor fields.
  * @param string $mediaType filter by movies or TV shows
  * @return string the list of movies encoded as JavaScript
  */
 protected function getActorNameTypeaheadData($mediaType)
 {
     $cacheId = 'MovieFilterActorNameTypeahead_' . $mediaType;
     return $this->getTypeaheadSource($cacheId, function () use($mediaType) {
         return $this->getTypeaheadData(VideoLibrary::getActors($mediaType));
     });
 }