X-Git-Url: http://git.polytechnique.org/?a=blobdiff_plain;f=include%2Fgoogleapps.inc.php;h=7449a3a02beef3a0f20630391d54a98ee36a7fa9;hb=9e1816c7666767755abbc24f6a0df290efff81b6;hp=71853c4d941d63b91cc2bc9d6d46594f171e2286;hpb=ced003168bf3b75a29313c727fe28d65cb03057c;p=platal.git diff --git a/include/googleapps.inc.php b/include/googleapps.inc.php index 71853c4..7449a3a 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) {