diff --git a/src/app/tasks/Basket.php b/src/app/tasks/Basket.php new file mode 100644 index 0000000..0197a3d --- /dev/null +++ b/src/app/tasks/Basket.php @@ -0,0 +1,42 @@ +'; + + public function mainAction(){ + echo '***main action***'.PHP_EOL; + echo '@var static $from = '.self::$from.PHP_EOL; + } + + public function sendAction(){ + + $abandoned_users = $this->models->getBasket()->getAbandonedUsers(); + + foreach ($abandoned_users as $item) { + + $user_id = $item['user_id']; + $user = $this->models->getCustomers()->getOneData($user_id); + if (!empty($user['email'])) { + + echo $user['email']; + + } + + } + + } + +} \ No newline at end of file diff --git a/src/app/tasks/abadoned_basket.php b/src/app/tasks/abadoned_basket.php deleted file mode 100644 index 0197a3d..0000000 --- a/src/app/tasks/abadoned_basket.php +++ /dev/null @@ -1,42 +0,0 @@ -'; - - public function mainAction(){ - echo '***main action***'.PHP_EOL; - echo '@var static $from = '.self::$from.PHP_EOL; - } - - public function sendAction(){ - - $abandoned_users = $this->models->getBasket()->getAbandonedUsers(); - - foreach ($abandoned_users as $item) { - - $user_id = $item['user_id']; - $user = $this->models->getCustomers()->getOneData($user_id); - if (!empty($user['email'])) { - - echo $user['email']; - - } - - } - - } - -} \ No newline at end of file -- libgit2 0.21.4