contextId = (int) $contextId; } /** * Get the base path for file storage * @return string */ function getBasePath() { $dirNames = Application::getFileDirectories(); return parent::getBasePath() . $dirNames['context'] . $this->contextId . '/'; } } ?>