Beispiel #1
0
 public function testDispatchScript()
 {
     $route = new Route();
     $request = new HttpRequest();
     $request->uri(self::scriptUrlFixture);
     $this->assertTrue($route->test($request));
     $this->assertFalse(self::$sitemapScriptCalledFlag);
     $route->dispatch();
     $this->assertTrue(self::$sitemapScriptCalledFlag);
 }
Beispiel #2
0
 public function main()
 {
     $aInfo = \Extasy\sitemap\Route::getCurrentUrlInfo();
     $aMenu = Sitemap_PagesOperations::selectChildWithoutAdditional($aInfo['id'], 1, 0);
     $url = '';
     if (empty($aMenu)) {
         // Получаем предка
         if (!empty($aInfo['parent'])) {
             $aParent = Sitemap_Sample::get($aInfo['parent']);
             $url .= $aParent['full_url'];
             $this->jump($url);
         } else {
             die('Parent empty');
         }
     }
     $url .= $aMenu[0]['full_url'];
     $this->jump($url);
 }
Beispiel #3
0
<?php

return new \Extasy\Users\login\controller\Login(\Extasy\sitemap\Route::getCurrentUrlInfo());
Beispiel #4
0
<?php

return new UsersRegistration_Registrate(\Extasy\sitemap\Route::getCurrentUrlInfo());
Beispiel #5
0
 /**
  *
  */
 protected function prepareParseData()
 {
     // Устанавливаем текущий документ
     $this->aUrlInfo = array('name' => 'Error page', 'full_url' => '/error', 'script' => 'ErrorController', 'document_name' => '', 'document_id' => 0, 'id' => 0);
     //
     //
     \Extasy\sitemap\Route::setCurrentUrlInfo($this->aUrlInfo);
 }
Beispiel #6
0
<?php

use Extasy\Users\profile\ProfileController;
return new ProfileController(\Extasy\sitemap\Route::getCurrentUrlInfo());
Beispiel #7
0
<?php

//************************************************************//
//                                                            //
//                     Заголовок                              //
//       Copyright (c) 2008 Ext-CMS (http://www.ext-cms.com/) //
//               отдел/сектор                                 //
//       Email:    info@gisma.ru (http://www.gisma.ru/)       //
//                                                            //
//  Разработчик: Gisma (          )                           //
//  Модифицирован:  Дата мод.   by Gisma                      //
//                                                            //
//************************************************************//
require_once SETTINGS_PATH . 'users/forgot/form.cfg.php';
class FORGOTPage extends UsersForgot_Send
{
    public function main($error = '')
    {
        $aParse = array('aMeta' => array('title' => FORGOT_SEO_TITLE, 'keywords' => FORGOT_SEO_KEYWORDS, 'description' => FORGOT_SEO_DESCRIPTION));
        //
        $this->output('users/forgot/form', $aParse, array('page_with_bread_crumbs'));
    }
}
return new FORGOTPage(\Extasy\sitemap\Route::getCurrentUrlInfo());
Beispiel #8
0
 protected static function getCurrentUrlInfo()
 {
     return \Extasy\sitemap\Route::getCurrentUrlInfo();
 }
Beispiel #9
0
 public static function selectParent()
 {
     $aInfo = \Extasy\sitemap\Route::GetCurrentUrlInfo();
     $nId = $aInfo['id'];
     $aResult = array();
     while ($nId != 0) {
         $aRow = self::getParent($nId);
         $aResult[] = $aRow;
         $nId = $aRow['parent'];
     }
     $aResult = array_reverse($aResult);
     return $aResult;
 }