extranet/includes/giant/modulesGiants/Class/GiantIdentite.Class.php

120 lines
2.2 KiB
PHP
Raw Normal View History

<?php
Class GiantIdentite
{
public $RegisteredName;
public $CompanyRegisterNumber;
public $Adress;
public $PostCodeAndCity;
public $TelephoneNumbers;
public $NaceCode;
public $LegalForm;
public $VatNumber;
public $CompanyWebSite;
public $CompanyEmail;
function __construct(){}
public function _getRegisteredName()
{
return ($this->RegisteredName);
}
public function _createAdress($housenumber = null, $street = null, $adresseType = null)
{
return ($this->Adress = $housenumber . ' ' . $adresseType . ' ' . $street);
}
public function _createPostanCity($postcode = null, $city = null)
{
return ($this->PostCodeAndCity = $postcode . ' ' . $city);
}
public function _createTelephoneNumber($telephones)
{
if (is_object($telephones) or is_array($telephones))
{
foreach ($telephones as $tel)
{
foreach ($tel as $num)
{
if (!empty($this->TelephoneNumbers))
$this->TelephoneNumbers .= $num . ' ';
$this->TelephoneNumbers = $num;
}
}
return ($this->TelephoneNumbers);
}
return ($telephones);
}
public function _ParseNaceCode($confiNaceCode, $naceCode)
{
$array_naceCode = explode(',', $naceCode);
foreach ($array_naceCode as $nace)
{
echo $nace;
}
}
public function _getCompanyRegisterNumber()
{
return ($this->CompanyRegisterNumber);
}
public function _getHouseNumber()
{
return ($this->HouseNumber);
}
public function _getAddressType()
{
return ($this->AddressType);
}
public function _getStreet()
{
return ($this->Street);
}
public function _getPostCode()
{
return ($this->PostCode);
}
public function _getCity()
{
return ($this->City);
}
public function _getTelephoneNumbers()
{
return ($this->TelephoneNumbers);
}
public function _getNaceCode()
{
return ($this->NaceCode);
}
public function _getLegalForm()
{
return ($this->LegalForm);
}
public function _getVatNumber()
{
return ($this->VatNumber);
}
public function _getCompanyWebSite()
{
return ($this->CompanyWebSite);
}
public function _getCompanyEmail()
{
return ($this->CompanyEmail);
}
}
?>