Moving assets and resources to the public folder

This commit is contained in:
Matteo Gallo
2026-07-07 13:02:16 +02:00
parent 6571f0d398
commit 2f698971ae
5207 changed files with 47282 additions and 180074 deletions

View File

@@ -0,0 +1,621 @@
<?php
/***********************************************************************
* this is partial from: C:/utenti/Matteo/Lavori/Catbird/Cartedalegare/projects/carte/vendor/sjbr/static-info-tables/Classes/Domain/Model/Country.php
***********************************************************************/
namespace SJBR\StaticInfoTables\Domain\Model;
/*
* Copyright notice
*
* (c) 2011-2012 Armin Rüdiger Vieweg <info@professorweb.de>
* (c) 2013-2025 Stanislas Rolland <typo3AAAA(arobas)sjbr.ca>
* All rights reserved
*
* This script is part of the TYPO3 project. The TYPO3 project is
* free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* The GNU General Public License can be found at
* http://www.gnu.org/copyleft/gpl.html.
*
* This script is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* This copyright notice MUST APPEAR in all copies of the script!
*/
use SJBR\StaticInfoTables\Domain\Model\CountryZone;
use TYPO3\CMS\Extbase\Annotation as Extbase;
use TYPO3\CMS\Extbase\Persistence\Generic\LazyLoadingProxy;
use TYPO3\CMS\Extbase\Persistence\ObjectStorage;
/**
* The Country model
*/
class Country extends AbstractEntity
{
protected $tableName = 'static_countries';
/**
* @var string
*/
protected $addressFormat = '';
/**
* @var string
*/
protected $capitalCity = '';
/**
* Country zones of this country
* Needs to be public in some contexts due to the way LazyLoading is handled by Extbase
*
* @var ObjectStorage<CountryZone>
*/
#[Extbase\ORM\Lazy()]
public ObjectStorage $countryZones;
/**
* Currency code as number (i.e. 978)
* ISO 4217 Nr Currency code
*
* @var int
*/
protected $currencyIsoCodeNumber = 0;
/**
* Currency code as three digit string (i.e. EUR)
* ISO 4217 A3 Currency code
*
* @var string
*/
protected $currencyIsoCodeA3 = '';
/**
* Deletion status of the object
*
* @var bool
*/
protected $deleted = false;
/**
* Whether or not the country is a member of the European Union
*
* @var bool
*/
protected $euMember = false;
/**
* Country code as two digit string (i.e. AT)
* ISO 3166-1 A2 Country code
*
* @var string
*/
protected $isoCodeA2 = '';
/**
* Country code as three digit string (i.e. AUT)
* ISO 3166-1 A3 Country code
*
* @var string
*/
protected $isoCodeA3 = '';
/**
* Country code as number (i.e. 40)
* ISO 3166-1 Nr Country code
*
* @var int
*/
protected $isoCodeNumber = 0;
/**
* The official name of the country in English
*
* @var string
*/
protected $officialNameEn = '';
/**
* The official name of the country in local language and local script
*
* @var string
*/
protected $officialNameLocal = '';
/**
* UN number of territory in which the country is located
*
* @var int
*/
protected $parentTerritoryUnCodeNumber = 0;
/**
* The international phone prefix for the country
*
* @var int
*/
protected $phonePrefix = 0;
/**
* @var string
*/
protected $shortNameEn = '';
/**
* @var string
*/
protected $shortNameLocal = '';
/**
* Whether the country is a member of the UNO or not
*
* @var bool
*/
protected $unMember = false;
/**
* The Internet top level domain of the country
*
* @var string
*/
protected $topLevelDomain = '';
/**
* @var bool
*/
protected $zoneFlag = false;
public function __construct()
{
$this->countryZones = new ObjectStorage();
}
/**
* Sets the address format.
*
* @param string $addressFormat
*
* @return void
*/
public function setAddressFormat($addressFormat)
{
$this->addressFormat = $addressFormat;
}
/**
* Gets the address format.
*
* @return string
*/
public function getAddressFormat()
{
return $this->addressFormat;
}
/**
* Sets the name of the capital city
*
* @param string $capitalCity
*
* @return void
*/
public function setCapitalCity($capitalCity)
{
$this->capitalCity = $capitalCity;
}
/**
* Gets the name of the capital city
*
* @return string
*/
public function getCapitalCity()
{
return $this->capitalCity;
}
/**
* Sets the ISO A3 currency code.
*
* @param string $currencyIsoCodeA3
*
* @return void
*/
public function setCurrencyIsoCodeA3($currencyIsoCodeA3)
{
$this->currencyIsoCodeA3 = $currencyIsoCodeA3;
}
/**
* Gets the ISO A3 currency code.
*
* @return string
*/
public function getCurrencyIsoCodeA3()
{
return $this->currencyIsoCodeA3;
}
/**
* Sets the ISO numeric currency code
*
* @param int $currencyIsoCodeNumber
*
* @return void
*/
public function setCurrencyIsoCodeNumber($currencyIsoCodeNumber)
{
$this->currencyIsoCodeNumber = $currencyIsoCodeNumber;
}
/**
* Gets the ISO numeric currency code
*
* @return int
*/
public function getCurrencyIsoCodeNumber()
{
return $this->currencyIsoCodeNumber;
}
/**
* Sets whether this country is a member of the European Union.
*
* @param bool $euMember
*
* @return void
*/
public function setEuMember($euMember)
{
$this->euMember = $euMember;
}
/**
* Gets the deletion status of the entity
*
* @return bool
*/
public function getDeleted()
{
return $this->deleted;
}
/**
* Sets the deletion status of the entity
*
* @param bool $deleted
*
* @return void
*/
public function setDeleted($deleted)
{
$this->deleted = $deleted;
}
/**
* Gets whether this country is a member of the European Union.
*
* @return bool
*/
public function getEuMember()
{
return $this->euMember;
}
/**
* Gets whether this country is a member of the European Union.
*
* This method is a synonym for the getEuMember method.
*
* @return bool
*/
public function isEuMember()
{
return $this->getEuMember();
}
/**
* Sets the ISO alpha-2 code.
*
* @param string $isoCodeA2
*
* @return void
*/
public function setIsoCodeA2($isoCodeA2)
{
$this->isoCodeA2 = $isoCodeA2;
}
/**
* Gets the ISO alpha-2 code.
*
* @return string
*/
public function getIsoCodeA2()
{
return $this->isoCodeA2;
}
/**
* Sets the ISO alpha-3 code.
*
* @param string $isoCodeA3
*
* @return void
*/
public function setIsoCodeA3($isoCodeA3)
{
$this->isoCodeA3 = $isoCodeA3;
}
/**
* Gets the ISO alpha-3 code.
*
* @return string
*/
public function getIsoCodeA3()
{
return $this->isoCodeA3;
}
/**
* Sets the ISO code number.
*
* @param int $isoCodeNumber
*
* @return void
*/
public function setIsoCodeNumber($isoCodeNumber)
{
$this->isoCodeNumber = $isoCodeNumber;
}
/**
* Gets the ISO code number.
*
* @return int
*/
public function getIsoCodeNumber()
{
return $this->isoCodeNumber;
}
/**
* Sets the official name of the country in English
*
* @param string $officialNameEn
*
* @return void
*/
public function setOfficialNameEn($officialNameEn)
{
$this->officialNameEn = $officialNameEn;
}
/**
* Gets the official name of the country in English
*
* @return string
*/
public function getOfficialNameEn()
{
return $this->officialNameEn;
}
/**
* Sets the official name of the country in local language and script
*
* @param string $officialNameLocal
*
* @return void
*/
public function setOfficialNameLocal($officialNameLocal)
{
$this->officialNameLocal = $officialNameLocal;
}
/**
* Gets the official name of the country in local language and script
*
* @return string
*/
public function getOfficialNameLocal()
{
return $this->officialNameLocal;
}
/**
* Sets the parent territory UN numeric code.
*
* @param int $parentTerritoryUnCodeNumber
*
* @return void
*/
public function setParentTerritoryUnCodeNumber($parentTerritoryUnCodeNumber)
{
$this->parentTerritoryUnCodeNumber = $parentTerritoryUnCodeNumber;
}
/**
* Gets the parent territory UN numeric code.
*
* @return int
*/
public function getParentTerritoryUnCodeNumber()
{
return $this->parentTerritoryUnCodeNumber;
}
/**
* Sets the phone prefix.
*
* @param int $phonePrefix
*
* @return void
*/
public function setPhonePrefix($phonePrefix)
{
$this->phonePrefix = $phonePrefix;
}
/**
* Gets the phone prefix.
*
* @return int
*/
public function getPhonePrefix()
{
return $this->phonePrefix;
}
/**
* Sets the English short name.
*
* @param string $shortNameEn
*
* @return void
*/
public function setShortNameEn($shortNameEn)
{
$this->shortNameEn = $shortNameEn;
}
/**
* Gets the English short name.
*
* @return string
*/
public function getShortNameEn()
{
return $this->shortNameEn;
}
/**
* Sets the short local name.
*
* @param string $shortNameLocal
*
* @return void
*/
public function setShortNameLocal($shortNameLocal)
{
$this->shortNameLocal = $shortNameLocal;
}
/**
* Gets the short local name.
*
* @return string
*/
public function getShortNameLocal()
{
return $this->shortNameLocal;
}
/**
* Sets the top-level domain.
*
* @param string $topLevelDomain
*
* @return void
*/
public function setTopLevelDomain($topLevelDomain)
{
$this->topLevelDomain = $topLevelDomain;
}
/**
* Gets the top-level domain.
*
* @return string
*/
public function getTopLevelDomain()
{
return $this->topLevelDomain;
}
/**
* Sets whether this country is a member of the United Nations.
*
* @param bool $unMember
*
* @return void
*/
public function setUnMember($unMember)
{
$this->unMember = $unMember;
}
/**
* Gets whether this country is a member of the United Nations.
*
* @return bool
*/
public function getUnMember()
{
return $this->unMember;
}
/**
* Sets whether this country is a member of the United Nations.
*
* This method is a synonym for the getUnMember method.
*
* @return bool
*/
public function isUnMember()
{
return $this->getUnMember();
}
/**
* Sets the zone flag.
*
* @param bool $zoneFlag
*
* @return void
*/
public function setZoneFlag($zoneFlag)
{
$this->zoneFlag = $zoneFlag;
}
/**
* Gets the zone flag.
*
* @return bool
*/
public function getZoneFlag()
{
return $this->zoneFlag;
}
/**
* Sets the country zones
*
* @param ObjectStorage<CountryZone> $countryZones
* @return void
*/
public function setCountryZones($countryZones)
{
$this->countryZones = $countryZones;
}
/**
* Gets the country zones
*
* @return ObjectStorage<CountryZone>
*/
public function getCountryZones(): ObjectStorage
{
return $this->countryZones;
}
}
#1783423588 13211

View File

@@ -0,0 +1,254 @@
<?php
/***********************************************************************
* this is partial from: C:/utenti/Matteo/Lavori/Catbird/Cartedalegare/projects/carte/vendor/sjbr/static-info-tables/Classes/Domain/Model/CountryZone.php
***********************************************************************/
namespace SJBR\StaticInfoTables\Domain\Model;
/*
* Copyright notice
*
* (c) 2011-2012 Armin Rüdiger Vieweg <info@professorweb.de>
* (c) 2013-2023 Stanislas Rolland <typo3AAAA(arobas)sjbr.ca>
* All rights reserved
*
* This script is part of the TYPO3 project. The TYPO3 project is
* free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* The GNU General Public License can be found at
* http://www.gnu.org/copyleft/gpl.html.
*
* This script is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* This copyright notice MUST APPEAR in all copies of the script!
*/
/**
* The Country Zone model
*
* @copyright Copyright belongs to the respective authors
* @license http://www.gnu.org/licenses/gpl.html GNU General Public License, version 3 or later
*/
class CountryZone extends AbstractEntity
{
protected $tableName = 'static_country_zones';
/**
* Country code as two digit string (i.e. AT)
* ISO 3166-1 A2 Country code
*
* @var string
*/
protected $countryIsoCodeA2 = '';
/**
* Country code as three digit string (i.e. AUT)
* ISO 3166-1 A3 Country code
*
* @var string
*/
protected $countryIsoCodeA3 = '';
/**
* Country code as number (i.e. 40)
* ISO 3166-1 Nr Country code
*
* @var int
*/
protected $countryIsoCodeNumber = 0;
/**
* Deletion status of the object
*
* @var bool
*/
protected $deleted = false;
/**
* Country zone code as string
* ISO 3166-2 Country Zone code
*
* @var string
*/
protected $isoCode = '';
/**
* Local name of the country zone
*
* @var string
*/
protected $localName = '';
/**
* English name of the country zone
*
* @var string
*/
protected $nameEn = '';
/**
* Sets the country ISO alpha-2 code.
*
* @param string $countryIsoCodeA2
*
* @return void
*/
public function setCountryIsoCodeA2($countryIsoCodeA2)
{
$this->countryIsoCodeA2 = $countryIsoCodeA2;
}
/**
* Gets the country ISO alpha-2 code.
*
* @return string
*/
public function getCountryIsoCodeA2()
{
return $this->countryIsoCodeA2;
}
/**
* Sets the country ISO alpha-3 code.
*
* @param string $countryIsoCodeA3
*
* @return void
*/
public function setCountryIsoCodeA3($countryIsoCodeA3)
{
$this->countryIsoCodeA3 = $countryIsoCodeA3;
}
/**
* Gets the country ISO alpha-3 code.
*
* @return string
*/
public function getCountryIsoCodeA3()
{
return $this->countryIsoCodeA3;
}
/**
* Sets the country numeric ISO code
*
* @param int $countryIsoCodeNumber
*
* @return void
*/
public function setCountryIsoCodeNumber($countryIsoCodeNumber)
{
$this->countryIsoCodeNumber = $countryIsoCodeNumber;
}
/**
* Gets the country numeric ISO code
*
* @return int
*/
public function getCountryIsoCodeNumber()
{
return $this->countryIsoCodeNumber;
}
/**
* Gets the deletion status of the entity
*
* @return bool
*/
public function getDeleted()
{
return $this->deleted;
}
/**
* Sets the deletion status of the entity
*
* @param bool $deleted
*
* @return void
*/
public function setDeleted($deleted)
{
return $this->deleted = $deleted;
}
/**
* Sets the country zone ISO code.
*
* @param string $isoCode
*
* @return void
*/
public function setIsoCode($isoCode)
{
$this->isoCode = $isoCode;
}
/**
* Gets the country zone ISO code.
*
* @return string
*/
public function getIsoCode()
{
return $this->isoCode;
}
/**
* Sets the local name.
*
* @param string $localName
*
* @return void
*/
public function setLocalName($localName)
{
$this->localName = $localName;
}
/**
* Gets the local name.
*
* @return string
*/
public function getLocalName()
{
return $this->localName;
}
/**
* Sets the English name.
*
* @param string $nameEn
*
* @return void
*/
public function setNameEn($nameEn)
{
$this->nameEn = $nameEn;
}
/**
* Returns English name. If empty returns the localName.
*
* @return string
*/
public function getNameEn()
{
if ($this->nameEn === '') {
return $this->getLocalName();
}
return $this->nameEn;
}
}
#1783423588 5674

View File

@@ -0,0 +1,423 @@
<?php
/***********************************************************************
* this is partial from: C:/utenti/Matteo/Lavori/Catbird/Cartedalegare/projects/carte/vendor/sjbr/static-info-tables/Classes/Domain/Model/Currency.php
***********************************************************************/
namespace SJBR\StaticInfoTables\Domain\Model;
/*
* Copyright notice
*
* (c) 2011-2012 Armin Rüdiger Vieweg <info@professorweb.de>
* (c) 2013-2023 Stanislas Rolland <typo3AAAA(arobas)sjbr.ca>
* All rights reserved
*
* This script is part of the TYPO3 project. The TYPO3 project is
* free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* The GNU General Public License can be found at
* http://www.gnu.org/copyleft/gpl.html.
*
* This script is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* This copyright notice MUST APPEAR in all copies of the script!
*/
/**
* The Currency model
*
* @copyright Copyright belongs to the respective authors
* @license http://www.gnu.org/licenses/gpl.html GNU General Public License, version 3 or later
*/
class Currency extends AbstractEntity
{
protected $tableName = 'static_currencies';
/**
* The number of decimals to be shown when an amount is presented in this currency
*
* @var int
*/
protected $decimalDigits = 0;
/**
* The character to be shown in front of the decimals when an amount is presented in this currency
*
* @var string
*/
protected $decimalPoint = '';
/**
* Deletion status of the object
*
* @var bool
*/
protected $deleted = false;
/**
* The divisor used to obtain the subdivision of the currency
*
* @var int
*/
protected $divisor = 0;
/**
* Currency code as three digit string (i.e. EUR)
* ISO 4217 alpha-3 currency code
*
* @var string
*/
protected $isoCodeA3 = '';
/**
* Currency code as number
* ISO 4217 numeric currency code
*
* @var int
*/
protected $isoCodeNumber = 0;
/**
* English name of the currency
*
* @var string
*/
protected $nameEn = '';
/**
* English name of the currency subdivision unit
*
* @var string
*/
protected $subdivisionNameEn = '';
/**
* The symbol to be shown to the left of an amount stated in units of the subdivision of the currency
*
* @var string
*/
protected $subdivisionSymbolLeft = '';
/**
* The symbol to be shown to the right of an amount stated in units of the subdivision of the currency
*
* @var string
*/
protected $subdivisionSymbolRight = '';
/**
* The symbol to be shown to the left of an amount stated in units of the currency
*
* @var string
*/
protected $symbolLeft = '';
/**
* The symbol to be shown to the right of an amount stated in units of the currency
*
* @var string
*/
protected $symbolRight = '';
/**
* Character to be used between every group of thousands of an amount stated in units of this currency
*
* @var string
*/
protected $thousandsPoint = '';
/**
* Sets the number of decimal digits.
*
* @param int $decimalDigits
*
* @return void
*/
public function setDecimalDigits($decimalDigits)
{
$this->decimalDigits = $decimalDigits;
}
/**
* Gets the number of decimal digits.
*
* @return int
*/
public function getDecimalDigits()
{
return $this->decimalDigits;
}
/**
* Sets the decimal point character
*
* @param string $decimalPoint
*
* @return void
*/
public function setDecimalPoint($decimalPoint)
{
$this->decimalPoint = $decimalPoint;
}
/**
* Gets the decimal point character
*
* @return string
*/
public function getDecimalPoint()
{
return $this->decimalPoint;
}
/**
* Gets the deletion status of the entity
*
* @return bool
*/
public function getDeleted()
{
return $this->deleted;
}
/**
* Sets the deletion status of the entity
*
* @param bool $deleted
*
* @return void
*/
public function setDeleted($deleted)
{
return $this->deleted = $deleted;
}
/**
* Sets the divisor.
*
* @param int $divisor
*
* @return void
*/
public function setDivisor($divisor)
{
$this->divisor = $divisor;
}
/**
* Gets the divisor.
*
* @return int
*/
public function getDivisor()
{
return $this->divisor;
}
/**
* Sets the ISO alpha-3 code.
*
* @param string $isoCodeA3
*
* @return void
*/
public function setIsoCodeA3($isoCodeA3)
{
$this->isoCodeA3 = $isoCodeA3;
}
/**
* Gets the ISO alpha-3 code.
*
* @return string
*/
public function getIsoCodeA3()
{
return $this->isoCodeA3;
}
/**
* Sets the ISO code number.
*
* @param int $isoCodeNumber
*
* @return void
*/
public function setIsoCodeNumber($isoCodeNumber)
{
$this->isoCodeNumber = $isoCodeNumber;
}
/**
* Gets the ISO code number.
*
* @return int
*/
public function getIsoCodeNumber()
{
return $this->isoCodeNumber;
}
/**
* Sets the English name of the currency
*
* @param string $nameEn
*
* @return void
*/
public function setNameEn($nameEn)
{
$this->nameEn = $nameEn;
}
/**
* Gets the English name of the currency
*
* @return string
*/
public function getNameEn()
{
return $this->nameEn;
}
/**
* Sets the English name of the currency subdivision
*
* @param string $subdivisionNameEn
*
* @return void
*/
public function setSubdivisionNameEn($subdivisionNameEn)
{
$this->subdivisionNameEn = $subdivisionNameEn;
}
/**
* Gets the English name of the currency subdivision
*
* @return string
*/
public function getSubdivisionNameEn()
{
return $this->subdivisionNameEn;
}
/**
* Sets the left-hand side symbol for an amount stated in units of the subdivision of the currency
*
* @param string $subdivisionSymbolLeft
*
* @return void
*/
public function setSubdivisionSymbolLeft($subdivisionSymbolLeft)
{
$this->subdivisionSymbolLeft = $subdivisionSymbolLeft;
}
/**
* Gets the left-hand side symbol for an amount stated in units of the subdivision of the currency
*
* @return string
*/
public function getSubdivisionSymbolLeft()
{
return $this->subdivisionSymbolLeft;
}
/**
* Sets the right-hand side symbol for an amount stated in units of the subdivision of the currency
*
* @param string $subdivisionSymbolRight
*
* @return void
*/
public function setSubdivisionSymbolRight($subdivisionSymbolRight)
{
$this->subdivisionSymbolRight = $subdivisionSymbolRight;
}
/**
* Gets the right-hand side symbol for an amount stated in units of the subdivision of the currency
*
* @return string
*/
public function getSubdivisionSymbolRight()
{
return $this->subdivisionSymbolRight;
}
/**
* Sets the symbol to be shown to the left of an amount stated in units of the currency
*
* @param string $symbolLeft
*
* @return void
*/
public function setSymbolLeft($symbolLeft)
{
$this->symbolLeft = $symbolLeft;
}
/**
* Gets the symbol to be shown to the left of an amount stated in units of the currency
*
* @return string
*/
public function getSymbolLeft()
{
return $this->symbolLeft;
}
/**
* Sets the symbol to be shown to the right of an amount stated in units of the currency
*
* @param string $symbolRight
*
* @return void
*/
public function setSymbolRight($symbolRight)
{
$this->symbolRight = $symbolRight;
}
/**
* Gets the symbol to be shown to the right of an amount stated in units of the currency
*
* @return string
*/
public function getSymbolRight()
{
return $this->symbolRight;
}
/**
* Sets the thousands point/separator.
*
* @param string $thousandsPoint
*
* @return void
*/
public function setThousandsPoint($thousandsPoint)
{
$this->thousandsPoint = $thousandsPoint;
}
/**
* Gets the thousands point/separator.
*
* @return string
*/
public function getThousandsPoint()
{
return $this->thousandsPoint;
}
}
#1783423588 9766

View File

@@ -0,0 +1,329 @@
<?php
/***********************************************************************
* this is partial from: C:/utenti/Matteo/Lavori/Catbird/Cartedalegare/projects/carte/vendor/sjbr/static-info-tables/Classes/Domain/Model/Language.php
***********************************************************************/
namespace SJBR\StaticInfoTables\Domain\Model;
/***************************************************************
* Copyright notice
*
* (c) 2011-2012 Armin Rüdiger Vieweg <info@professorweb.de>
* (c) 2013-2023 Stanislas Rolland <typo3AAAA(arobas)sjbr.ca>
* All rights reserved
*
* This script is part of the TYPO3 project. The TYPO3 project is
* free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* The GNU General Public License can be found at
* http://www.gnu.org/copyleft/gpl.html.
*
* This script is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* This copyright notice MUST APPEAR in all copies of the script!
*/
/**
* The Language model
*
* @copyright Copyright belongs to the respective authors
* @license http://www.gnu.org/licenses/gpl.html GNU General Public License, version 3 or later
*/
class Language extends AbstractEntity
{
protected $tableName = 'static_languages';
/**
* @var string
*/
protected $collatingLocale = '';
/**
* Country code as two digit string (i.e. AT)
* Identifies this language as a variant of the language identified by the ISO 639-1 A2 Language code
* See also RFC 4646
* ISO 3166-1 A2 Country code
*
* @var string
*/
protected $countryIsoCodeA2 = '';
/**
* @var bool
*/
protected $constructedLanguage = false;
/**
* Deletion status of the object
*
* @var bool
*/
protected $deleted = false;
/**
* ISO 639-1 A2 Language code
*
* @var string
*/
protected $isoCodeA2 = '';
/**
* Local name: name of language in the language itself
*
* @var string
*/
protected $localName = '';
/**
* English name
*
* @var string
*/
protected $nameEn = '';
/**
* @var bool
*/
protected $sacredLanguage = false;
/**
* @var string
*/
protected $typo3Code = '';
public function __construct()
{
$this->tableName = 'static_languages';
}
/**
* Sets the collating locale.
*
* @param string $collatingLocale
*
* @return void
*/
public function setCollatingLocale($collatingLocale)
{
$this->collatingLocale = $collatingLocale;
}
/**
* Gets the collating locale.
*
* @return string
*/
public function getCollatingLocale()
{
return $this->collatingLocale;
}
/**
* Sets the ISO 3166-1 A2 Country code
*
* @param string $countryIsoCodeA2
*
* @return void
*/
public function setCountryIsoCodeA2($countryIsoCodeA2)
{
$this->countryIsoCodeA2 = $countryIsoCodeA2;
}
/**
* Gets the ISO 3166-1 A2 Country code
*
* @return string
*/
public function getCountryIsoCodeA2()
{
return $this->countryIsoCodeA2;
}
/**
* Sets whether this is a constructed language.
*
* @param bool $constructedLanguage
*
* @return void
*/
public function setConstructedLanguage($constructedLanguage)
{
$this->constructedLanguage = $constructedLanguage;
}
/**
* Gets whether this is a constructed language.
*
* @return bool
*/
public function getConstructedLanguage()
{
return $this->constructedLanguage;
}
/**
* Gets whether this is a constructed language.
*
* This method is a synonym for the getConstructedLanguage method.
*
* @return bool
*/
public function isConstructedLanguage()
{
return $this->getConstructedLanguage();
}
/**
* Gets the deletion status of the entity
*
* @return bool
*/
public function getDeleted()
{
return $this->deleted;
}
/**
* Sets the deletion status of the entity
*
* @param bool $deleted
*
* @return void
*/
public function setDeleted($deleted)
{
return $this->deleted = $deleted;
}
/**
* Sets the ISO 639-1 A2 Language code
*
* @param string $isoCodeA2
*
* @return void
*/
public function setIsoCodeA2($isoCodeA2)
{
$this->isoCodeA2 = $isoCodeA2;
}
/**
* Gets the ISO 639-1 A2 Language code
*
* @return string
*/
public function getIsoCodeA2()
{
return $this->isoCodeA2;
}
/**
* Sets the local name.
*
* @param string $localName
*
* @return void
*/
public function setLocalName($localName)
{
$this->localName = $localName;
}
/**
* Gets the local name.
*
* @return string
*/
public function getLocalName()
{
return $this->localName;
}
/**
* Sets the English name
*
* @param string $nameEn
*
* @return void
*/
public function setNameEn($nameEn)
{
$this->nameEn = $nameEn;
}
/**
* Gets the English name
*
* @return string
*/
public function getNameEn()
{
return $this->nameEn;
}
/**
* Sets whether this is a sacred language.
*
* @param bool $sacredLanguage
*
* @return void
*/
public function setSacredLanguage($sacredLanguage)
{
$this->sacredLanguage = $sacredLanguage;
}
/**
* Gets whether this is a sacred language.
*
* @return bool
*/
public function getSacredLanguage()
{
return $this->sacredLanguage;
}
/**
* Sets whether this is a sacred language.
*
* This method is a synonym for the getSacredLanguage method.
*
* @return bool
*/
public function isSacredLanguage()
{
return $this->getSacredLanguage();
}
/**
* Sets the TYPO3 language code.
*
* @param string $typo3Code
*
* @return void
*/
public function setTypo3Code($typo3Code)
{
$this->typo3Code = $typo3Code;
}
/**
* Gets the TYPO3 language code.
*
* @return string
*/
public function getTypo3Code()
{
return $this->typo3Code;
}
}
#1783423588 7189

View File

@@ -0,0 +1,160 @@
<?php
/***********************************************************************
* this is partial from: C:/utenti/Matteo/Lavori/Catbird/Cartedalegare/projects/carte/vendor/sjbr/static-info-tables/Classes/Domain/Model/Territory.php
***********************************************************************/
namespace SJBR\StaticInfoTables\Domain\Model;
/***************************************************************
* Copyright notice
*
* (c) 2011-2012 Armin Rüdiger Vieweg <info@professorweb.de>
* (c) 2013-2023 Stanislas Rolland <typo3AAAA(arobas)sjbr.ca>
* All rights reserved
*
* This script is part of the TYPO3 project. The TYPO3 project is
* free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* The GNU General Public License can be found at
* http://www.gnu.org/copyleft/gpl.html.
*
* This script is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* This copyright notice MUST APPEAR in all copies of the script!
*/
/**
* The Territory model
*
* @copyright Copyright belongs to the respective authors
* @license http://www.gnu.org/licenses/gpl.html GNU General Public License, version 3 or later
*/
class Territory extends AbstractEntity
{
protected $tableName = 'static_territories';
/**
* Deletion status of the object
*
* @var bool
*/
protected $deleted = false;
/**
* UN numeric territory code
*
* @var int
*/
protected $unCodeNumber = 0;
/**
* English name
*
* @var string
*/
protected $nameEn = '';
/**
* UN numeric territory code of parent territory
*
* @var int
*/
protected $parentTerritoryUnCodeNumber = 0;
/**
* Gets the deletion status of the entity
*
* @return bool
*/
public function getDeleted()
{
return $this->deleted;
}
/**
* Sets the deletion status of the entity
*
* @param bool $deleted
*
* @return void
*/
public function setDeleted($deleted)
{
$this->deleted = $deleted;
}
/**
* Sets the English name
*
* @param string $nameEn
*
* @return void
*/
public function setNameEn($nameEn)
{
$this->nameEn = $nameEn;
}
/**
* Returns the English name
*
* @return string
*/
public function getNameEn()
{
return $this->nameEn;
}
/**
* Sets the UN territory numeric code
*
* @param int $unCodeNumber
*
* @return void
*/
public function setUnCodeNumber($unCodeNumber)
{
$this->unCodeNumber = $unCodeNumber;
}
/**
* Returns the UN territory numeric code
*
* @return int
*/
public function getUnCodeNumber()
{
return $this->unCodeNumber;
}
/**
* Sets the UN numeric territory code of the parent territory
*
* @param int $parentTerritoryUnCodeNumber
*
* @return void
*/
public function setParentTerritoryUnCodeNumber($parentTerritoryUnCodeNumber)
{
$this->parentTerritoryUnCodeNumber = $parentTerritoryUnCodeNumber;
}
/**
* Returns the UN numeric territory code of the parent territory
*
* @return int
*/
public function getParentTerritoryUnCodeNumber()
{
return $this->parentTerritoryUnCodeNumber;
}
}
#1783423588 3895