Ejemplo n.º 1
0
 /**
  * @test
  */
 public function getAllCtypes()
 {
     $this->testArray(tx_additionalreports_util::getAllCtypes('AND 1=1 '));
 }
 /**
  * Generate the used ctypes    report
  *
  * @param boolean $displayHidden
  * @return string HTML code
  */
 public static function getAllUsedCtypes($displayHidden = false)
 {
     $getFiltersCat = TYPO3\CMS\Core\Utility\GeneralUtility::_GP('filtersCat');
     $addhidden = $displayHidden === true ? '' : ' AND tt_content.hidden=0 AND pages.hidden=0 ';
     $addWhere = $getFiltersCat !== null && $getFiltersCat != 'all' ? ' AND tt_content.CType=\'' . $getFiltersCat . '\'' : '';
     return tx_additionalreports_util::getAllCtypes($addhidden . $addWhere, '', true);
 }