private static function getFromStream(Stream $entity)
 {
     $info = new PageHeaderInfo("Stream");
     $info->setName($entity->getName() . ' | Free Online Courses');
     $info->setDescription("Study <em>{$entity->getName()}</em> via the best free online courses & MOOCs from top universities and colleges. ");
     if ($entity->getImageUrl()) {
         $info->setImageUrl($entity->getImageDir() . '/' . $entity->getImageUrl());
     }
     return $info;
 }
Ejemplo n.º 2
0
 /**
  * Set stream
  *
  * @param ClassCentral\SiteBundle\Entity\Stream $stream
  */
 public function setStream(\ClassCentral\SiteBundle\Entity\Stream $stream)
 {
     $this->stream = $stream;
     $stream->setCourses($this);
 }