Quantcast
Channel: Function Library - Sodapop Documentation
Browsing all 30 articles
Browse latest View live

$sodapop->loadSodapop()

loadSodapop() is where we really get everything rolling.  We load the language,Config file, template, all that good stuff as well as find out what should behappening on the requested page.Location:...

View Article



$sodapop->loadConfigFile()

loadConfigFile() grabs the config file and generates the config array $sodapop->configLocation: class.sodapop.php public function loadConfigFile() { require_once "./utilities/configuration.php";...

View Article

$sodapop->dbConnect($config)

dbConnect() takes care of the db connection.  Somebody's got to do it.Location: class.sodapop.php function dbConnect($config) { $link = mysql_connect( $config['dbServer'],  $config['dbUser'],...

View Article

$sodapop->setLanguage()

setLanguage() determines which language file to pull from... defaulting to english. Location: class.sodapop.css public function setLanguage() { /* Once cookies are working: $language =...

View Article

$sodapop->loadLanguage()

loadLanguage() loads the language files for the application, apps and modules. Language in the apps and template will override core language Location: class.episodapop.php public function...

View Article


$sodapop->getHandle()

getHandle() uses the parsUrl() function to get the app handle from the urlLocation: class.sodapop.php public function getHandle() { $handle = $this->parseUrl('handle'); return $handle; }

View Article

$sodapop->getQstring()

getQsting() uses the parsUrl() function to get the app query string from the urlLocation: class.sodapop.php public function getQstring() { $qString = $this->parseUrl('qString'); return $qString; }

View Article

$sodapop->parseUrl($part)

parseUrl() retrieves the URI and breaks it up into it's various partsParameter: $part - Indicates which part of the URL is being parsed, the handle or the query string.  Values expected: handle,...

View Article


$sodapop->getStringVars($string)

getStringVars() takes the parameter strinf in the URL and parses out to it's parts.  It creates the variablein an array with the name and value based on the string.  So...

View Article


$sodapop->loadApp()

loadApp() builds the path to the requested app, and then loads it up by requiring the apps lead file.Location: class.sodapop.php public function loadApp() { $appPath =   "./apps/" ....

View Article

$sodapop->loadView()

loadView() allows the app's controller to call in the apps view and push the $data array into it.Location: class.sodapop.php public function loadView() { $appPath =  "./apps/" ....

View Article

$sodapop->langPath($scope)

langPath() sets the path to the language files  Parameters: $scope - sets the scope if the language to load, either application, app or template.  Expeciting: sodapop, template or app.Location...

View Article

$sodapop->modPosition($position)

modPosition() determines which modules are assigned to the given module positionParameters: $position - the module position which you would like to load.  Expects: The name of the module position to...

View Article


$sodapop->loadModule()

loadModule() loads all the modules for the given positionLocation: class.sodapop.php private function loadModule() { // How many modules are in this position so we know how many times to loop...

View Article

$sodapop->buildModPath($modDataName)

buildModPath() creates the path to the module's index appParameters: $modDataName - the name of the module to me loaded.  Expects: The modules name.Location: class.sodapop.php private function...

View Article


$sodapop->doShowModule($modData)

doShowModule($modData)  finds out whether or not to show the module on this app. This is ugly and probably needs to be refactoredParameter: $modData - takes an array of module data.  Expects:...

View Article

$sodapop->parseModParams($modParams)

parseModParams() was intended to parse out the parameter of the module but I think that's currently being done in mod.sodapop.pop in getModuleData(). This  method can probably be removed.Parameters:...

View Article


$sodapop->getFormData($data)

getFormData() should be getting the data submitted by a form.  It sends it to scrubFormData() to clean it up from injection attacks, etc.Parameter: $data - data from the form.  Expects: An array of...

View Article

$sodapop->scrubFormData ($data)

scrubFormData() This needs to be built yet.  It will scrub input form data to make sure that there aren't any injection attacks, etc.Parameter: $data - this is the data array from the form.Location:...

View Article

$sodapop->setaCookie($cookieName, $userID, $duration)

setaCookie() At this point it just does the same thing as PHP setcookie, but now we have the option doing some checking before actually setting a cookie.Parameters: $cookieName, $userID, $duration -...

View Article
Browsing all 30 articles
Browse latest View live




Latest Images