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

Source for file index.core.php

Documentation is available at index.core.php

  1. <?php
  2.  
  3. /**
  4.  * Обработчик первой страницы
  5.  * @author PHPShop Software
  6.  * @version 1.0
  7.  * @package PHPShopCore
  8.  */
  9. class PHPShopIndex extends PHPShopCore {
  10.  
  11.     /**
  12.      * Конструктор
  13.      */
  14.     function PHPShopIndex({
  15.         // Имя Бд
  16.         $this->objBase=$GLOBALS['SysValue']['base']['table_name11'];
  17.         $this->debug=false;
  18.  
  19.         // Шаблон главной страницы
  20.         $this->template='templates.index';
  21.         parent::PHPShopCore();
  22.     }
  23.  
  24.  
  25.     /**
  26.      * Экшен по умолчанию
  27.      */
  28.     function index({
  29.  
  30.         // Выборка данных
  31.         $row=parent::getFullInfoItem(array('name,content'),array('category'=>"=2000",'enabled'=>"='1'"));
  32.  
  33.         // Определяем переменые
  34.         $this->set('mainContent',Parser($row['content']));
  35.         $this->set('mainContentTitle',$row['name']);
  36.         
  37.     }
  38. }
  39. ?>

Documentation generated on Thu, 17 Feb 2011 15:58:35 +0300 by phpDocumentor 1.4.3