Skip to content

Releases: MissAllSunday/Ohara

Version 1.0.6

16 Feb 14:26

Choose a tag to compare

  • Use sprintf when failing to load the mod's config file.
  • Unset $this->_request to get a clean superglobal array everytime $this->data() is called.

Version 1.0.5

15 Feb 17:27

Choose a tag to compare

  • Adds a new way to get mod's config settings via a json file.
  • Adds Ohara::addPermissions() to quickly set up simple permissions.
  • Remove $settings from the properties, mod authors will have to globalize it if needed.
  • Adds Ohara::addSimpleSettings to quickly add simple mod config settings.
  • Fixes get/set/clean update methods.
  • Adds some simple phpunit tests.

Version 1.0.4

31 Jan 19:25

Choose a tag to compare

This version adds the following changes:

  • Adds a way to disable runtime hooks via the mod's admin panel.
  • Adds a $delimiter as a third param in Ohara::commaSeparated
  • Stops executing runtime hooks if a mod is being uninstalled.

Version 1.0.3

12 Jan 02:08

Choose a tag to compare

This version adds the following changes:

  • The ability to autoload external libraries from vendor dir without worry about mods overwriting the autoload file. Autoloading gets handle inside Ohara itself.
  • Update Ohara::commaSeparated() to use 3 types, alpha, numeric and alphanumeric.
  • Add Ohara::checkScheme()
  • Fixed checking for $update in Ohara::getUpdate()
  • Add Ohara::formatBytes()

Version 1.0.2

09 Jun 17:28

Choose a tag to compare

This version actually adds some mayor improvements but will keep it under the 1.0.* flag.

  • Adds the ability to set and use hooks on-the-fly
    Basically gives a modder the ability to set and use any hook available on SMF 2.1, some hooks like credits, actions and help admin text has been pre-coded inside the class and can be used with their default parameters.
    By default Ohara will prepend the "add" word to every hook call unless you overwrite this behavior on your child class.
    More info can be found inside the class itself.
  • Ohara::parser()
    Parses and replace tokens by their given values
  • Ohara::commaSeparated()
    Checks and returns a coma separated string
  • Ohara::jsonResponse()
    Outputs a json encoded string

Version 1.0.1

09 Mar 17:43

Choose a tag to compare

  • No longer using $this->smcFunc Its a huge array and it doesn't make sense to copy all that data just to avoid having to declare a global var.
  • Ohara::getRegistry() now checks static::$_registry[$instance] and static::$_registry before returning those vars.

Version 1.0

09 Mar 15:19

Choose a tag to compare

First stable version, used to avoid composer fetching the entire git repo.