Minor cosmetic changes.

skala
Julio Montoya 12 years ago
parent c4f1dc053d
commit 86eebf1d33
  1. 2
      main/inc/lib/events.lib.inc.php
  2. 7
      main/inc/lib/usermanager.lib.php

@ -431,8 +431,8 @@ function createEventExercise($exo_id)
* @param integer Question ID * @param integer Question ID
* @param integer Exercise attempt ID a.k.a exe_id (from track_e_exercise) * @param integer Exercise attempt ID a.k.a exe_id (from track_e_exercise)
* @param integer Position * @param integer Position
* @param integer Exercise ID (from c_quiz)
* @param bool update results? * @param bool update results?
* @param integer Exercise ID
* @param string Filename (for audio answers - using nanogong) * @param string Filename (for audio answers - using nanogong)
* @param integer User ID The user who's going to get this score. Default value of null means "get from context". * @param integer User ID The user who's going to get this score. Default value of null means "get from context".
* @param integer Course ID (from the "id" column of course table). Default value of null means "get from context". * @param integer Course ID (from the "id" column of course table). Default value of null means "get from context".

@ -54,7 +54,8 @@ class UserManager
* @param array $params * @param array $params
* @return array * @return array
*/ */
static function clean_params($params) { static function clean_params($params)
{
$clean_params = array(); $clean_params = array();
foreach ($params as $key => $value) { foreach ($params as $key => $value) {
if (in_array($key, self::$columns)) { if (in_array($key, self::$columns)) {
@ -70,7 +71,8 @@ class UserManager
* @param array Array of user details (array('status'=>...,'username'=>..., ...)) * @param array Array of user details (array('status'=>...,'username'=>..., ...))
* @return mixed Array of user information * @return mixed Array of user information
*/ */
public static function add($params) { public static function add($params)
{
global $_configuration; global $_configuration;
$access_url_id = 1; $access_url_id = 1;
@ -148,6 +150,7 @@ class UserManager
return api_set_failure('encrypt_method invalid'); return api_set_failure('encrypt_method invalid');
} }
} }
$params['registration_date'] = api_get_utc_datetime(); $params['registration_date'] = api_get_utc_datetime();
// Database table definition // Database table definition

Loading…
Cancel
Save