*
* @param string $returnColumn
* @param bool $includePetitionActivityType
+ *
+ * @return string
*/
public static function getSurveyActivityType($returnColumn = 'label', $includePetitionActivityType = FALSE) {
static $activityTypes;
* Whether to actually restore, not delete.
* @param bool $skipUndelete
* Whether to force contact delete or not.
+ * @param bool $checkPermissions
*
* @return bool
* Was contact deleted?
}
/**
- * @param $contactIds
+ * Add imported contacts.
+ *
+ * @param array $contactIds
* @param string $newGroupName
- * @param $newGroupDesc
+ * @param string $newGroupDesc
+ * @param string $newGroupType
*
* @return array|bool
*/
'get' => array('access CiviCRM'),
'default' => array(
// nested array = OR
- array('administer CiviCampaign', 'manage campaign')
+ array('administer CiviCampaign', 'manage campaign'),
),
);
$permissions['survey'] = $permissions['campaign'];
$ids = $objects = $input = array();
if ($x_subscription_id) {
- //Approved
-
+ // Presence of the id means it is approved.
$input['component'] = $component;
// load post vars in $input
}
/**
- * @param $input
- * @param $ids
+ * Get the input from passed in fields.
+ *
+ * @param array $input
+ * @param array $ids
*
* @return bool
*/
}
/**
- * @param $ids
- * @param $input
+ * Get ids from input.
+ *
+ * @param array $ids
+ * @param array $input
+ *
+ * @throws \CRM_Core_Exception
*/
public function getIDs(&$ids, &$input) {
$ids['contact'] = $this->retrieve('x_cust_id', 'Integer', FALSE, 0);
// FIXME: figure out fields for event
}
else {
- // get the optional ids
-
// Get membershipId. Join with membership payment table for additional checks
$sql = "
SELECT m.id
*
* @return array
* the result in an nice formatted array (or an error object)
+ * @throws \Civi\Payment\Exception\PaymentProcessorException
*/
protected function setExpressCheckOut(&$params) {
$args = array();
* the mode of operation, can be add, view, edit, delete
* @param bool $force
*
+ * @return bool
*/
public static function checkPermissionedLineItems($id, $op, $force = TRUE) {
if (!self::isACLFinancialTypeStatus()) {
}
/**
+ * Create mailing job.
+ *
* @param array $params
*
- * @return CRM_Mailing_BAO_MailingJob
+ * @return \CRM_Mailing_BAO_MailingJob
+ * @throws \CRM_Core_Exception
*/
static public function create($params) {
$job = new CRM_Mailing_BAO_MailingJob();
}
/**
- * Initiate all pending/ready jobs
+ * Initiate all pending/ready jobs.
*
* @param array $testParams
- * @param null $mode
+ * @param string $mode
+ *
+ * @return bool|null
*/
public static function runJobs($testParams = NULL, $mode = NULL) {
$job = new CRM_Mailing_BAO_MailingJob();
*/
public static function &reply($job_id, $queue_id, $hash, $replyto = NULL) {
// First make sure there's a matching queue event.
-
$q = CRM_Mailing_Event_BAO_Queue::verify($job_id, $queue_id, $hash);
$success = NULL;
);
// TODO: do we need reply tokens?
-
$html = $component->body_html;
if ($component->body_text) {
$text = $component->body_text;
*
* @package CRM
* @copyright CiviCRM LLC (c) 2004-2017
- * $Id$
- *
*/
class CRM_UF_Form_AdvanceSetting extends CRM_UF_Form_Group {
/**
- * Build the form object for Advance Settings.
- *
+ * Build the form object for Advanced Settings.
*
* @param CRM_Core_Form $form
- *
- * @return void
*/
public static function buildAdvanceSetting(&$form) {
// should mapping be enabled for this group
*
* @package CRM
* @copyright CiviCRM LLC (c) 2004-2017
- * $Id$
- *
*/
/**