X-Git-Url: http://git.polytechnique.org/?a=blobdiff_plain;f=include%2Fufbuilder.inc.php;h=55de5e5ffb179482d235d718de5afe077b831a33;hb=da40b2a4216f093da983f3ec6f7d9e9cf9497e2d;hp=09dc307dd242d65d99d33b487764710a42fa4024;hpb=5f0ecf6ce6e006d4e494ddc8e126a0695980f173;p=platal.git diff --git a/include/ufbuilder.inc.php b/include/ufbuilder.inc.php index 09dc307..55de5e5 100644 --- a/include/ufbuilder.inc.php +++ b/include/ufbuilder.inc.php @@ -190,7 +190,6 @@ class UFB_AdvancedSearch extends UserFilterBuilder new UFBF_AdminArea('region', 'Région'), new UFBF_JobCompany('entreprise', 'Entreprise'), - new UFBF_JobSector('sector', 'Poste'), new UFBF_JobDescription('jobdescription', 'Fonction'), new UFBF_JobCv('cv', 'CV'), new UFBF_JobTerms('jobterm', 'Mots-clefs'), @@ -833,29 +832,6 @@ class UFBF_JobCompany extends UFBF_Text } // }}} -// {{{ class UFBF_JobSector -class UFBF_JobSector extends UFBF_Mixed -{ - protected $direnum = DirEnum::SECTORS; - private $onlymentorfield; - - public function __construct($envfieldtext, $envfieldindex, $formtext = '', $onlymentorfield = 'only_referent') - { - parent::__construct($envfieldtext, $envfieldindex, $formtext); - $this->onlymentorfield = $onlymentorfield; - } - - protected function buildUFC(UserFilterBuilder &$ufb) - { - if ($ufb->isOn($this->onlymentorfield)) { - return new UFC_Mentor_Sectorization($this->val, UserFilter::JOB_SUBSECTOR); - } else { - return new UFC_Job_Sectorization($this->val, UserFilter::JOB_SUBSUBSECTOR); - } - } -} -// }}} - // {{{ class UFBF_JobTerms class UFBF_JobTerms extends UFBF_Index { @@ -1081,24 +1057,6 @@ class UFBF_MentorTerm extends UFBF_Index } // }}} -// {{{ class UFBF_MentorSectorization -class UFBF_MentorSectorization extends UFBF_Index -{ - protected $type; - - public function __construct($envfield, $formtext = '', $type = UFC_Mentor_Sectorization::SECTOR) - { - parent::__construct($envfield, $formtext); - $this->type = $type; - } - - protected function buildUFC(UserFilterBuilder &$ufb) - { - return new UFC_Mentor_Sectorization($this->val, $this->type); - } -} -// }}} - // {{{ class UFBF_MentorExpertise class UFBF_MentorExpertise extends UFBF_Text {