A PHP Error was encountered
Severity: 8192
Message: Function create_function() is deprecated
Filename: geshi/geshi.php
Line Number: 4698
Backtrace:
File: /home/httpd/vhosts/scratchbook.ch/geopaste.scratchbook.ch/application/libraries/geshi/geshi.php
Line: 4698
Function: _error_handler
File: /home/httpd/vhosts/scratchbook.ch/geopaste.scratchbook.ch/application/libraries/geshi/geshi.php
Line: 4621
Function: _optimize_regexp_list_tokens_to_string
File: /home/httpd/vhosts/scratchbook.ch/geopaste.scratchbook.ch/application/libraries/geshi/geshi.php
Line: 1655
Function: optimize_regexp_list
File: /home/httpd/vhosts/scratchbook.ch/geopaste.scratchbook.ch/application/libraries/geshi/geshi.php
Line: 2029
Function: optimize_keyword_group
File: /home/httpd/vhosts/scratchbook.ch/geopaste.scratchbook.ch/application/libraries/geshi/geshi.php
Line: 2168
Function: build_parse_cache
File: /home/httpd/vhosts/scratchbook.ch/geopaste.scratchbook.ch/application/libraries/Process.php
Line: 45
Function: parse_code
File: /home/httpd/vhosts/scratchbook.ch/geopaste.scratchbook.ch/application/models/Pastes.php
Line: 517
Function: syntax
File: /home/httpd/vhosts/scratchbook.ch/geopaste.scratchbook.ch/application/controllers/Main.php
Line: 551
Function: getPaste
File: /home/httpd/vhosts/scratchbook.ch/geopaste.scratchbook.ch/index.php
Line: 315
Function: require_once
A PHP Error was encountered
Severity: Warning
Message: Cannot modify header information - headers already sent by (output started at /home/httpd/vhosts/scratchbook.ch/geopaste.scratchbook.ch/system/core/Exceptions.php:271)
Filename: view/raw.php
Line Number: 2
Backtrace:
File: /home/httpd/vhosts/scratchbook.ch/geopaste.scratchbook.ch/themes/geocities/views/view/raw.php
Line: 2
Function: header
File: /home/httpd/vhosts/scratchbook.ch/geopaste.scratchbook.ch/application/core/MY_Loader.php
Line: 173
Function: include
File: /home/httpd/vhosts/scratchbook.ch/geopaste.scratchbook.ch/application/core/MY_Loader.php
Line: 43
Function: _ci_load
File: /home/httpd/vhosts/scratchbook.ch/geopaste.scratchbook.ch/application/controllers/Main.php
Line: 558
Function: view
File: /home/httpd/vhosts/scratchbook.ch/geopaste.scratchbook.ch/index.php
Line: 315
Function: require_once
2.8.16.
*/
class Preferences extends SimpleEntity
{
// member type
const TYPE_CUSTOMER=1;
const TYPE_PROVIDER=2;
const TYPE_CLUB=3; //future prediction
/**
* @ORM\Column(type="integer")
* @var int Member type
*/
private $type;
/**
* @ORM\Column(length=2)
* @var string Language code
*/
private $lang;
/**
* @ORM\Column(type="boolean")
* @var bool Meeting offers acceptation status
*/
private $acceptingOffers;
/**
* @ORM\Column(type="boolean")
* @var bool Last value of meeting acceptation status
*/
private $lastTimeAcceptingOffers;
/**
* @ORM\Column(type="boolean")
* @var bool To show or not to show - that is the question
*/
private $privacy;
/**
* @ORM\Column(length=32)
* @var string Bestowed profile password
*/
private $profilePassword; //TODO bad principle
/**
* @ORM\Column(length=128)
* @var string
*/
private $timezone; //TODO rethink, use brain
/**
* @ORM\ManyToOne(targetEntity="App\Model\Misc\Currency")
* @var Currency Accepted & used currency
*/
private $paymentCurrency;
// getters & setters
/**
* @return int
*/
public function getType()
{
return $this->type;
}
/**
* @param int $type
* @return Preferences
*/
public function setType( $type )
{
$this->type = $type;
return $this;
}
/**
* @return string
*/
public function getLang()
{
return $this->lang;
}
/**
* @param string $lang
* @return Preferences
*/
public function setLang( $lang )
{
$this->lang = $lang;
return $this;
}
/**
* @return boolean
*/
public function isAcceptingOffers()
{
return $this->acceptingOffers;
}
/**
* @param boolean $acceptingOffers
* @return Preferences
*/
public function setAcceptingOffers( $acceptingOffers )
{
$this->acceptingOffers = $acceptingOffers;
return $this;
}
/**
* @return boolean
*/
public function isLastTimeAcceptingOffers()
{
return $this->lastTimeAcceptingOffers;
}
/**
* @param boolean $lastTimeAcceptingOffers
* @return Preferences
*/
public function setLastTimeAcceptingOffers( $lastTimeAcceptingOffers )
{
$this->lastTimeAcceptingOffers = $lastTimeAcceptingOffers;
return $this;
}
/**
* @return boolean
*/
public function isPrivacy()
{
return $this->privacy;
}
/**
* @param boolean $privacy
* @return Preferences
*/
public function setPrivacy( $privacy )
{
$this->privacy = $privacy;
return $this;
}
/**
* @return string
*/
public function getProfilePassword()
{
return $this->profilePassword;
}
/**
* @param string $profilePassword
* @return Preferences
*/
public function setProfilePassword( $profilePassword )
{
$this->profilePassword = $profilePassword;
return $this;
}
/**
* @return string
*/
public function getTimezone()
{
return $this->timezone;
}
/**
* @param string $timezone
* @return Preferences
*/
public function setTimezone( $timezone )
{
$this->timezone = $timezone;
return $this;
}
/**
* @return Currency
*/
public function getPaymentCurrency()
{
return $this->paymentCurrency;
}
/**
* @param Currency $paymentCurrency
* @return Preferences
*/
public function setPaymentCurrency( $paymentCurrency )
{
$this->paymentCurrency = $paymentCurrency;
return $this;
}
}