Update function for user

This commit is contained in:
IMRAN HASSAN 2014-03-27 05:45:41 +00:00
parent b52e8a39f3
commit 4c6da2f1aa
2 changed files with 20 additions and 2 deletions

View file

@ -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;
}
?>

View file

@ -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;
}
}