[ PHPXref.com ] [ Generated: Sun Jul 20 20:35:40 2008 ] [ TenderSystem 0.9.4.1 ]
[ Index ]     [ Variables ]     [ Functions ]     [ Classes ]     [ Constants ]     [ Statistics ]

title

Body

[close]

/modules/generic/ -> generic.php (summary)

Generic functions

Copyright: Copyright © 2002, ValueCard (Pty) Ltd
License: http://www.tendersystem.com/tpl/ TenderSystem Public License
Version:
File Size: 1471 lines (43 kb)
Included or required: 5 times
Referenced: 0 times
Includes or requires: 0 files

Defines 32 functions

  start_timer()
  end_timer()
  send_message()
  display_response()
  has_xslt()
  convert_xslt()
  event_parser()
  xml_generator()
  xml_loop()
  sanitise()
  process_array()
  determine_browser()
  upload_file()
  read_excel()
  read_settings()
  write_settings()
  examinedir()
  list_directories()
  list_files()
  get_themes()
  get_languages()
  remove()
  get_request()
  is_valid_email_address()
  link_find()
  insert_old_config()
  clear_menu_cache()
  get_xml_info()
  get_xml_info_content()
  urlencode_array()
  get_web_contents()
  file_upload()

Functions
Functions that are not part of a class:

start_timer()   X-Ref
No description

end_timer($start_time)   X-Ref
No description

send_message($params,$cfg)   X-Ref
API INTERFACE


display_response($xml,$cfg)   X-Ref
DISPLAY RESPONSE FUNCTION


has_xslt()   X-Ref
No description

convert_xslt($xml,$xsl_file,$cfg)   X-Ref
No description

event_parser($start_element,$end_element,$xml)   X-Ref
XML Parser - lightweight event based xml parser
Can not differnetiate between a child and parent element
Might change to expat when it becomes more prolific


xml_generator($module,$function,$error,$paramater,$cfg)   X-Ref
XML Generator

return: string xml

xml_loop($param)   X-Ref
XML LOOP FUNCTION
- required in xml_generator to set xml array


sanitise($str)   X-Ref
SANITISE FUNCTION
- ensure no html and javascript tags in form input

return: mixed sanitised code

process_array($str,$unacceptable_array,$replace_array)   X-Ref
used in sanitise to loop through an array

return: mixed sanitised code

determine_browser($browser)   X-Ref
determine if browser is XSLT capable

return: boolean

upload_file($file,$application,$cfg)   X-Ref
upload file to server


read_excel($upload_dest,$cfg)   X-Ref
parse excel spreadsheet


read_settings($file,$display_type,$valid_settings,$params,$errors,$cfg)   X-Ref
read the settings file

return: array

write_settings($file,$newguisettings,$guisettings)   X-Ref
write a new settings file

return: array

examinedir($dir = './',$include_dir=FALSE)   X-Ref
return all files present in a directory recursively

return: array

list_directories($dir = './',$include_dir=TRUE)   X-Ref
return all directories in the folder

return: array

list_files($dir = './',$include_dir=TRUE)   X-Ref
return all files in the folder

return: array

get_themes()   X-Ref
return all files in a folder

return: array

get_languages()   X-Ref
return all files in a folder

return: array

remove($fileglob)   X-Ref
remove () -- Vigorously erase files and directories.

param: $fileglob mixed If string, must be a file name (foo.txt) or directory name.
return: boolean TRUE on success and FALSE on failure

get_request(&$request,&$info,&$error,&$cfg)   X-Ref
validate html form input


is_valid_email_address($email)   X-Ref
Determine if it is a valid email address

return: boolean

link_find($menu,$module,$language,$cfg)   X-Ref
No description

insert_old_config($old_config,$new_config)   X-Ref
No description

clear_menu_cache($cfg)   X-Ref
No description

get_xml_info($file)   X-Ref
No description

get_xml_info_content($xml_content)   X-Ref
No description

urlencode_array($array)   X-Ref
No description

get_web_contents($url,$post_fields=FALSE,$with_header=FALSE,$follow=FALSE,$use_curl=TRUE)   X-Ref
No description

file_upload($file,$application,$cfg,$module="generic",$function="error",$parameters="")   X-Ref
upload file to server




[ Powered by PHPXref - Served by Debian GNU/Linux ]