phpDocumentor PHPShopCore
[ class tree: PHPShopCore ] [ all elements ]

Source for file news.core.php

Documentation is available at news.core.php

  1. <?php
  2.  
  3.  
  4. class PHPShopNews extends PHPShopCore {
  5.  
  6.     /**
  7.      * Конструктор
  8.      */
  9.     function PHPShopNews({
  10.         parent::PHPShopCore();
  11.     }
  12.  
  13.     /**
  14.      * Экшен по умолчанию
  15.      */
  16.     function index({
  17.         global $PHPShopModules;
  18.  
  19.         // Читаем файл
  20.         $dis=$this->OpenHTML('news');
  21.  
  22.         // Мета
  23.         $meta $this->getMeta($dis);
  24.  
  25.         // Мета
  26.         $this->title $meta['title'].' - '.$this->PHPShopSystem->getValue("name");
  27.         $this->description $meta['description'];
  28.         $this->keywords $meta['keywords'];
  29.  
  30.         // Определяем переменые
  31.         $this->set('pageContent',$dis);
  32.         $this->set('pageTitle',$meta['title']);
  33.  
  34.         // Перехват модуля
  35.         $PHPShopModules->setHookHandler(__CLASS__,__FUNCTION__$this$dis);
  36.  
  37.         // Подключаем шаблон
  38.         $this->parseTemplate($this->getValue('templates.page_page_list'));
  39.  
  40.     }
  41.  
  42. }
  43. ?>

Documentation generated on Mon, 25 Jun 2012 15:09:49 +0400 by phpDocumentor 1.4.3