Commit 343786ae0e2f2e2e6b9026c3da9161be6d4dbb1f
1 parent
31aec751
sitemap generator update
Showing
1 changed file
with
0 additions
and
10 deletions
Show diff stats
console/controllers/SiteMapController.php
| ... | ... | @@ -28,7 +28,6 @@ class SiteMapController extends Controller |
| 28 | 28 | private $count = 1; |
| 29 | 29 | |
| 30 | 30 | |
| 31 | - | |
| 32 | 31 | public function checkFilter($category, $filter){ |
| 33 | 32 | $productModel = new ProductFrontendSearch(); |
| 34 | 33 | $productProvider = $productModel->search($category, $filter); |
| ... | ... | @@ -39,8 +38,6 @@ class SiteMapController extends Controller |
| 39 | 38 | } |
| 40 | 39 | } |
| 41 | 40 | |
| 42 | - | |
| 43 | - | |
| 44 | 41 | public function getAddStatic(){ |
| 45 | 42 | return [ |
| 46 | 43 | 'http://www.rukzachok.com.ua', |
| ... | ... | @@ -48,13 +45,11 @@ class SiteMapController extends Controller |
| 48 | 45 | ]; |
| 49 | 46 | } |
| 50 | 47 | |
| 51 | - | |
| 52 | 48 | public function getProducts() { |
| 53 | 49 | return Product::find()->all(); |
| 54 | 50 | |
| 55 | 51 | } |
| 56 | 52 | |
| 57 | - | |
| 58 | 53 | public function getSeoLinks() { |
| 59 | 54 | return Seo::find()->where(['meta' => ''])->all(); |
| 60 | 55 | |
| ... | ... | @@ -64,12 +59,10 @@ class SiteMapController extends Controller |
| 64 | 59 | return Page::find()->all(); |
| 65 | 60 | } |
| 66 | 61 | |
| 67 | - | |
| 68 | 62 | public function getCategories(){ |
| 69 | 63 | return Category::find()->all(); |
| 70 | 64 | } |
| 71 | 65 | |
| 72 | - | |
| 73 | 66 | public function getArticles(){ |
| 74 | 67 | return Articles::find()->all(); |
| 75 | 68 | } |
| ... | ... | @@ -90,7 +83,6 @@ class SiteMapController extends Controller |
| 90 | 83 | |
| 91 | 84 | } |
| 92 | 85 | |
| 93 | - | |
| 94 | 86 | public function checkUrl($url){ |
| 95 | 87 | if(!in_array($url, $this->urlList)){ |
| 96 | 88 | $this->urlList[] = $url; |
| ... | ... | @@ -100,7 +92,6 @@ class SiteMapController extends Controller |
| 100 | 92 | } |
| 101 | 93 | } |
| 102 | 94 | |
| 103 | - | |
| 104 | 95 | public function createRow( $url, $priority, &$content ){ |
| 105 | 96 | if($this->checkUrl($url)){ |
| 106 | 97 | print $this->count++ . "\n"; |
| ... | ... | @@ -113,7 +104,6 @@ class SiteMapController extends Controller |
| 113 | 104 | } |
| 114 | 105 | } |
| 115 | 106 | |
| 116 | - | |
| 117 | 107 | public function actionProcess() { |
| 118 | 108 | |
| 119 | 109 | $config = ArrayHelper::merge( | ... | ... |