/** * "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)); }
/** * 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' : ''); }
/** * "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); }
/** * Return current catalog * * @return string */ protected function getCurrentCatalog() { return \XLite\View\BrowseServer::getNormalizedPath(\XLite\Core\Request::getInstance()->catalog); }