/**
  * Creates an isntance of this class.
  */
 public function __construct()
 {
     $this->apiWrapper = tx_realurl_apiwrapper::getInstance();
     $urlParameters = $this->apiWrapper->array_merge_recursive_overrule($_GET, $_POST);
     $this->currentPage = max(1, intval($urlParameters['page']));
     unset($urlParameters['page']);
     unset($urlParameters['cmd']);
     $this->baseURL = $this->apiWrapper->getIndpEnv('TYPO3_REQUEST_SCRIPT') . '?' . $this->apiWrapper->implodeArrayForUrl('', $urlParameters);
     $this->resultsPerPage = self::RESULTS_PER_PAGE_DEFAULT;
 }
 /**
  * Initializes the class.
  */
 public function __construct()
 {
     $this->apiWrapper = tx_realurl_apiwrapper::getInstance();
     $this->db = $this->apiWrapper->getDatabaseConnection();
     $this->hasStaticInfoTables = $this->apiWrapper->isExtLoaded('static_info_tables');
 }
Esempio n. 3
0
 /**
  * Creates an instance of this class
  */
 public function __construct()
 {
     $this->apiWrapper = tx_realurl_apiwrapper::getInstance();
     if (!$this->apiWrapper->isExtLoaded('dbal')) {
         // allow to use the MySQL features of 5.x with mysqli
         $this->useMySQLExtendedSyntax = TRUE;
     }
     $sysconf = (array) unserialize($GLOBALS['TYPO3_CONF_VARS']['EXT']['extConf']['realurl']);
     $this->enableStrictMode = (bool) $sysconf['enableStrictMode'];
     $this->enableChashUrlDebug = (bool) $sysconf['enableChashUrlDebug'];
     $this->initDevLog($sysconf);
 }
 public function __construct()
 {
     $this->apiWrapper = tx_realurl_apiwrapper::getInstance();
 }