protected function _getAsset() { if (!self::$_asset instanceof JTableAsset) { self::$_asset = JTable::getInstance('Asset'); self::$_asset->loadByName('com_docman'); } return self::$_asset; }
/** * Utility function for checking if the server can generate thumbnails. * * @return bool True if it can, false otherwise. */ public function thumbnailsAvailable() { if (!self::$_thumbnails) { require_once JPATH_LIBRARIES.'/koowa/components/com_files/helper/phpthumb/phpthumb.php'; $pt = PhpThumb::getInstance(); self::$_thumbnails = $pt->isValidImplementation(PhpThumbFactory::$defaultImplemenation) || $pt->isValidImplementation('gd'); } return self::$_thumbnails; }