public function PHPExcel::getRibbonBinObjects in Loft Data Grids 7.2
Same name and namespace in other branches
- 6.2 vendor/phpoffice/phpexcel/Classes/PHPExcel.php \PHPExcel::getRibbonBinObjects()
* retrieve Binaries Ribbon Objects *
File
- vendor/
phpoffice/ phpexcel/ Classes/ PHPExcel.php, line 283
Class
- PHPExcel
- PHPExcel
Code
public function getRibbonBinObjects($What = 'all') {
$ReturnData = NULL;
$What = strtolower($What);
switch ($What) {
case 'all':
return $this->_ribbonBinObjects;
break;
case 'names':
case 'data':
if (is_array($this->_ribbonBinObjects) && array_key_exists($What, $this->_ribbonBinObjects)) {
$ReturnData = $this->_ribbonBinObjects[$What];
}
break;
case 'types':
if (is_array($this->_ribbonBinObjects) && array_key_exists('data', $this->_ribbonBinObjects) && is_array($this->_ribbonBinObjects['data'])) {
$tmpTypes = array_keys($this->_ribbonBinObjects['data']);
$ReturnData = array_unique(array_map(array(
$this,
'_getExtensionOnly',
), $tmpTypes));
}
else {
$ReturnData = array();
}
//the caller want an array... not null if empty
break;
}
return $ReturnData;
}