Exemplo n.º 1
0
 /**
  * "Local file" handler for import
  *
  * @return void
  */
 protected function doActionSelectLocalImportPinCodes()
 {
     $file = \XLite\View\BrowseServer::getNormalizedPath(\XLite\Core\Request::getInstance()->local_server_file);
     $this->doActionSelectImportPinCodes('loadFromLocalFile', array($file));
 }
Exemplo n.º 2
0
 /**
  * Get file entry class
  *
  * @param array $entry Entry
  *
  * @return string
  */
 protected function getItemClass(array $entry)
 {
     return parent::getItemClass($entry) . (isset($entry['egoods']) && $entry['egoods'] ? ' egood-entry' : '');
 }
Exemplo n.º 3
0
 /**
  * "Local file" handler for category images.
  * Returns path of the temporary file
  *
  * @return void
  */
 protected function doActionSelectLocalLanguageFile()
 {
     $result = null;
     $path = \XLite\View\BrowseServer::getNormalizedPath(\XLite\Core\Request::getInstance()->local_server_file);
     $tmpPath = \Includes\Utils\FileManager::getUniquePath(LC_DIR_TMP, basename($path));
     if (copy($path, $tmpPath)) {
         $result = $tmpPath;
     }
     $this->doActionSelectLanguageFile($result);
 }
Exemplo n.º 4
0
 /**
  * Return current catalog
  *
  * @return string
  */
 protected function getCurrentCatalog()
 {
     return \XLite\View\BrowseServer::getNormalizedPath(\XLite\Core\Request::getInstance()->catalog);
 }