Exemplo n.º 1
0
 /**
  * DOCUMENT ME
  * @return mixed
  */
 public function getEmbeddable()
 {
     $type = aMediaTools::getTypeInfo($this->type);
     return $type['embeddable'];
 }
Exemplo n.º 2
0
 /**
  * DOCUMENT ME
  * @return mixed
  */
 public static function getBestTypeLabel()
 {
     $type = aMediaTools::getType();
     if ($type) {
         if ($type === '_downloadable') {
             return 'File';
         } elseif (substr($type, 0, 1)) {
             return 'Media';
         }
         $typeInfo = aMediaTools::getTypeInfo($type);
         return $typeInfo['label'];
     } else {
         return 'Media';
     }
 }