public function __construct($link, $result = false) { $this->_link = $link; $this->_result = $result; $this->_affected = $link->affected_rows; }