/** * Returns true, if this file should be displayed inline in a browser * window. This is especially useful for PDF documents, HTML pages, * and for images which are directly supported by the browser. */ function isInline() { require_once 'Modules/File/classes/class.ilObjFileAccess.php'; return ilObjFileAccess::_isFileInline($this->getTitle()); }
/** * Returns the icon image type. * For most objects, this is same as the object type, e.g. 'cat','fold'. * We can return here other values, to express a specific state of an object, * e.g. 'crs_offline", and/or to express a specific kind of object, e.g. * 'file_inline'. */ function getIconImageType() { include_once 'Modules/File/classes/class.ilObjFileAccess.php'; return ilObjFileAccess::_isFileInline($this->title) ? $this->type . '_inline' : $this->type; }