示例#1
0
 function isValid()
 {
     if ($this->method == 'post' && count($_POST) || $this->method == 'get' && count($_GET) > 1) {
         for ($i = 0; $i < count($this->components); ++$i) {
             if (JxObjectDraw::validComponent($this->components[$i])) {
                 $this->components[$i]->isValid();
             }
         }
         $this->errors = $this->getErrors();
         if (!count($this->errors)) {
             return true;
         }
     }
     return false;
 }
示例#2
0
 /**
  * isValid
  *
  * Run valid components isValid() functions.
  *
  * @author Joe Stump <*****@*****.**>
  * @access public
  * @return void
  * @todo Figure out if this function is used and how it is used
  * @todo Find out if this function is overridden
  */
 function isValid()
 {
     for ($i = 0; $i < count($this->components); ++$i) {
         if (JxObjectDraw::validComponent($this->components[$i])) {
             $this->components[$i]->isValid();
         }
     }
 }