*
* @package CRM
* @copyright CiviCRM LLC (c) 2004-2015
- * $Id$
- *
*/
class CRM_Core_I18n_Schema {
/**
* Drop all views (for use by CRM_Core_DAO::dropAllTables() mostly).
- *
- * @return void
*/
public static function dropAllViews() {
$domain = new CRM_Core_DAO_Domain();
*
* @param string $locale
* the first locale to create (migrate to).
- *
- * @return void
*/
public static function makeMultilingual($locale) {
$domain = new CRM_Core_DAO_Domain();
*
* @param string $retain
* the locale to retain.
- *
- * @return void
*/
public static function makeSinglelingual($retain) {
$domain = new CRM_Core_DAO_Domain();
* schema structure class to use to recreate indices.
*
* @param array $triggers
- *
- * @return void
*/
public static function makeSinglelingualTable(
$retain,
* the new locale to add.
* @param string $source
* the locale to copy from.
- *
- * @return void
*/
public static function addLocale($locale, $source) {
// get the current supported locales
* locales to be rebuilt.
* @param string $version
* version of schema structure to use.
- *
- * @return void
*/
public static function rebuildMultilingualSchema($locales, $version = NULL) {
if ($version) {
*
* @package CRM
* @copyright CiviCRM LLC (c) 2004-2015
- * $Id$
- *
*/
abstract class CRM_Core_Page_Basic extends CRM_Core_Page {
*
* @param CRM_Core_Controller $controller
* The controller object.
- *
- * @return void
*/
public function addValues($controller) {
}
/**
* Run the basic page (run essentially starts execution for that page).
- *
- * @return void
*/
public function run() {
// CRM-9034
- // dont see args or pageArgs being used, so we should
+ // do not see args or pageArgs being used, so we should
// consider eliminating them in a future version
$n = func_num_args();
$args = ($n > 0) ? func_get_arg(0) : NULL;
/**
* Browse all entities.
- *
- * @return void
*/
public function browse() {
$n = func_num_args();
* The permission assigned to this object.
*
* @param bool $forceAction
- *
- * @return void
*/
public function action(&$object, $action, &$values, &$links, $permission, $forceAction = FALSE) {
$values['class'] = '';
*
* @param bool $imageUpload
* @param bool $pushUserContext
- *
- * @return void
*/
public function edit($mode, $id = NULL, $imageUpload = FALSE, $pushUserContext = TRUE) {
$controller = new CRM_Core_Controller_Simple($this->editForm(),
* limitations under the License.
*/
-/* This is the response handler code that will be invoked every time
- * a notification or request is sent by the Google Server
+/**
+ * Response handler code.
+ *
+ * This will be invoked every time a notification or request is sent by the Google Server.
*
* To allow this code to receive responses, the url for this file
* must be set on the seller page under Settings->Integration as the
* To use this code for merchant-calculated feedback, this url must be
* set also as the merchant-calculations-url when the cart is posted
* Depending on your calculations for shipping, taxes, coupons and gift
- * certificates update parts of the code as required
- *
+ * certificates update parts of the code as required.
*/
-
define('GOOGLE_DEBUG_PP', 0);
/**
- * Class CRM_Core_Payment_GoogleIPN
+ * Class CRM_Core_Payment_GoogleIPN.
*/
class CRM_Core_Payment_GoogleIPN extends CRM_Core_Payment_BaseIPN {
* @param array $privateData
* Contains the name value pair of <merchant-private-data>.
*
- * @param $component
+ * @param string $component
*
- * @return void
+ * @return bool
*/
public function newOrderNotify($dataRoot, $privateData, $component) {
$ids = $input = $params = array();
if ($ids['contributionRecur']) {
if ($objects['contributionRecur']->invoice_id == $dataRoot['serial-number']) {
CRM_Core_Error::debug_log_message("The new order notification already handled: {$dataRoot['serial-number']}.");
- return;
+ return FALSE;
}
else {
$transaction = new CRM_Core_Transaction();
$contribution = &$objects['contribution'];
if ($contribution->invoice_id != $input['invoice']) {
- CRM_Core_Error::debug_log_message("Invoice values dont match between database and IPN request");
- return;
+ CRM_Core_Error::debug_log_message("Invoice values don't match between database and IPN request");
+ return FALSE;
}
// lets replace invoice-id with google-order-number because thats what is common and unique
if ($contribution->total_amount != $input['amount']) {
CRM_Core_Error::debug_log_message("Amount values dont match between database and IPN request");
- return;
+ return FALSE;
}
if (!$this->getInput($input, $ids, $dataRoot)) {
// check if contribution is already completed, if so we ignore this ipn
if ($contribution->contribution_status_id == 1) {
CRM_Core_Error::debug_log_message("returning since contribution has already been handled");
- return;
+ return FALSE;
}
else {
/* Since trxn_id hasn't got any use here,
* @param array $privateData
* Contains the name value pair of <merchant-private-data>.
*
- * @param $component
+ * @param string $component
*
- * @return void
+ * @return bool
*/
public function orderStateChange($status, $dataRoot, $privateData, $component) {
$input = $objects = $ids = array();
if (!$contribution->find(TRUE)) {
CRM_Core_Error::debug_log_message("orderStateChange: Could not find contribution record with invoice id: $serial");
- return;
+ return FALSE;
}
// Google sends the charged notification twice.
// So to make sure, code is not executed again.
if ($contribution->contribution_status_id == 1) {
CRM_Core_Error::debug_log_message("Contribution already handled (ContributionID = {$contribution->id}).");
- return;
+ return FALSE;
}
// make sure invoice is set to serial no for recurring payments, to avoid violating uniqueness
*
* @package CRM
* @copyright CiviCRM LLC (c) 2004-2015
- * $Id$
- *
*/
class CRM_Core_Payment_PayPalProIPN extends CRM_Core_Payment_BaseIPN {
* @param array $ids
* @param array $objects
* @param bool $first
- * @return void|bool
+ * @return bool
*/
public function recur(&$input, &$ids, &$objects, $first) {
if (!isset($input['txnType'])) {
&& !empty($recur->processor_id)
) {
echo "already handled";
- return;
+ return FALSE;
}
$recur->create_date = $now;
$recur->contribution_status_id = 2;
if ($this->retrieve('profile_status', 'String') == 'Expired') {
if (!empty($recur->end_date)) {
echo "already handled";
- return;
+ return FALSE;
}
$recur->contribution_status_id = 1;
$recur->end_date = $now;
}
if ($txnType != 'recurring_payment') {
- return;
+ return TRUE;
}
if (!$first) {
* (with the input parameters) & call this & all will be done
*
* @todo the references to POST throughout this class need to be removed
- * @return void|bool
+ * @return bool
*/
public function main() {
CRM_Core_Error::debug_var('GET', $_GET, TRUE, TRUE);
CRM_Core_Error::debug_var('POST', $_POST, TRUE, TRUE);
if ($this->_isPaymentExpress) {
$this->handlePaymentExpress();
- return NULL;
+ return FALSE;
}
$objects = $ids = $input = array();
$this->_component = $input['component'] = self::getValue('m');
*/
/**
- * Class CRM_Core_Payment_PayflowPro
+ * Class CRM_Core_Payment_PayflowPro.
*/
class CRM_Core_Payment_PayflowPro extends CRM_Core_Payment {
// (not used, implicit in the API, might need to convert?)
*
* @param string $mode
* The mode of operation: live or test.
- *
- * @return void
- */
- /**
- * @param $mode
* @param $paymentProcessor
*/
public function __construct($mode, &$paymentProcessor) {
*
* @package CRM
* @copyright CiviCRM LLC (c) 2004-2015
- * $Id$
- *
*/
require_once 'HTML/QuickForm/Action.php';
/**
* Returns the user to the top of the user context stack.
- *
- * @return void
*/
public function popUserContext() {
$session = CRM_Core_Session::singleton();
*
* @package CRM
* @copyright CiviCRM LLC (c) 2004-2015
- * $Id$
- *
*/
class CRM_Core_QuickForm_Action_Back extends CRM_Core_QuickForm_Action {
* The current form-page.
* @param string $actionName
* Current action name, as one Action object can serve multiple actions.
- *
- * @return void
*/
public function perform(&$page, $actionName) {
$this->_stateMachine->perform($page, $actionName, 'Back');
*
* @package CRM
* @copyright CiviCRM LLC (c) 2004-2015
- * $Id$
- *
*/
class CRM_Core_QuickForm_Action_Cancel extends CRM_Core_QuickForm_Action {
* CRM_Core_Form the current form-page.
* @param string $actionName
* Current action name, as one Action object can serve multiple actions.
- *
- * @return void
*/
public function perform(&$page, $actionName) {
// conditional actions if cancelAction is defined
*
* @package CRM
* @copyright CiviCRM LLC (c) 2004-2015
- * $Id$
- *
*/
class CRM_Core_QuickForm_Action_Display extends CRM_Core_QuickForm_Action {
* @param string $actionName
* Current action name, as one Action object can serve multiple actions.
*
- * @return void
+ * @return object|void
*/
public function perform(&$page, $actionName) {
$pageName = $page->getAttribute('id');
*
* @param CRM_Core_Form $page
* The CRM_Core_Form page.
- *
- *
- * @return void
*/
public function renderForm(&$page) {
$this->_setRenderTemplates($page);
*
* @param CRM_Core_Form $page
* The CRM_Core_Form page.
- *
- * @return void
*/
public function _setRenderTemplates(&$page) {
if (self::$_requiredTemplate === NULL) {
/**
* Initialize the various templates.
- *
- * @return void
*/
public function initializeTemplates() {
if (self::$_requiredTemplate !== NULL) {
*
* @package CRM
* @copyright CiviCRM LLC (c) 2004-2015
- * $Id$
- *
*/
class CRM_Core_QuickForm_Action_Done extends CRM_Core_QuickForm_Action {
* @param string $actionName
* Current action name, as one Action object can serve multiple actions.
*
- * @return void
+ * @return object|void
*/
public function perform(&$page, $actionName) {
$page->isFormBuilt() or $page->buildForm();