Example #1
0
 /**
  * Sets the keyword tags for a video.
  *
  * @param mixed $tags Either a comma-separated string or an array
  * of tags for the video
  * @return \Zend\GData\YouTube\VideoEntry Provides a fluent interface
  */
 public function setVideoTags($tags)
 {
     $this->ensureMediaGroupIsNotNull();
     $keywords = new MediaExtension\MediaKeywords();
     if (is_array($tags)) {
         $tags = implode(', ', $tags);
     }
     $keywords->setText($tags);
     $this->getMediaGroup()->setKeywords($keywords);
     return $this;
 }