[ Index ]

PHP Cross Reference of osCMax 2.0.4

title

Body

[close]

/admin/attributeManager/classes/ -> attributeManager.class.php (summary)

(no description)

File Size: 846 lines (27 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 1 class

attributeManager:: (25 methods):
  attributeManager()
  setInterfaceLanguage()
  getSelectedLanaguage()
  setTemplateOrder()
  getTemplateOrder()
  getAllOptions()
  getAllOptionValues()
  getAllOptionsAndValues()
  addOption()
  addOptionValue()
  updateNewOptionValue()
  getAndPrepare()
  getAllTemplatesAndAttributes()
  buildAllTemplatesDropDown()
  deleteTemplate()
  saveTemplate()
  renameTemplate()
  loadTemplate()
  formatArrayForDropDown()
  buildOptionDropDown()
  buildOptionValueDropDown()
  registerPageAction()
  unregisterPageAction()
  executePageAction()
  debugOutput()


Class: attributeManager  - X-Ref

attributeManager()   X-Ref
__construct()-
Sets up page actions and sets the interface language

author: Sam West aka Nimmit - [email protected]
return: void

setInterfaceLanguage($get=array()   X-Ref
Sets the interface language

author: Sam West aka Nimmit - [email protected]
param: $get $_GET (optional)
return: void

getSelectedLanaguage()   X-Ref
Returns the currently selected language id

author: Sam West aka Nimmit - [email protected]
return: int language id

setTemplateOrder($get=array()   X-Ref
Sets Template order

author: Tomasz Iwanow aka TomaszBG - [email protected]
param: $get $_GET (optional)
return: void

getTemplateOrder()   X-Ref
Returns the currently selected Template order

author: Tomasz Iwanow aka TomaszBG - [email protected]
return: str Template order

getAllOptions()   X-Ref
Gets all of the options in the database

author: Sam West aka Nimmit - [email protected]
return: array all options

getAllOptionValues()   X-Ref
Gets all of the option values in the database

author: Sam West aka Nimmit - [email protected]
return: array all option values

getAllOptionsAndValues()   X-Ref
Returns an array of options with their related option values

author: Sam West aka Nimmit - [email protected]
return: array All options and option values

addOption($get)   X-Ref
Adds a new option to the database

author: Sam West aka Nimmit - [email protected]
param: $get $_GET
return: array global variables to be set

addOptionValue($get)   X-Ref
Adds a new option values to the database

author: Sam West aka Nimmit - [email protected] - [email protected]
param: $get $_GET
return: array global variables to be set

updateNewOptionValue($get)   X-Ref
Sets the selected box id

param: $get $_GET
return: array global variables to be set

getAndPrepare($strIndex,$array, &$variable)   X-Ref
Takes a variable and prepares it for db

author: Sam West aka Nimmit - [email protected]
param: $strIndex string array index
param: $array array array
param: Variable to set PASSED BY REF
return: void

getAllTemplatesAndAttributes()   X-Ref
get all templates and their options and option values

author: Sam West aka Nimmit - [email protected]
return: array

buildAllTemplatesDropDown($order_by='id')   X-Ref
Build the templates drop down box

author: Sam West aka Nimmit - [email protected]
return: array

deleteTemplate($get)   X-Ref
Deletes a given template

author: Sam West aka Nimmit - [email protected]
param: get $_GET
return: void

saveTemplate($get)   X-Ref
Saves the current products attributes as a template

author: Sam West aka Nimmit - [email protected]
param: $get $_GET
return: array selected template

renameTemplate($get)   X-Ref
renames the specified template

author: Sam West aka Nimmit - [email protected]
param: $get $_GET
return: array renamed template

loadTemplate($get)   X-Ref
Loads the selected template

author: Sam West aka Nimmit - [email protected]
param: $get $_GET
return: array selected template

formatArrayForDropDown($array)   X-Ref
takes an array of key => value and formats them for the tep_draw_pull_down function

author: Sam West aka Nimmit - [email protected]
param: $array Array key value pair to be formated
return: array global variables to be set

buildOptionDropDown($subtract = true)   X-Ref
Builds an array for a drop down of available options

author: Sam West aka Nimmit - [email protected]
param: $subtract bol - if true it will subtract the options that are already assigned to the product
return: array formated for the osc dropdown box function array(array('id'=>$key,'text'=>$value))

buildOptionValueDropDown($optionId = null, $subtract = true)   X-Ref
Builds an array for a drop down of available option values

author: Sam West aka Nimmit - [email protected]
param: $optionId int - if defined, will limit the option values to only ones that are below an option. Otherwise it will return all
param: $subtract bol - if true it will subtract option values that are already assigned to this product with this option
return: array formated for the osc dropdown box function array(array('id'=>$key,'text'=>$value))

registerPageAction($strAction,$strFunction)   X-Ref
Registers a page action

author: Sam West aka Nimmit - [email protected]
param: $strAction string action
param: $strFunction string function name
return: void

unregisterPageAction($strAction)   X-Ref
Unregisters a page action

author: Sam West aka Nimmit - [email protected]
param: $strAction string page action to be unregistered
return: void

executePageAction($get)   X-Ref
Executes a page action

author: Sam West aka Nimmit - [email protected]
param: $get $_GET
return: array global variables to be set

debugOutput($ent)   X-Ref
Nothing todo with the script just outputs stuff to browser used for debelopment

author: Sam West aka Nimmit - [email protected]
return: void



Generated: Fri Jan 1 13:43:16 2010 Cross-referenced by PHPXref 0.7