Bug #1366 ยป 1366.patch
| components/com_comprofiler/plugin/user/plug_cbcore/cb.core.php | ||
|---|---|---|
|
|
||
|
class CBfield_connections extends CBfield_counter {
|
||
|
/**
|
||
|
* Formatter:
|
||
|
* Returns a field in specified format
|
||
|
*
|
||
|
* @param moscomprofilerFields $field
|
||
|
* @param moscomprofilerUser $user
|
||
|
* @param string $output 'html', 'xml', 'json', 'php', 'csvheader', 'csv', 'rss', 'fieldslist', 'htmledit'
|
||
|
* @param string $formatting 'tr', 'td', 'div', 'span', 'none', 'table'??
|
||
|
* @param string $reason 'profile' for user profile view, 'edit' for profile edit, 'register' for registration, 'search' for searches
|
||
|
* @param int $list_compare_types IF reason == 'search' : 0 : simple 'is' search, 1 : advanced search with modes, 2 : simple 'any' search
|
||
|
* @return mixed
|
||
|
*/
|
||
|
function getFieldRow( &$field, &$user, $output, $formatting, $reason, $list_compare_types ) {
|
||
|
global $ueConfig;
|
||
|
|
||
|
$return = null;
|
||
|
|
||
|
if ( $ueConfig['allowConnections'] ) {
|
||
|
$return = parent::getFieldRow( $field, $user, $output, $formatting, $reason, $list_compare_types );
|
||
|
}
|
||
|
|
||
|
return $return;
|
||
|
}
|
||
|
/**
|
||
|
* Returns a field in specified format
|
||
|
*
|
||
|
* @param moscomprofilerFields $field
|
||
|
* @param moscomprofilerUser $user
|
||
|
* @param string $output 'html', 'xml', 'json', 'php', 'csvheader', 'csv', 'rss', 'fieldslist', 'htmledit'
|
||
|
* @param string $reason 'profile' for user profile view, 'edit' for profile edit, 'register' for registration, 'list' for user-lists
|
||
|
* @param int $list_compare_types IF reason == 'search' : 0 : simple 'is' search, 1 : advanced search with modes, 2 : simple 'any' search
|
||