Jump to content

Where is \IPS\Settings::i()-> accessed from?


Aetherdan

Recommended Posts

Posted

Your question is quite ambiguous so I'll try to answer it for a few interpretations.

If you refer to where \IPS\Settings gets its own data from: \IPS\Settings gets its data from both the conf_global.php file and the core_sys_conf_settings database table (which is cached, so if the data is available in the cache it will pull it from there).

If you mean how to use \IPS\Settings: you simply call whatever setting you need as if it were to be an object property:

\IPS\Settings::i()->setting_key

Behind the scenes this is achieved with PHP's magic methods __get() and __set().

Archived

This topic is now archived and is closed to further replies.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...