X-Git-Url: http://git.polytechnique.org/?a=blobdiff_plain;f=include%2Fgoogleapps.inc.php;h=f5513803b99bb8fe55403297732fd14fd1b4b9b8;hb=cd7a9c53f9dfb4c2d33f9340feadcc3dbcfc1876;hp=b90a7492e4ace18f0dc01205388fbf620d0f4934;hpb=7679a55aa7f1016e45ccf4df79b7e41440c9cce6;p=platal.git diff --git a/include/googleapps.inc.php b/include/googleapps.inc.php index b90a749..f551380 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) {