public function build() { $output = ""; if (parent::build() === false) { return; } switch ($this->status) { case "disabled": case "show": if ($this->type == 'hidden' || $this->value == "") { $output = ""; } elseif (!isset($this->value)) { $output = $this->layout['null_label']; } else { $output = "********"; } $output = "<div class='help-block'>" . $output . " </div>"; break; case "create": case "modify": $output = Form::password($this->name, $this->attributes); break; case "hidden": $output = ""; break; default: } $this->output = "\n" . $output . "\n" . $this->extra_output . "\n"; }