From: Florent Bruneau Date: Mon, 31 Jan 2011 19:29:26 +0000 (+0100) Subject: Merge fail (bis). X-Git-Tag: xorg/1.1.0~157 X-Git-Url: http://git.polytechnique.org/?a=commitdiff_plain;h=3fff1bdd0249f2ad4604b4305099583c407e01a0;p=platal.git Merge fail (bis). Signed-off-by: Florent Bruneau --- diff --git a/include/ufbuilder.inc.php b/include/ufbuilder.inc.php index b3233e1..2c39237 100644 --- a/include/ufbuilder.inc.php +++ b/include/ufbuilder.inc.php @@ -1114,32 +1114,6 @@ class UFBF_SubAdminArea extends UFBF_Index } // }}} -// {{{ class UFBF_SubAdminArea -class UFBF_SubAdminArea extends UFBF_Index -{ - protected $direnum = DirEnum::SUBADMINAREAS; - protected $onlycurrentfield; - - public function __construct($envfield, $formtext = '', $onlycurrentfield = 'only_current') - { - parent::__construct($envfield, $formtext); - $this->onlycurrentfield = $onlycurrentfield; - } - - - protected function buildUFC(UserFilterBuilder &$ufb) - { - if ($ufb->isOn($this->onlycurrentfield)) { - $flags = UFC_Address::FLAG_CURRENT; - } else { - $flags = UFC_Address::FLAG_ANY; - } - - return new UFC_AddressField($this->val, UFC_AddressField::FIELD_SUBADMAREA, UFC_Address::TYPE_ANY, $flags); - } -} -// }}} - // {{{ class UFBF_JobCompany class UFBF_JobCompany extends UFBF_Text {