+}
+
+class MinificheView extends ProfileView
+{
+ public function __construct(PlSet &$set, $data, array $params)
+ {
+ require_once 'education.func.inc.php';
+ global $globals;
+ $this->entriesPerPage = $globals->search->per_page;
+ if (@$params['with_score']) {
+ $this->addSort(new PlViewOrder('score', array(
+ new UFO_Score(true),
+ new UFO_ProfileUpdate(true),
+ new UFO_Promo(UserFilter::DISPLAY, true),
+ new UFO_Name(Profile::DN_SORT),
+ ), 'pertinence'));
+ }
+ $this->addSort(new PlViewOrder(
+ 'name',
+ array(new UFO_Name(Profile::DN_SORT)),
+ 'nom'));
+ $this->addSort(new PlViewOrder('promo', array(
+ new UFO_Promo(UserFilter::DISPLAY, true),
+ new UFO_Name(Profile::DN_SORT),
+ ), 'promotion'));
+ $this->addSort(new PlViewOrder('date_mod', array(
+ new UFO_ProfileUpdate(true),
+ new UFO_Promo(UserFilter::DISPLAY, true),
+ new UFO_Name(Profile::DN_SORT),
+ ), 'dernière modification'));
+ parent::__construct($set, $data, $params);
+ }