/** * DOCUMENT ME * @return mixed */ public function getEmbeddable() { $type = aMediaTools::getTypeInfo($this->type); return $type['embeddable']; }
/** * 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'; } }