public function getAllErrors() {

        $errors = array();
        // First the structure itself
        if ($this->getError()) {
            $errors[] = $this->getError();
        }
        // Delegate to tables
        if ($this->tables) {
            foreach ($this->tables as $table) {
                if ($tableerrors = $table->getAllErrors()) {

                }
            }
            // Add them to the errors array
            if ($tableerrors) {
                $errors = array_merge($errors, $tableerrors);
            }
        }
        // Return decision
        if (count($errors)) {
            return $errors;
        } else {
            return false;
        }
    }
public function getAllErrors() {

        $errors = array();
        // First the structure itself
        if ($this->getError()) {
            $errors[] = $this->getError();
        }
        // Delegate to tables
        if ($this->tables) {
            foreach ($this->tables as $table) {
                if ($tableerrors = $table->getAllErrors()) {

                }
            }
            // Add them to the errors array
            if ($tableerrors) {
                $errors = array_merge($errors, $tableerrors);
            }
        }
        // Return decision
        if (count($errors)) {
            return $errors;
        } else {
            return false;
        }
    }
public function getAllErrors ( ) { $ errors = array ( ) ; // First the structure itself if ( $ this -> getError ( ) ) { $ errors [ ] = $ this -> getError ( ) ; } // Delegate to tables if ( $ this -> tables ) { foreach ( $ this -> tables as $ table ) { if ( $ tableerrors = $ table -> getAllErrors ( ) ) { } } // Add them to the errors array if ( $ tableerrors ) { $ errors = array_merge ( $ errors , $ tableerrors ) ; } } // Return decision if ( count ( $ errors ) ) { return $ errors ; } else { return false ; } }
This function will return all the errors found in one structure
looking recursively inside each table. Returns
an array of errors or false
@return mixed
This function will return all the errors found in one structure looking recursively inside each table . Returns an array of errors or false