Skip to content

Commit

Permalink
Method for setting fields required
Browse files Browse the repository at this point in the history
  • Loading branch information
bergie committed Dec 11, 2012
1 parent e073250 commit be15a67
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions field.php
Expand Up @@ -77,6 +77,11 @@ public function set_readonly($readonly = true)
$this->readonly = (bool) $readonly;
}

public function set_required($required = true)
{
$this->required = (bool) $required;
}

public function set_value($value)
{
$this->value = $value;
Expand Down

0 comments on commit be15a67

Please sign in to comment.