- global $globals;
- $this->Validate($_uid, true, 'orange');
- $this->promo_sortie = $_sortie;
- $res = $globals->xdb->query("SELECT promo FROM auth_user_md5 WHERE user_id = {?}", $_uid);
- $this->promo = $res->fetchOneCell();
+ parent::__construct($_user, true, 'orange');
+ $this->newGradYear = $_newGradYear;
+ $res = XDB::query("SELECT entry_year, grad_year
+ FROM profile_education
+ WHERE pid = {?} AND FIND_IN_SET('primary', flags)", $this->user->profile()->id());
+ $years = $res->fetchOneRow();
+ $this->entryYear = $years[0];
+ $this->oldGradYear = $years[1];