X-Git-Url: http://git.polytechnique.org/?a=blobdiff_plain;ds=sidebyside;f=include%2Fnotifs.inc.php;h=a47e27f9baf9a189be868d0fd701c18a57590050;hb=5aed580a3a092b460ecfa5ea398c822b9aa904da;hp=3e173e9254c7abd83f3fff5923558a8c1246bf5c;hpb=e947c4219e887adb7151d3ba808faf40d0a973d3;p=platal.git diff --git a/include/notifs.inc.php b/include/notifs.inc.php index 3e173e9..a47e27f 100644 --- a/include/notifs.inc.php +++ b/include/notifs.inc.php @@ -1,6 +1,6 @@ id(), $field); } protected function buildCondition(Watch $watch) { + $this->date = $watch->date(); return new PFC_And(new UFC_ProfileUpdated('>', $watch->date()), $watch->contactCondition()); } @@ -97,23 +100,6 @@ class WatchProfileUpdate extends WatchOperation return $user->profile()->last_change; } - static private $descriptions = array('search_names' => 'L\'un de ses noms', - 'freetext' => 'Le texte libre', - 'mobile' => 'Son numéro de téléphone portable', - 'nationalite' => 'Sa nationalité', - 'nationalite2' => 'Sa seconde nationalité', - 'nationalite3' => 'Sa troisième nationalité', - 'nick' => 'Son surnom', - 'networking' => 'La liste de ses adresses de networking', - 'edus' => 'Ses formations', - 'addresses' => 'Ses adresses', - 'section' => 'Sa section sportive', - 'binets' => 'La liste de ses binets', - 'medals' => 'Ses décorations', - 'cv' => 'Son Curriculum Vitae', - 'corps' => 'Son Corps d\'État', - 'jobs' => 'Ses informations professionnelles', - 'photo' => 'Sa photographie'); public function getData(PlUser &$user) { $data = XDB::fetchColumn("SELECT field @@ -126,7 +112,7 @@ class WatchProfileUpdate extends WatchOperation } else { $text = array(); foreach ($data as $f) { - $text[] = self::$descriptions[$f]; + $text[] = Profile::$descriptions[$f]; } return $text; }