lib/elFinderVolumeBox.class.php 1 location
|
@@ 747-760 (lines=14) @@
|
744 |
|
* |
745 |
|
* @return string | boolean |
746 |
|
*/ |
747 |
|
protected function _bd_getThumbnail($path) |
748 |
|
{ |
749 |
|
list(, $itemId) = $this->_bd_splitPath($path); |
750 |
|
|
751 |
|
try { |
752 |
|
$url = self::API_URL.'/files/'.$itemId.'/content'; |
753 |
|
|
754 |
|
$contents = $this->_bd_fetch($url, true); |
755 |
|
|
756 |
|
return $contents; |
757 |
|
} catch (Exception $e) { |
758 |
|
return false; |
759 |
|
} |
760 |
|
} |
761 |
|
|
762 |
|
/** |
763 |
|
* Remove item. |
lib/elFinderVolumeOneDrive.class.php 1 location
|
@@ 741-752 (lines=12) @@
|
738 |
|
* |
739 |
|
* @return string | boolean |
740 |
|
*/ |
741 |
|
protected function _od_getThumbnail($path) |
742 |
|
{ |
743 |
|
list(, $itemId) = $this->_od_splitPath($path); |
744 |
|
|
745 |
|
try { |
746 |
|
$url = self::API_URL.$itemId.'/thumbnails/0/medium/content'; |
747 |
|
|
748 |
|
return $this->_od_createCurl($url, $contents = true); |
749 |
|
} catch (Exception $e) { |
750 |
|
return false; |
751 |
|
} |
752 |
|
} |
753 |
|
|
754 |
|
/*********************************************************************/ |
755 |
|
/* INIT AND CONFIGURE */ |