Commit 1d99ab39ebfe0406ce2fc1feccd9d784735c242a

Authored by Alex Savenko
1 parent b5c50adb

remarketing

Showing 1 changed file with 19 additions and 19 deletions   Show diff stats
console/controllers/FeedController.php
@@ -30,26 +30,26 @@ class FeedController extends Controller @@ -30,26 +30,26 @@ class FeedController extends Controller
30 private $urlList = []; 30 private $urlList = [];
31 private $count = 1; 31 private $count = 1;
32 32
33 - public function getProducts() {  
34 - return Product::find()->all();  
35 - }  
36 -  
37 - public function checkUrl($url){  
38 - if(!in_array($url, $this->urlList)){  
39 - $this->urlList[] = $url;  
40 - return true;  
41 - } else {  
42 - return false;  
43 - }  
44 - } 33 +// public function getProducts() {
  34 +// return Product::find()->all();
  35 +// }
  36 +//
  37 +// public function checkUrl($url){
  38 +// if(!in_array($url, $this->urlList)){
  39 +// $this->urlList[] = $url;
  40 +// return true;
  41 +// } else {
  42 +// return false;
  43 +// }
  44 +// }
45 45
46 - public function createRow( $product, &$content ){  
47 - $url = Url::to(['catalog/product', 'product' => $product]);  
48 - if($this->checkUrl($url)){  
49 - print $this->count++ . "\n";  
50 - $content[] = $url;  
51 - }  
52 - } 46 +// public function createRow( $product, &$content ){
  47 +// $url = Url::to(['catalog/product', 'product' => $product]);
  48 +// if($this->checkUrl($url)){
  49 +// print $this->count++ . "\n";
  50 +// $content[] = $url;
  51 +// }
  52 +// }
53 53
54 public function actionProcess() { 54 public function actionProcess() {
55 55