diff --git a/console/controllers/FeedController.php b/console/controllers/FeedController.php index e21306c..e05c60f 100644 --- a/console/controllers/FeedController.php +++ b/console/controllers/FeedController.php @@ -30,26 +30,26 @@ class FeedController extends Controller private $urlList = []; private $count = 1; - public function getProducts() { - return Product::find()->all(); - } - - public function checkUrl($url){ - if(!in_array($url, $this->urlList)){ - $this->urlList[] = $url; - return true; - } else { - return false; - } - } +// public function getProducts() { +// return Product::find()->all(); +// } +// +// public function checkUrl($url){ +// if(!in_array($url, $this->urlList)){ +// $this->urlList[] = $url; +// return true; +// } else { +// return false; +// } +// } - public function createRow( $product, &$content ){ - $url = Url::to(['catalog/product', 'product' => $product]); - if($this->checkUrl($url)){ - print $this->count++ . "\n"; - $content[] = $url; - } - } +// public function createRow( $product, &$content ){ +// $url = Url::to(['catalog/product', 'product' => $product]); +// if($this->checkUrl($url)){ +// print $this->count++ . "\n"; +// $content[] = $url; +// } +// } public function actionProcess() { -- libgit2 0.21.4