Permalink
Browse files

setAttr() conforms more to jQuery/HtmlEntity standard

  • Loading branch information...
1 parent 976f474 commit 119248b3f5f45ae8ad6473890d22f4c1e16c266f @romaninsh romaninsh committed Mar 14, 2011
Showing with 3 additions and 0 deletions.
  1. +3 −0 lib/Form/Field.php
View
@@ -108,6 +108,9 @@ function setProperty($property,$value){
$this->attr[$property]=$value;
return $this;
}
+ function setAttr($property,$value='true'){
+ return $this->setProperty($property,$value);
+ }
function setFieldHint($var_args=null){
/* Adds a hint after this field. Thes will call Field_Hint->set()
with same arguments you called this funciton.

0 comments on commit 119248b

Please sign in to comment.