Commit 343786ae0e2f2e2e6b9026c3da9161be6d4dbb1f

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