*
*/
class CRM_Campaign_BAO_Petition extends CRM_Campaign_BAO_Survey {
+ /**
+ *
+ */
function __construct() {
parent::__construct();
// expire cookie in one day
return $activity;
}
+ /**
+ * @param $activity_id
+ * @param $contact_id
+ * @param $petition_id
+ *
+ * @return bool
+ */
function confirmSignature($activity_id, $contact_id, $petition_id) {
// change activity status to completed (status_id = 2)
// I wonder why do we need contact_id when we have activity_id anyway? [chastell]
/**
* Function to get Petition Signature Total
*
- * @param boolean $all
- * @param int $id
+ * @param $surveyId
+ *
+ * @return array
+ * @internal param bool $all
+ * @internal param int $id
* @static
*/
static function getPetitionSignatureTotalbyCountry($surveyId) {
/**
* Function to get Petition Signature Total
*
- * @param boolean $all
- * @param int $id
+ * @param $surveyId
+ *
+ * @return array
+ * @internal param bool $all
+ * @internal param int $id
* @static
*/
static function getPetitionSignatureTotal($surveyId) {
}
+ /**
+ * @param null $surveyId
+ *
+ * @return array
+ */
public static function getSurveyInfo($surveyId = NULL) {
$surveyInfo = array();
/**
* Function to get Petition Signature Details
*
- * @param boolean $all
- * @param int $id
+ * @param $surveyId
+ * @param null $status_id
+ *
+ * @return array
+ * @internal param bool $all
+ * @internal param int $id
* @static
*/
static function getPetitionSignature($surveyId, $status_id = NULL) {
*
* @param int $surveyId
* @param int $contactId
+ *
+ * @return array
* @static
*/
static function checkSignature($surveyId, $contactId) {
*
* @param array $params (reference ) an assoc array of name/value pairs
*
- * @return
- * @access public
+ * @param $sendEmailMode
+ *
+ * @throws Exception
+ * @return void
+ @access public
* @static
*/
public static function sendEmail($params, $sendEmailMode) {