forked from moodle/moodle
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
MDL-14617 removed some legacy course related functions
- Loading branch information
skodak
committed
May 1, 2008
1 parent
c584346
commit d0ae7cd
Showing
1 changed file
with
0 additions
and
55 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -1030,61 +1030,6 @@ function print_group_menu($groups, $groupmode, $currentgroup, $urlroot, $showall | |
|
||
} | ||
|
||
/** | ||
* All users that we have not seen for a really long time (ie dead accounts) | ||
* TODO: Delete this for Moodle 2.0 | ||
* | ||
* @uses $CFG | ||
* @deprecated The query is executed directly within admin/cron.php (MDL-11571) | ||
* @param string $cutofftime ? | ||
* @return object {@link $USER} records | ||
*/ | ||
function get_users_longtimenosee($cutofftime) { | ||
global $CFG; | ||
return get_records_sql("SELECT id, userid, courseid | ||
FROM {$CFG->prefix}user_lastaccess | ||
WHERE courseid != ".SITEID." | ||
AND timeaccess < $cutofftime "); | ||
} | ||
|
||
/** | ||
* Full list of users that have not yet confirmed their accounts. | ||
* TODO: Delete this for Moodle 2.0 | ||
* | ||
* @uses $CFG | ||
* @deprecated The query is executed directly within admin/cron.php (MDL-11487) | ||
* @param string $cutofftime ? | ||
* @return object {@link $USER} records | ||
*/ | ||
function get_users_unconfirmed($cutofftime=2000000000) { | ||
global $CFG; | ||
return get_records_sql("SELECT * | ||
FROM {$CFG->prefix}user | ||
WHERE confirmed = 0 | ||
AND firstaccess > 0 | ||
AND firstaccess < $cutofftime"); | ||
} | ||
|
||
/** | ||
* Full list of bogus accounts that are probably not ever going to be used | ||
* TODO: Delete this for Moodle 2.0 | ||
* | ||
* @uses $CFG | ||
* @deprecated The query is executed directly within admin/cron.php (MDL-11487) | ||
* @param string $cutofftime ? | ||
* @return object {@link $USER} records | ||
*/ | ||
function get_users_not_fully_set_up($cutofftime=2000000000) { | ||
global $CFG; | ||
return get_records_sql("SELECT * | ||
FROM {$CFG->prefix}user | ||
WHERE confirmed = 1 | ||
AND lastaccess > 0 | ||
AND lastaccess < $cutofftime | ||
AND deleted = 0 | ||
AND (lastname = '' OR firstname = '' OR email = '')"); | ||
} | ||
|
||
/** | ||
* Returns SQL to be used as a subselect to find the primary role of users. | ||
* Geoff Cant <[email protected]> (the author) is very keen for this to | ||
|