Class BusinessInformation

Description

Manage the business information (used for bill)

  • author: SimpliciWeb
  • version: $Id: t_businessinformartion.class.php 606 2007-07-19 10:14:30Z stephanet $

Located in /core/internal_components/common/t_text/t_businessinformartion.class.php (line 64)

ObjectCached
   |
   --XTText
      |
      --BusinessInformation
Variable Summary
Method Summary
 void getValues ( &$r_result, array $r_result)
 bool insertBusinessInformation (string $p_compagny_name, string $p_business_name, string $p_slogan, string $p_address, string $p_zipcode, string $p_city, string $p_country, string $p_phone, string $p_fax, string $p_email, string $p_siret, string $p_naf, string $p_ue_vat, string $p_bill_prefix)
 bool loadData ([string $p_database_selected = ""])
 void resetValues ()
 string xCleanResult (string $p_input)
 bool xIsNotValidAddress (string $p_value)
 bool xIsNotValidBillPrefix (string $p_value)
 bool xIsNotValidBusinessName (string $p_value)
 bool xIsNotValidCity (string $p_value)
 bool xIsNotValidCompagnyName (string $p_value)
 bool xIsNotValidCountry (string $p_value)
 bool xIsNotValidEmail (string $p_value)
 bool xIsNotValidNaf (string $p_value)
 bool xIsNotValidPhone ( $p_phone, string $p_value)
 bool xIsNotValidSiret (string $p_value)
 bool xIsNotValidSlogan (string $p_value)
 bool xIsNotValidUeVat (string $p_value)
 bool xIsNotValidZipCode (string $p_value)
Variables
string $m_address = "" (line 198)

Address

string $m_address_type = "bus_address" (line 98)

Address

string $m_bill_prefix = "" (line 259)

Bill prefix

string $m_bill_prefix_type = "bill_prefix" (line 159)

Prefix for bill

string $m_business_name = "" (line 186)

Business name

string $m_business_name_type = "bus_name" (line 86)

Business name

string $m_city = "" (line 210)

City

string $m_city_type = "bus_city" (line 110)

City

string $m_compagny_name = "" (line 180)

Compagny name

string $m_compagny_name_type = "bus_compagny_name" (line 80)

Compagny name

string $m_country = "" (line 216)

Country

string $m_country_type = "bus_country" (line 116)

Country

string $m_db_empty_value = " " (line 174)

XInsert cannot accept empty value

string $m_email = "" (line 234)

Email

string $m_email_type = "bus_email" (line 134)

Email

string $m_empty_value = "" (line 166)

Empty value

string $m_fax = "" (line 228)

Fax

string $m_fax_type = "bus_fax" (line 128)

Fax

string $m_naf = "" (line 246)

French parameters :Naf number

string $m_naf_type = "bus_naf" (line 146)

Naf number

Format $m_object_format = NULL (line 71)

Format Object

string $m_phone = "" (line 222)

Phone

string $m_phone_type = "bus_phone" (line 122)

Phone

string $m_siret = "" (line 240)

French parameters :SIRET number

string $m_siret_type = "bus_siret" (line 140)

SIRET number

string $m_slogan = "" (line 192)

Slogan

string $m_slogan_type = "bus_slogan" (line 92)

Slogan

string $m_ue_vat = "" (line 252)

French parameters :UE VAT

string $m_ue_vat_type = "bus_ue_vat" (line 152)

European parameters : UE VAT

string $m_zipcode = "" (line 204)

ZipCode

string $m_zipcode_type = "bus_zipcode" (line 104)

ZipCode

Inherited Variables

Inherited from XTText

XTText::$m_array_already_loader
XTText::$m_object_dbconnexion
XTText::$m_object_siteinformation
XTText::$req_delete
XTText::$req_insert
XTText::$req_select
Methods
Constructor BusinessInformation (line 267)

Constructor, init the requests and objects

BusinessInformation BusinessInformation ()
getBusinessInformations (line 415)

Get business information

void getBusinessInformations ()
getValues (line 505)

Return all member's var in array

void getValues ( &$r_result, array $r_result)
  • array $r_result
  • &$r_result
insertBusinessInformation (line 565)

Insert or update business informations

  • return: TRUE on error
bool insertBusinessInformation (string $p_compagny_name, string $p_business_name, string $p_slogan, string $p_address, string $p_zipcode, string $p_city, string $p_country, string $p_phone, string $p_fax, string $p_email, string $p_siret, string $p_naf, string $p_ue_vat, string $p_bill_prefix)
  • string $p_compagny_name
  • string $p_business_name
  • string $p_slogan
  • string $p_address
  • string $p_zipcode
  • string $p_city
  • string $p_country
  • string $p_phone
  • string $p_fax
  • string $p_email
  • string $p_siret
  • string $p_naf
  • string $p_ue_vat
  • string $p_bill_prefix
loadData (line 436)

Load data form database Fill member var

  • return: TRUE on error
bool loadData ([string $p_database_selected = ""])
  • string $p_database_selected
resetValues (line 528)

Reset all member's var

void resetValues ()
xCleanResult (line 675)

This function remove the m_empty_value tag

string xCleanResult (string $p_input)
  • string $p_input
xIsNotValidAddress (line 316)

Parameter Integrity checker

  • return: TRUE if not valid
  • access: private
bool xIsNotValidAddress (string $p_value)
  • string $p_value
xIsNotValidBillPrefix (line 406)

Parameter Integrity checker

  • return: TRUE if not valid
  • access: private
bool xIsNotValidBillPrefix (string $p_value)
  • string $p_value
xIsNotValidBusinessName (line 296)

Parameter Integrity checker

  • return: TRUE if not valid
  • access: private
bool xIsNotValidBusinessName (string $p_value)
  • string $p_value
xIsNotValidCity (line 336)

Parameter Integrity checker

  • return: TRUE if not valid
  • access: private
bool xIsNotValidCity (string $p_value)
  • string $p_value
xIsNotValidCompagnyName (line 286)

Parameter Integrity checker

  • return: TRUE if not valid
  • access: private
bool xIsNotValidCompagnyName (string $p_value)
  • string $p_value
xIsNotValidCountry (line 346)

Parameter Integrity checker

  • return: TRUE if not valid
  • access: private
bool xIsNotValidCountry (string $p_value)
  • string $p_value
xIsNotValidEmail (line 366)

Parameter Integrity checker

  • return: TRUE if not valid
  • access: private
bool xIsNotValidEmail (string $p_value)
  • string $p_value
xIsNotValidNaf (line 386)

Parameter Integrity checker

  • return: TRUE if not valid
  • access: private
bool xIsNotValidNaf (string $p_value)
  • string $p_value
xIsNotValidPhone (line 356)

Parameter Integrity checker

  • return: TRUE if not valid
  • access: private
bool xIsNotValidPhone ( $p_phone, string $p_value)
  • string $p_value
  • $p_phone
xIsNotValidSiret (line 376)

Parameter Integrity checker

  • return: TRUE if not valid
  • access: private
bool xIsNotValidSiret (string $p_value)
  • string $p_value
xIsNotValidSlogan (line 306)

Parameter Integrity checker

  • return: TRUE if not valid
  • access: private
bool xIsNotValidSlogan (string $p_value)
  • string $p_value
xIsNotValidUeVat (line 396)

Parameter Integrity checker

  • return: TRUE if not valid
  • access: private
bool xIsNotValidUeVat (string $p_value)
  • string $p_value
xIsNotValidZipCode (line 326)

Parameter Integrity checker

  • return: TRUE if not valid
  • access: private
bool xIsNotValidZipCode (string $p_value)
  • string $p_value

Inherited Methods

Inherited From XTText

 XTText::XTText()
 XTText::xDelete()
 XTText::xGet()
 XTText::xInsert()

Inherited From ObjectCached

 ObjectCached::xClearRemember()
 ObjectCached::xClearRememberAll()
 ObjectCached::xIsRemembered()
 ObjectCached::xRemember()

Documentation generated on Tue, 25 Mar 2008 15:36:12 +0100 by phpDocumentor 1.3.2