Hi all
Why does addValidator() throw breakChainOnFailure out when adding a validator to a File element?
This is the code for Zend_Form_Element_File::addValidator():
public function addValidator($validator, $breakChainOnFailure = false, $options = array())
{
$adapter = $this->getTransferAdapter();
$adapter->addValidator($validator, $options);
return $this;
}
As you can see $breakChainOnFailure is being ignored.
- Neil
Why does addValidator() throw breakChainOnFailure out when adding a validator to a File element?
This is the code for Zend_Form_Element_File::addValidator():
public function addValidator($validator, $breakChainOnFailure = false, $options = array())
{
$adapter = $this->getTransferAdapter();
$adapter->addValidator($validator, $options);
return $this;
}
As you can see $breakChainOnFailure is being ignored.
- Neil
没有评论:
发表评论