PHP Classes

File: config/paths.php

Recommend this page to a friend!
  Packages of Michael Beck   XOOPS Publisher Module   config/paths.php   Download  
File: config/paths.php
Role: Auxiliary script
Content type: text/plain
Description: Configuration script
Class: XOOPS Publisher Module
Publish static HTML content and article with XOOPS
Author: By
Last change:
Date: 9 months ago
Size: 730 bytes
 

Contents

Class file image Download
<?php

declare(strict_types=1);

/** @return object */

$moduleDirName = \basename(\dirname(__DIR__));
// $moduleDirNameUpper = mb_strtoupper($moduleDirName);

return (object)[
   
'dirname' => $moduleDirName,
   
'admin' => XOOPS_ROOT_PATH . '/modules/' . $moduleDirName . '/admin',
   
'modPath' => XOOPS_ROOT_PATH . '/modules/' . $moduleDirName,
   
'modUrl' => XOOPS_URL . '/modules/' . $moduleDirName,
   
'uploadUrl' => XOOPS_UPLOAD_URL . '/' . $moduleDirName,
   
'uploadPath' => XOOPS_UPLOAD_PATH . '/' . $moduleDirName,

   
'uploadPathCategory' => XOOPS_UPLOAD_PATH . '/' . $moduleDirName . '/category',
   
'uploadPathScreenshots' => XOOPS_UPLOAD_PATH . '/' . $moduleDirName . '/screenshots',
];