Quantcast
Browsing all 30 articles
Browse latest View live

$sodapop->getCookie($cookieName)

getCookie() just grabs a desired cookies value. Parameter: $cookieName - the name of the cookie you want to get the data from.  Expects: a cookie name.Location: class.sodapop.php public function...

View Article


$sodapop->hashIt($string)

hashIt() is used for hashing things.  Right now it's just a double md5.  Will probably add another layer of SHA, any suggestion here would be appreciated. Parameter: $string: the string to be hashed,...

View Article


$sodapop->database->getUserDataById($id)

getUserDataById($id) acceptes the user's ID number and pulls all of their user data based on that. Parameters: $id - the user's ID number.Location: model.sodapop.php public function...

View Article

$sodapop->database->getData($query)

getData() performs the basic db query, and add scrubbing for sql injection protection. Location: model.sodapop.php public function getData($query) { ##### ## Add some sql injection protection here?...

View Article

$sodapop->database->getDefaultTemplate()

getDefaultTemplate() loads the template that is set as default in the templates table.    Location: model.sodapop.php public function templateLookup() { ## Let's find out which template is set to...

View Article


$sodapop->database->pageData($sodapop)

appData() retrieves all the info from the apps table for the given handle and packs it into the $app array.  If no app exists, it routes to a 404 app...  Parameters: $sodapop - this is the applications...

View Article

$sodapop->database->modsInPosition($position)

modsInPosition($position) determines which modules are to be loaded for the given position, then processes all the info from the modules in that position loading them into an array $mod then returning...

View Article

$sodapop->database->getModuleData($id)

getModuleData($id) pulls module data from the db based on the modules ID number then returns an array of that data.Parameter: $id - the id of the module for which we are pulling data. Location:...

View Article


$sodapop->view->loadTemplate($templateName)

loadTemplate() loads the current template Parameter: $templateName - the name of the template to be loadedLocation: view.sodapop.php public function loadTemplate($templateName) { $loadTemplate =...

View Article


$sodapop->view->templatePath($templateName)

templatePath() creates the path to the current template.  If no template is assigned, or the template file doesn't exist, its going to load a null template Location: view.sodapop.php public function...

View Article
Browsing all 30 articles
Browse latest View live