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: 693
Function: getPaste

File: /home/httpd/vhosts/scratchbook.ch/geopaste.scratchbook.ch/index.php
Line: 315
Function: require_once

Untitled - Stikked
From Buff Dormouse, 9 Years ago, written in PHP.
Embed
  1. <?php
  2.  
  3. namespace App\Model\Person;
  4.  
  5. use App\Model\Base\SimpleEntity;
  6. use App\Model\Misc\Currency;
  7. use Doctrine\ORM\Mapping as ORM;
  8.  
  9.  
  10. /**
  11.  * Class Preferences
  12.  *
  13.  * @ORM\Entity()
  14.  * @ORM\Table(name="person_preferences")
  15.  *
  16.  * Created by Petr Blažíček <blazicek@apollo13.cz> 2.8.16.
  17.  */
  18. class Preferences extends SimpleEntity
  19. {
  20.         // member type
  21.         const TYPE_CUSTOMER=1;
  22.         const TYPE_PROVIDER=2;
  23.         const TYPE_CLUB=3; //future prediction
  24.  
  25.         /**
  26.          * @ORM\Column(type="integer")
  27.          * @var int Member type
  28.          */
  29.         private $type;
  30.  
  31.         /**
  32.          * @ORM\Column(length=2)
  33.          * @var string Language code
  34.          */
  35.         private $lang;
  36.  
  37.         /**
  38.          * @ORM\Column(type="boolean")
  39.          * @var bool Meeting offers acceptation status
  40.          */
  41.         private $acceptingOffers;
  42.  
  43.         /**
  44.          * @ORM\Column(type="boolean")
  45.          * @var bool Last value of meeting acceptation status
  46.          */
  47.         private $lastTimeAcceptingOffers;
  48.  
  49.         /**
  50.          * @ORM\Column(type="boolean")
  51.          * @var bool To show or not to show - that is the question
  52.          */
  53.         private $privacy;
  54.  
  55.         /**
  56.          * @ORM\Column(length=32)
  57.          * @var string Bestowed profile password
  58.          */
  59.         private $profilePassword; //TODO bad principle
  60.  
  61.         /**
  62.          * @ORM\Column(length=128)
  63.          * @var string
  64.          */
  65.         private $timezone; //TODO rethink, use brain
  66.  
  67.         /**
  68.          * @ORM\ManyToOne(targetEntity="App\Model\Misc\Currency")
  69.          * @var Currency Accepted & used currency
  70.          */
  71.         private $paymentCurrency;
  72.  
  73.         // getters & setters
  74.  
  75.         /**
  76.          * @return int
  77.          */
  78.         public function getType()
  79.         {
  80.                 return $this->type;
  81.         }
  82.  
  83.         /**
  84.          * @param int $type
  85.          * @return Preferences
  86.          */
  87.         public function setType( $type )
  88.         {
  89.                 $this->type = $type;
  90.  
  91.                 return $this;
  92.         }
  93.  
  94.         /**
  95.          * @return string
  96.          */
  97.         public function getLang()
  98.         {
  99.                 return $this->lang;
  100.         }
  101.  
  102.         /**
  103.          * @param string $lang
  104.          * @return Preferences
  105.          */
  106.         public function setLang( $lang )
  107.         {
  108.                 $this->lang = $lang;
  109.  
  110.                 return $this;
  111.         }
  112.  
  113.         /**
  114.          * @return boolean
  115.          */
  116.         public function isAcceptingOffers()
  117.         {
  118.                 return $this->acceptingOffers;
  119.         }
  120.  
  121.         /**
  122.          * @param boolean $acceptingOffers
  123.          * @return Preferences
  124.          */
  125.         public function setAcceptingOffers( $acceptingOffers )
  126.         {
  127.                 $this->acceptingOffers = $acceptingOffers;
  128.  
  129.                 return $this;
  130.         }
  131.  
  132.         /**
  133.          * @return boolean
  134.          */
  135.         public function isLastTimeAcceptingOffers()
  136.         {
  137.                 return $this->lastTimeAcceptingOffers;
  138.         }
  139.  
  140.         /**
  141.          * @param boolean $lastTimeAcceptingOffers
  142.          * @return Preferences
  143.          */
  144.         public function setLastTimeAcceptingOffers( $lastTimeAcceptingOffers )
  145.         {
  146.                 $this->lastTimeAcceptingOffers = $lastTimeAcceptingOffers;
  147.  
  148.                 return $this;
  149.         }
  150.  
  151.         /**
  152.          * @return boolean
  153.          */
  154.         public function isPrivacy()
  155.         {
  156.                 return $this->privacy;
  157.         }
  158.  
  159.         /**
  160.          * @param boolean $privacy
  161.          * @return Preferences
  162.          */
  163.         public function setPrivacy( $privacy )
  164.         {
  165.                 $this->privacy = $privacy;
  166.  
  167.                 return $this;
  168.         }
  169.  
  170.         /**
  171.          * @return string
  172.          */
  173.         public function getProfilePassword()
  174.         {
  175.                 return $this->profilePassword;
  176.         }
  177.  
  178.         /**
  179.          * @param string $profilePassword
  180.          * @return Preferences
  181.          */
  182.         public function setProfilePassword( $profilePassword )
  183.         {
  184.                 $this->profilePassword = $profilePassword;
  185.  
  186.                 return $this;
  187.         }
  188.  
  189.         /**
  190.          * @return string
  191.          */
  192.         public function getTimezone()
  193.         {
  194.                 return $this->timezone;
  195.         }
  196.  
  197.         /**
  198.          * @param string $timezone
  199.          * @return Preferences
  200.          */
  201.         public function setTimezone( $timezone )
  202.         {
  203.                 $this->timezone = $timezone;
  204.  
  205.                 return $this;
  206.         }
  207.  
  208.         /**
  209.          * @return Currency
  210.          */
  211.         public function getPaymentCurrency()
  212.         {
  213.                 return $this->paymentCurrency;
  214.         }
  215.  
  216.         /**
  217.          * @param Currency $paymentCurrency
  218.          * @return Preferences
  219.          */
  220.         public function setPaymentCurrency( $paymentCurrency )
  221.         {
  222.                 $this->paymentCurrency = $paymentCurrency;
  223.  
  224.                 return $this;
  225.         }
  226.  
  227. }