iTx Technologies offre gratuitement
cet espace pour SugarCRM !

title

Body

[fermer]

/install/ -> install_utils.php (sommaire)

(aucune description)

Taille du fichier: 2372 lignes (86 kb)
Inclus ou requis: 5 fois
Réferencé: 0 fois
Inclus ou requis: 8 fichiers
 include/upload_file.php
 include/entryPoint.php
 config.php
 ModuleInstall/PackageManager/PackageManager.php
 install/checkDBSettings.php
 include/utils/zip_utils.php
 ModuleInstall/ModuleInstaller.php
 include/domit/xml_domit_include.php

Defines 65 functions

  parseAcceptLanguage()
  commitLanguagePack()
  commitPatch()
  commitModules()
  updateUpgradeHistory()
  removeLanguagePack()
  writeSugarConfig()
  uninstallLangPack()
  getLanguagePackName()
  getInstalledLangPacks()
  uninstallLanguagePack()
  getSugarConfigLanguageArray()
  handleDbCreateSugarUser()
  displayMssqlErrors()
  handleDbCharsetCollation()
  handleDbCreateDatabase()
  handleLog4Php()
  installLog()
  handleSugarConfig()
  handleHtaccess()
  handleWebConfig()
  drop_table_install()
  create_table_if_not_exist()
  create_default_users()
  set_admin_password()
  insert_default_settings()
  make_writable()
  recursive_make_writable()
  recursive_is_writable()
  getMysqlVersion()
  get_boolean_from_request()
  stripslashes_checkstrings()
  print_debug_array()
  print_debug_comment()
  validate_systemOptions()
  validate_localization()
  validate_dbConfig()
  validate_siteConfig()
  pullSilentInstallVarsIntoSession()
  copyFromArray()
  langPackFinalMove()
  getLicenseDisplay()
  getPackButton()
  getInstalledLanguages()
  getLangPacks()
  extractFile()
  extractManifest()
  unlinkTempFiles()
  langPackUnpack()
  validate_manifest()
  getInstallType()
  getHostPortFromString()
  getLicenseContents()
  createWebAddress()
  createEmailAddress()
  add_digits()
  create_phone_number()
  create_date()
  create_current_date_time()
  create_time()
  create_past_date()
  post_install_modules()
  get_help_button_url()
  create_db_user_creds()
  addDefaultRoles()

Fonctions
Fonctions qui ne font pas partie d'une classe :

parseAcceptLanguage()   X-Ref
returns lowercase lang encoding

return: string   encoding or blank on false

commitLanguagePack($uninstall=false)   X-Ref
copies the temporary unzip'd files to their final destination
removes unzip'd files from system if $uninstall=true

param: bool uninstall true if uninstalling a language pack
return: array sugar_config

commitPatch($unlink = false, $type = 'patch')   X-Ref
Aucune description

commitModules($unlink = false, $type = 'module')   X-Ref
Aucune description

updateUpgradeHistory()   X-Ref
creates UpgradeHistory entries

param: mode string Install or Uninstall

removeLanguagePack()   X-Ref
removes the installed language pack, but the zip is still in the cache dir


writeSugarConfig($sugar_config)   X-Ref
takes the current value of $sugar_config and writes it out to config.php (sorta the same as the final step)

param: array sugar_config

uninstallLangPack()   X-Ref
uninstalls the Language pack


getLanguagePackName($the_file)   X-Ref
retrieves the name of the language


getInstalledLangPacks($showButtons=true)   X-Ref
Aucune description

uninstallLanguagePack()   X-Ref
Aucune description

getSugarConfigLanguageArray($langZip)   X-Ref
Aucune description

handleDbCreateSugarUser()   X-Ref
creates the Sugar DB user (if not admin)


displayMssqlErrors($driver_type, $query)   X-Ref
Aucune description

handleDbCharsetCollation()   X-Ref
ensures that the charset and collation for a given database is set
MYSQL ONLY


handleDbCreateDatabase()   X-Ref
creates the new database


handleLog4Php()   X-Ref
handles creation of Log4PHP properties file
This function has been deprecated.  Use SugarLogger.


installLog($entry)   X-Ref
Aucune description

handleSugarConfig()   X-Ref
takes session vars and creates config.php

return: array bottle collection of error messages

handleHtaccess()   X-Ref
(re)write the .htaccess file to prevent browser access to the log file


handleWebConfig()   X-Ref
(re)write the web.config file to prevent browser access to the log file


drop_table_install( &$focus )   X-Ref
Drop old tables if table exists and told to drop it


create_table_if_not_exist( &$focus )   X-Ref
Aucune description

create_default_users()   X-Ref
Aucune description

set_admin_password( $password )   X-Ref
Aucune description

insert_default_settings()   X-Ref
Aucune description

make_writable($file)   X-Ref
Aucune description

recursive_make_writable($start_file)   X-Ref
Aucune description

recursive_is_writable($start_file)   X-Ref
Aucune description

getMysqlVersion($link)   X-Ref
Aucune description

get_boolean_from_request( $field )   X-Ref
Aucune description

stripslashes_checkstrings($value)   X-Ref
Aucune description

print_debug_array( $name, $debug_array )   X-Ref
Aucune description

print_debug_comment()   X-Ref
Aucune description

validate_systemOptions()   X-Ref
Aucune description

validate_localization()   X-Ref
Aucune description

validate_dbConfig()   X-Ref
Aucune description

validate_siteConfig($type)   X-Ref
Aucune description

pullSilentInstallVarsIntoSession()   X-Ref
Aucune description

copyFromArray($input_array, $needles, $output_array)   X-Ref
given an array it will check to determine if the key exists in the array, if so
it will addd to the return array

param: intput_array haystack to check
param: needles list of needles to search for
param: output_array the array to add the keys to

langPackFinalMove($file)   X-Ref
handles language pack uploads - code based off of upload_file->final_move()
puts it into the cache/upload dir to be handed off to langPackUnpack();

param: object file UploadFile object
return: bool true if successful

getLicenseDisplay($type, $manifest, $zipFile, $next_step, $license_file, $clean_file)   X-Ref
Aucune description

getPackButton($type, $manifest, $zipFile, $next_step, $uninstallable='Yes', $showButtons=true)   X-Ref
creates the remove/delete form for langpack page

param: string type commit/remove
param: string manifest path to manifest file
param: string zipFile path to uploaded zip file
param: int nextstep current step
return: string ret <form> for this package

getInstalledLanguages()   X-Ref
finds all installed languages and returns an array with the names

return: array langs array of installed languages

getLangPacks($display_commit = true, $types = array('langpack')   X-Ref
searches upgrade dir for lang pack files.

return: string HTML of available lang packs

extractFile( $zip_file, $file_in_zip, $base_tmp_upgrade_dir)   X-Ref
Aucune description

extractManifest( $zip_file,$base_tmp_upgrade_dir )   X-Ref
Aucune description

unlinkTempFiles($manifest, $zipFile)   X-Ref
Aucune description

langPackUnpack($unpack_type = 'langpack', $full_file = '')   X-Ref
Aucune description

validate_manifest( $manifest )   X-Ref
Aucune description

getInstallType( $type_string )   X-Ref
Aucune description

getHostPortFromString($hostname='')   X-Ref
Aucune description

getLicenseContents($filename)   X-Ref
Aucune description

createWebAddress()   X-Ref
creates a random, DNS-clean webaddress


createEmailAddress()   X-Ref
creates a random email address

return: string

add_digits($quantity, &$string, $min = 0, $max = 9)   X-Ref
Aucune description

create_phone_number()   X-Ref
Aucune description

create_date($year=null,$mnth=null,$day=null)   X-Ref
Aucune description

create_current_date_time()   X-Ref
Aucune description

create_time($hr=null,$min=null,$sec=null)   X-Ref
Aucune description

create_past_date()   X-Ref
Aucune description

post_install_modules()   X-Ref
This method will look for a file modules_post_install.php in the root directory and based on the
contents of this file, it will silently install any modules as specified in this array.


get_help_button_url()   X-Ref
Aucune description

create_db_user_creds($numChars=10)   X-Ref
Aucune description

addDefaultRoles($defaultRoles = array()   X-Ref
Aucune description



Generé en: Thu Mar 4 09:44:50 2010 | Cross-referenced par PHPXref 0.7