X-Git-Url: http://git.polytechnique.org/?a=blobdiff_plain;f=include%2Fgoogleapps.inc.php;h=accc779e190ec51e5943e5cb087ab7a70883a5c1;hb=8230e9f8eff954fb1103c8bdcf0d22557d419ae7;hp=fb9d52c98658634b2bd951c7bb2b15e94c3d9f5b;hpb=21c7c593d7100a887f984c49a82c03eb32169fc4;p=platal.git diff --git a/include/googleapps.inc.php b/include/googleapps.inc.php index fb9d52c..accc779 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) {