Commit 6ba432f8 authored by Shakarim Sapa's avatar Shakarim Sapa

- Fix

parent 6042a565
...@@ -49,6 +49,6 @@ class CheckEmailAndTemplateToNotReading extends ConditionBase implements Conditi ...@@ -49,6 +49,6 @@ class CheckEmailAndTemplateToNotReading extends ConditionBase implements Conditi
} }
} }
} }
return true; return false;
} }
} }
\ No newline at end of file
...@@ -49,6 +49,6 @@ class CheckEmailAndTemplateToReading extends ConditionBase implements ConditionI ...@@ -49,6 +49,6 @@ class CheckEmailAndTemplateToReading extends ConditionBase implements ConditionI
} }
} }
} }
return true; return false;
} }
} }
\ No newline at end of file
...@@ -20,7 +20,8 @@ class CheckEmailToUnsubscribed extends ConditionBase implements ConditionInterfa ...@@ -20,7 +20,8 @@ class CheckEmailToUnsubscribed extends ConditionBase implements ConditionInterfa
} }
/** /**
* @param $message * @param \common\modules\triggers\models\TriggerSchedule $message
* @param array $params
* @return bool * @return bool
*/ */
public function check($message=null, $params = array()){ public function check($message=null, $params = array()){
...@@ -28,9 +29,9 @@ class CheckEmailToUnsubscribed extends ConditionBase implements ConditionInterfa ...@@ -28,9 +29,9 @@ class CheckEmailToUnsubscribed extends ConditionBase implements ConditionInterfa
// Создаем объект унисендера // Создаем объект унисендера
$sender=new UnisenderAPI(); $sender=new UnisenderAPI();
// Делаем запрос на получение статуса сообщения // Делаем запрос на получение статуса сообщения
$sender->getMessageStatuses($message->message_id); $sender->getMessageStatuses($message->campaign_id, $message->message_id, $message->email);
return $sender->isUnsubscribed(); return $sender->isUnsubscribed();
} }
return true; return false;
} }
} }
\ No newline at end of file
...@@ -77,7 +77,8 @@ class CheckPresenceTime extends ConditionBase implements ConditionInterface { ...@@ -77,7 +77,8 @@ class CheckPresenceTime extends ConditionBase implements ConditionInterface {
} }
/** /**
* @param TriggerSchedule $message * @param \common\modules\triggers\models\TriggerSchedule $message
* @param array $params
* @return bool * @return bool
*/ */
public function check($message=null, $params = array()){ public function check($message=null, $params = array()){
......
...@@ -22,7 +22,8 @@ class CheckUserToRegistration extends ConditionBase implements ConditionInterfac ...@@ -22,7 +22,8 @@ class CheckUserToRegistration extends ConditionBase implements ConditionInterfac
} }
/** /**
* @param $message * @param \common\modules\triggers\models\TriggerSchedule $message
* @param array $params
* @return bool * @return bool
*/ */
public function check($message=null, $params = array()){ public function check($message=null, $params = array()){
......
...@@ -27,7 +27,8 @@ class CheckUserToSubscribe extends ConditionBase implements ConditionInterface{ ...@@ -27,7 +27,8 @@ class CheckUserToSubscribe extends ConditionBase implements ConditionInterface{
} }
/** /**
* @param $message * @param \common\modules\triggers\models\TriggerSchedule $message
* @param array $params
* @return bool * @return bool
*/ */
public function check($message=null, $params = array()){ public function check($message=null, $params = array()){
......
...@@ -27,7 +27,7 @@ class CheckUserToSubscribeToBlog extends ConditionBase implements ConditionInter ...@@ -27,7 +27,7 @@ class CheckUserToSubscribeToBlog extends ConditionBase implements ConditionInter
} }
/** /**
* @param null $message * @param \common\modules\triggers\models\TriggerSchedule $message
* @param array $params * @param array $params
* @return bool * @return bool
*/ */
......
...@@ -25,7 +25,8 @@ class UserSuccessfullyCompletedTheTest extends ConditionBase implements Conditio ...@@ -25,7 +25,8 @@ class UserSuccessfullyCompletedTheTest extends ConditionBase implements Conditio
} }
/** /**
* @param $message * @param null $message
* @param array $params
* @return bool * @return bool
*/ */
public function check($message=null, $params = array()){ public function check($message=null, $params = array()){
......
...@@ -25,7 +25,8 @@ class UserUnsuccessfullyCompletedTheTest extends ConditionBase implements Condit ...@@ -25,7 +25,8 @@ class UserUnsuccessfullyCompletedTheTest extends ConditionBase implements Condit
} }
/** /**
* @param $message * @param null $message
* @param array $params
* @return bool * @return bool
*/ */
public function check($message=null, $params = array()){ public function check($message=null, $params = array()){
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment