Exemple #1
0
 /**
  * bit of a hack to set join_db_name in params
  * @return params
  */
 function &getParams()
 {
     $params =& parent::getParams();
     if (empty($params->join_db_name)) {
         $params->set('join_db_name', '#__users');
     }
     return $params;
 }
Exemple #2
0
 /**
  * Load element params
  * bit of a hack to set join_db_name in params
  *
  * @return  object  default element params
  */
 public function getParams()
 {
     $params = parent::getParams();
     if (empty($params->join_db_name)) {
         $params->set('join_db_name', '#__users');
     }
     // $$$ hugh - think we need to default key column as well, otherwise
     // when creating user element, we end up setting field to VARCHAR 255
     if (empty($params->join_key_column)) {
         $params->set('join_key_column', 'id');
     }
     return $params;
 }