Author: jablko
Date: Mon Sep 14 11:09:43 2009
New Revision: 3260
Log:
Make ->label() generic
Modified:
trunk/lib/vendor/symfony/lib/form/sfFormField.class.php
Modified: trunk/lib/vendor/symfony/lib/form/sfFormField.class.php
==============================================================================
--- trunk/lib/vendor/symfony/lib/form/sfFormField.class.php Mon Sep 14
06:11:18 2009 (r3259)
+++ trunk/lib/vendor/symfony/lib/form/sfFormField.class.php Mon Sep 14
11:09:43 2009 (r3260)
@@ -306,10 +306,13 @@
return !is_null($this->error) && count($this->error);
}
- public function label($label)
+ public function __call($name, $args)
{
$clone = clone $this;
- $clone->parent->getWidget()->setLabel($clone->name, $label);
+
+ array_unshift($args, $name);
+
+
call_user_func_array(array($clone->parent->getWidget()->offsetGet($clone->name),
'setOption'), $args);
return $clone;
}
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Qubit Toolkit Commits" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.ca/group/qubit-commits?hl=en
-~----------~----~----~----~------~----~------~--~---