public function add_result($result) {
        if (!is_null($this->plan)) {
            $this->plan->add_result($result);
        } else {
            debugging('Attempting to add a result of a task not binded with a plan', DEBUG_DEVELOPER);
        }
    }
public function add_result($result) {
        if (!is_null($this->plan)) {
            $this->plan->add_result($result);
        } else {
            debugging('Attempting to add a result of a task not binded with a plan', DEBUG_DEVELOPER);
        }
    }
public function add_result ( $ result ) { if ( ! is_null ( $ this -> plan ) ) { $ this -> plan -> add_result ( $ result ) ; } else { debugging ( 'Attempting to add a result of a task not binded with a plan' , DEBUG_DEVELOPER ) ; } }
Add the given info to the current plan's results.

@see base_plan::add_result()
@param array $result associative array describing a result of a task/step
Add the given info to the current plan s results .