/** * This method checks if an action is valid and either returns a result * or an error, as appropriate. * * @access private * * @param boolean $result * @return boolean */ function _validateResult($result) { if ($result) { return true; } else { $this->raiseError($this->_dllCampaign->getLastError()); return false; } }