Skip to content

Move functions to Utility class #28

Description

@mambax7

We should move the standard functions from /class/Utility.php to /class/Common/SysUtility.php, like what we have in Suico:
https://github.com/XoopsModules25x/suico/blob/master/class/Common/SysUtility.php

Then make the Utility class inherit from SysUtility:

class Utility extends Common\SysUtility

as here: https://github.com/XoopsModules25x/suico/blob/master/class/Utility.php

and then move all the module specific functions from /include/functions.php to the Utility class, while making them all "static"

This way we'll remove them from the Global space

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions