示例#1
0
 /**
  * Used for the name of the filter fields
  * Over written here as we need to get the label field for field searches
  *
  * @return  string	element filter name
  */
 public function getFilterFullName()
 {
     $element = $this->getElement();
     $params = $this->getParams();
     $fields = array('auto-complete', 'field');
     if ($params->get($this->concatLabelParam, '') !== '' && in_array($element->filter_type, $fields)) {
         return htmlspecialchars($this->getJoinLabelColumn(), ENT_QUOTES);
     } else {
         $join_db_name = $params->get('join_db_name');
         $listModel = $this->getlistModel();
         $joins = $listModel->getJoins();
         foreach ($joins as $join) {
             if ($join->element_id == $element->id) {
                 $join_db_name = $join->table_join_alias;
             }
         }
         if ($element->filter_type == 'field') {
             $elName = $join_db_name . '___' . $this->getLabelParamVal();
         } else {
             $elName = parent::getFilterFullName();
         }
     }
     return FabrikString::safeColName($elName);
 }