X-Git-Url: http://git.polytechnique.org/?a=blobdiff_plain;f=include%2Fgoogleapps.inc.php;h=bb7882336f163e578b57bfad5db74560776e66da;hb=5991ff1d920ff7503335d273f4c92054f9ba17d6;hp=b90a7492e4ace18f0dc01205388fbf620d0f4934;hpb=7679a55aa7f1016e45ccf4df79b7e41440c9cce6;p=platal.git diff --git a/include/googleapps.inc.php b/include/googleapps.inc.php index b90a749..bb78823 100644 --- a/include/googleapps.inc.php +++ b/include/googleapps.inc.php @@ -1,6 +1,6 @@ g_status == 'disabled'; } + // Loads and returns the list of nicknames for the user. + public function nicknames() + { + if ($this->nicknames == null) { + $res = XDB::query( + "SELECT g_nickname + FROM gapps_nicknames + WHERE g_account_name = {?} + ORDER BY g_nickname", + $this->g_account_name); + $this->nicknames = $res->fetchColumn(); + } + return $this->nicknames; + } + // Changes the GoogleApps password. public function set_password($password) {