[ Mini Kiebo ]
Server: Windows NT DESKTOP-5B8S0D4 6.2 build 9200 (Windows 8 Professional Edition) i586
Path:
D:
/
Backup
/
05122024
/
htdocs
/
jurnal-kesmas
/
lib
/
pkp
/
classes
/
file
/
[
Home
]
File: ContextFileManager.php
<?php /** * @file classes/file/ContextFileManager.php * * Copyright (c) 2014-2021 Simon Fraser University * Copyright (c) 2003-2021 John Willinsky * Distributed under the GNU GPL v3. For full terms see the file docs/COPYING. * * @class ContextFileManager * * @ingroup file * * @brief Class defining operations for private context file management. */ namespace PKP\file; use APP\core\Application; class ContextFileManager extends PrivateFileManager { /** @var int the ID of the associated context */ public $contextId; /** * Constructor. * Create a manager for handling context file uploads. */ public function __construct($contextId) { parent::__construct(); $this->contextId = (int) $contextId; } /** * Get the base path for file storage * * @return string */ public function getBasePath() { $dirNames = Application::getFileDirectories(); return parent::getBasePath() . $dirNames['context'] . $this->contextId . '/'; } } if (!PKP_STRICT_MODE) { class_alias('\PKP\file\ContextFileManager', '\ContextFileManager'); }