File: config/paths.php

Recommend this page to a friend!
  Classes of Goffy G  >  XOOPS Modules Builder  >  config/paths.php  >  Download  
File: config/paths.php
Role: Auxiliary script
Content type: text/plain
Description: Auxiliary script
Class: XOOPS Modules Builder
Generate new modules for the XOOPS CMS
Author: By
Last change:
Date: 2 months ago
Size: 987 bytes
 

Contents

Class file image Download
<?php

function getPaths()
{
   
$moduleDirName = \basename(\dirname(__DIR__));
   
$moduleDirNameUpper = \mb_strtoupper($moduleDirName);

    return (object)[
       
'name' => \mb_strtoupper($moduleDirName) . ' PathConfigurator',
       
'paths' => [
           
'dirname' => $moduleDirName,
           
'admin' => XOOPS_ROOT_PATH . '/modules/' . $moduleDirName . '/admin',
           
'modPath' => XOOPS_ROOT_PATH . '/modules/' . $moduleDirName,
           
'modUrl' => XOOPS_URL . '/modules/' . $moduleDirName,
           
'uploadPath' => XOOPS_UPLOAD_PATH . '/' . $moduleDirName,
           
'uploadUrl' => XOOPS_UPLOAD_URL . '/' . $moduleDirName,
        ],
       
'uploadFolders' => [
           
XOOPS_UPLOAD_PATH . '/' . $moduleDirName,
           
XOOPS_UPLOAD_PATH . '/' . $moduleDirName . '/category',
           
XOOPS_UPLOAD_PATH . '/' . $moduleDirName . '/screenshots',
           
//XOOPS_UPLOAD_PATH . '/flags'
       
],
    ];
}


For more information send a message to info at phpclasses dot org.