Update function for user
This commit is contained in:
parent
b52e8a39f3
commit
4c6da2f1aa
2 changed files with 20 additions and 2 deletions
|
@ -99,4 +99,19 @@ function cb_get_actions($place,$scope=array('global'))
|
|||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Function used to count total notifications
|
||||
*/
|
||||
function count_total_notification($item=false)
|
||||
{
|
||||
global $db;
|
||||
$type = $this->type;
|
||||
$results = $db->count(tbl('notifications'),"*");
|
||||
echo $db->query;
|
||||
if($db->num_rows>0)
|
||||
return $results;
|
||||
else
|
||||
return false;
|
||||
}
|
||||
|
||||
?>
|
|
@ -7,9 +7,11 @@
|
|||
* To change this template use File | Settings | File Templates.
|
||||
*/
|
||||
|
||||
function get_user_fields() {
|
||||
function get_user_fields($array=NULL) {
|
||||
|
||||
global $cb_columns;
|
||||
return $cb_columns->object( 'users' )->get_columns();
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
@ -36,4 +38,5 @@ function name($user_array)
|
|||
if(!$name) $name = $user['username'];
|
||||
|
||||
return $name;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue