function OX_Swifty($dalClass = null) { // Functions here are initialisation only - plugins have not been loaded (so we cannot initialise data) $this->counter = array(); $this->ad_networks = array(); $this->actions = array(); // Load all Swifty plugins OX_Tools::load_plugins(OX_LIB . '/Plugins', $this); // Load the data access layer $this->dal = is_null($dalClass) ? new OX_Dal() : new $dalClass(); }