Commit c96ff25c9d1b4ce9b7cdf0aea48dc4799b42080c

Authored by Alex Savenko
1 parent 5271269f

testing

Showing 2 changed files with 6 additions and 15 deletions   Show diff stats
src/app/tasks/BasketTask.php
... ... @@ -25,9 +25,10 @@ class BasketTask extends \Phalcon\CLI\Task
25 25  
26 26 echo '*** start send action ***'.PHP_EOL;
27 27  
28   - $abandoned_users = $this->models->getBasket()->getAbandonedUsers();
29   - $qwe = $this->models->getCustomers()->getOneData('17172');
30   - echo $qwe[0]['email'];
  28 + $abandoned_users = $this->models->getBasket()->test();
  29 + //$abandoned_users = $this->models->getBasket()->getAbandonedUsers();
  30 + return $abandoned_users;
  31 +
31 32  
32 33 foreach ($abandoned_users as $item) {
33 34  
... ...
src/lib/models/basket.php
... ... @@ -312,19 +312,9 @@ class basket extends \db
312 312  
313 313 }
314 314  
315   - /**
316   - * @return array
317   - */
318   - public function getAbandonedUsers() {
319 315  
320   - return $this->get(
321   - "
322   - SELECT *
323   - FROM public.basket
324   - ",
325   - [],
326   - -1
327   - );
328 316  
  317 + public function test() {
  318 + echo '123';
329 319 }
330 320 }
331 321 \ No newline at end of file
... ...