/** * @desc Constructs a FormFieldMemberSanction. * @param string $id Field id * @param string $label Field label * @param timestamp $value Default value * @param string[] $field_options Map of the field options (this field has no specific option, there are only the inherited ones) * @param FormFieldConstraint List of the constraints */ public function __construct($id, $label, $value = 0, $field_options = array(), array $constraints = array()) { $this->load_lang(); $this->timestamp = $value; parent::__construct($id, $label, $this->get_time_value(), $this->generate_options(), $field_options, $constraints); }
/** * @desc Constructs a FormFieldRanksSelect. * @param string $id Field id * @param string $label Field label * @param mixed $value Default value (either a FormFieldEnumOption object or a string corresponding to the FormFieldEnumOption's raw value) * @param string[] $field_options Map of the field options (this field has no specific option, there are only the inherited ones) * @param FormFieldConstraint List of the constraints */ public function __construct($id, $label, $value = 0, $field_options = array(), array $constraints = array()) { parent::__construct($id, $label, $value, $this->generate_options(), $field_options, $constraints); }
/** * @desc Constructs a FormFieldCategoriesSelect. * @param string $id Field id * @param string $label Field label * @param mixed $value Default value (either a FormFieldEnumOption object or a string corresponding to the FormFieldEnumOption's raw value) * @param string[] $field_options Map of the field options (this field has no specific option, there are only the inherited ones) */ public function __construct($id, $label, $value = 0, SearchCategoryChildrensOptions $search_category_children_options, $field_options = array(), CategoriesCache $categories_cache) { $this->categories_cache = $categories_cache; $this->search_category_children_options = $search_category_children_options; parent::__construct($id, $label, $value, $this->generate_options($value), $field_options); }