protected function add_result($result) {
        if (is_array($result)) {
            // Adding the result to the oldest parent.
            if ($this->get_parent()) {
                $parent = $this->get_grandparent();
                $parent->add_result($result);
            } else {
                $this->results = array_merge($this->results, $result);
            }
        }
    }
protected function add_result($result) {
        if (is_array($result)) {
            // Adding the result to the oldest parent.
            if ($this->get_parent()) {
                $parent = $this->get_grandparent();
                $parent->add_result($result);
            } else {
                $this->results = array_merge($this->results, $result);
            }
        }
    }
protected function add_result ( $ result ) { if ( is_array ( $ result ) ) { // Adding the result to the oldest parent. if ( $ this -> get_parent ( ) ) { $ parent = $ this -> get_grandparent ( ) ; $ parent -> add_result ( $ result ) ; } else { $ this -> results = array_merge ( $ this -> results , $ result ) ; } } }
Saves the results to an array

@param array $result associative array
@return void
Saves the results to an array