#012345: ezcInputForm->isValid()

Description:

It would be handy to have a fast method to check, if all elements are valid. The same information can be taken by if( empty( $form->getInvalidProperties() ) ), but runs an unnecessary foreach.

The implementation is trivial. In parseInput():
$this->isValid = true;

and in lines 221 and 236:
$this->properties[$elementName] = ezcInputForm::INVALID;
$this->isValid = false;

public function isValid() { return $this->isValid; }


Environment:

Operating System:
PHP Version: (please be specific, like '4.4.3' or '5.1.5')
Database and version:
Browser (and version):


- Attachments

No attachments for this issue.


- Comments

Implemented in rev. 7953.

#256654 by Derick Rethans on May 9th, 2008 [Permanent Link]

- History
Properties
Type Enhancement
Priority Medium
Component Components » UserInput
Affects Unknown
Fix Version 2008.1beta1 - eZ components 2008.1beta1
Reporter Thomas Koch
Responsible Derick Rethans
Status 0 Closed
Resolution Implemented
Created January 8th, 2008
Updated May 9th, 2008
Resolved May 9th, 2008
 
Navigation [Permanent Link]
Previous Issue
Back to Issues List
Next Issue: #016986
  Create Factory for Node, VariableHandler and ServiceObjects