Пример #1
0
 /**
  * Returns the page from the given uri
  * @param string $page The page we want to translate to uri
  * @return string|bool The uri, or false
  */
 public function translateUriToPage($uri)
 {
     if ($uri == '/' . $this->shortClassName . '/create.php') {
         $page = $this->shortClassName . '/create/';
         return $page;
     }
     if ($uri == '/' . $this->shortClassName . '/showChanges.php') {
         $page = $this->shortClassName . '/showChanges/';
         return $page;
     }
     if ($uri == '/' . $this->shortClassName . '/prepareCommit.php') {
         $page = $this->shortClassName . '/prepareCommit/';
         return $page;
     }
     return parent::translateUriToPage($uri);
 }
Пример #2
0
 /**
  * Returns the page from the given uri
  * @param string $page The page we want to translate to uri
  * @return string|bool The uri, or false
  */
 public function translateUriToPage($uri)
 {
     if ($uri == '/' . $this->shortClassName . '/changer.php') {
         $page = $this->shortClassName . '/changer/';
         return $page;
     }
     return parent::translateUriToPage($uri);
 }
Пример #3
0
 /**
  * Returns the page from the given uri
  * @param string $page The page we want to translate to uri
  * @return string|bool The uri, or false
  */
 public function translateUriToPage($uri)
 {
     if (preg_match('`/' . $this->shortClassName . '/([^/]+)(/([0-9]+)(-[^/]+)?)?\\.php`', $uri, $matches)) {
         if ($matches[1] == 'editImage') {
             return $this->shortClassName . '/editImage/' . $matches[3];
         }
     }
     return parent::translateUriToPage($uri);
 }
Пример #4
0
 /**
  * Returns the page from the given uri
  * @param string $page The page we want to translate to uri
  * @return string|bool The uri, or false
  */
 public function translateUriToPage($uri)
 {
     if ($uri == '/menu/image.php') {
         // To change this, we also have to do it in menuEditor.js
         return 'menu/image/';
     }
     if ($uri == '/menu/insertVideo.php') {
         // To change this, we also have to do it in menuEditor.js
         return 'menu/insertVideo/';
     }
     if ($uri == '/menu/insertDiaporama.php') {
         // To change this, we also have to do it in menuEditor.js
         return 'menu/insertDiaporama/';
     }
     if ($uri == '/menu/chooseLink.php') {
         // To change this, we also have to do it in menuEditor.js
         return 'menu/chooseLink/';
     }
     if ($uri == '/menu/addBlock.php') {
         // To change this, we also have to do it in menuEditor.js
         return 'menu/addBlock/';
     }
     return parent::translateUriToPage($uri);
 }
Пример #5
0
 /**
  * Returns the page from the given uri
  * @param string $page The page we want to translate to uri
  * @return string|bool The uri, or false
  */
 public function translateUriToPage($uri)
 {
     if (preg_match('`/' . $this->shortClassName . '/' . $this->getI18n('change_uri') . '\\.php`', $uri)) {
         $page = $this->shortClassName . '/change/';
         return $page;
     }
     return parent::translateUriToPage($uri);
 }
Пример #6
0
 /**
  * Returns the page from the given uri
  * @param string $page The page we want to translate to uri
  * @return string|bool The uri, or false
  */
 public function translateUriToPage($uri)
 {
     if (preg_match('`/menu/edit/([0-9]+)\\.php`', $uri, $matches)) {
         return 'menu/edit/' . $matches[1];
     }
     if ($uri == '/menu/verifyLength.php') {
         // To change this, we also have to do it in menuEditor.js
         return 'menu/verifyLength/';
     }
     if ($uri == '/menu/addEntry.php') {
         // To change this, we also have to do it in menuEditor.js
         return 'menu/addEntry/';
     }
     if ($uri == '/menu/chooseLink.php') {
         // To change this, we also have to do it in menuEditor.js
         return 'menu/chooseLink/';
     }
     if ($uri == '/menu/unpack_button_type.php') {
         // To change this, we also have to do it in menuEditor.js
         return 'menu/unpack_button_type/';
     }
     return parent::translateUriToPage($uri);
 }
Пример #7
0
 /**
  * Returns the page from the given uri
  * @param string $page The page we want to translate to uri
  * @return string|bool The uri, or false
  */
 public function translateUriToPage($uri)
 {
     if (preg_match('`/' . $this->shortClassName . '/configure\\.php`', $uri)) {
         $page = $this->shortClassName . '/configure/';
         return $page;
     }
     if ($uri == '/' . $this->shortClassName . '/prepareCommit.php') {
         $page = $this->shortClassName . '/prepareCommit/';
         return $page;
     }
     if ($uri == '/' . $this->shortClassName . '/showProject.php') {
         $page = $this->shortClassName . '/showProject/';
         return $page;
     }
     if ($uri == '/' . $this->shortClassName . '/showFileHistory.php') {
         $page = $this->shortClassName . '/showFileHistory/';
         return $page;
     }
     if ($uri == '/' . $this->shortClassName . '/test.php') {
         $page = $this->shortClassName . '/test/';
         return $page;
     }
     if ($uri == '/' . $this->shortClassName . '/showCheckList.php') {
         $page = $this->shortClassName . '/showCheckList/';
         return $page;
     }
     return parent::translateUriToPage($uri);
 }