68 Classifieds API

Features
class tree: 68Classifieds | index: 68Classifieds | all elements

 Class Core

Description

Core class gets general settings.

Located in /includes/classes/kernel/Core.php (line 21)


	
			
Method Summary
 array Core ()
 void formatURL ($url $url, $urls $urls)
 void loadLanguage ()
 void loadTemplate ()
 array privateMessages (int $userid)
 void _load ()
Methods
Constructor Core (line 30)

Assigns system settings to class variables, checks template existance and assigns allowed sources

  • return: Array of settings
  • global: object database $db: Database functions
array Core ()
formatURL (line 82)

Format the website url and https url.

Defines the URL and URLS variables

void formatURL ($url $url, $urls $urls)
  • $url $url: The url entered in administration
  • $urls $urls: The urls entered in administration
getCheckoutSettings (line 236)

Gets the checkout settings

array getCheckoutSettings ()
getSearchSettings (line 253)

Gets the search settings

array getSearchSettings ()
loadAdminTemplate (line 166)

Loads the correct administration template files

Defines the MAIN_TEMPLATE variable which is used in administration.

void loadAdminTemplate ()
loadLanguage (line 199)

Loads the correct language files

Once the file is found and confirms it exists it is included.

void loadLanguage ()
loadTemplate (line 121)

Loads the correct template files

Defines the MAIN_TEMPLATE variable

void loadTemplate ()
privateMessages (line 274)

Checks if private messages are enabled and get the total for a user

  • return: Assigns values to Smarty.
array privateMessages (int $userid)
  • int $userid: The current logged in user
_load (line 68)

Loads the needed format classes

void _load ()