/** * Returns the checkbox form form the belonging option */ public function showBelongingForm(array $a) { $b; if (in_array($this->title, $a)) { $b = 1; } $form = new Form(); return $form->checkBoxVal("belongingPlaces[]", $this->title, $b, ""); }
public function field($class) { $form = new Form(); return "<h4>" . $this->description . " " . $form->checkBoxVal("published", 1, $this->value, $class) . "</h4>"; }