Ejemplo n.º 1
0
 function _getJSDocmanParameters($params)
 {
     $doc_params = array();
     if (isset($params['force_permissions'])) {
         $doc_params['newItem'] = array('hide_permissions' => !$params['display_permissions'], 'hide_news' => !$params['display_news'], 'update_permissions_on_init' => false, 'default_position' => $params['force_ordering']);
     }
     return array_merge(parent::_getJSDocmanParameters($params), $doc_params);
 }
 /**
  * @access: protected
  */
 function _getTitle($params)
 {
     // If a title is defined in the report, use it instead of the
     // default one
     if (isset($params['filter']) && $params['filter'] !== null) {
         if ($params['filter']->getTitle() !== null && trim($params['filter']->getTitle()) != '') {
             return htmlentities($params['filter']->getTitle(), ENT_COMPAT, 'UTF-8');
         }
     }
     return parent::_getTitle($params);
 }