Guest User

Conference.php

a guest
Jan 14th, 2014
433
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 19.03 KB | None | 0 0
  1. <?php
  2.  
  3. namespace SciForum\Version2Bundle\Entity;
  4.  
  5. use Doctrine\ORM\Mapping as ORM;
  6. use Doctrine\Common\Collections\ArrayCollection;
  7.  
  8. use Symfony\Component\Validator\Mapping\ClassMetadata;
  9. use Symfony\Component\Validator\Constraints\NotBlank;
  10. use Symfony\Component\Validator\Constraints\MinLength;
  11. use Symfony\Component\Validator\Constraints\MaxLength;
  12.  
  13. /**
  14.  * @ORM\Entity(repositoryClass="SciForum\Version2Bundle\Repository\ConferenceRepository")
  15.  * @ORM\Table(name="conferences")
  16.  * @ORM\HasLifecycleCallbacks()
  17.  */
  18. class Conference
  19. {
  20.     /**
  21.      * @ORM\Id
  22.      * @ORM\Column(type="integer")
  23.      * @ORM\GeneratedValue(strategy="AUTO")
  24.      */
  25.     protected $id;
  26.    
  27.     /**
  28.      * @ORM\Column(type="integer")
  29.      */
  30.     protected $conf_type;
  31.    
  32.     /**
  33.      * @ORM\Column(type="string")
  34.      */
  35.     protected $name_full;
  36.    
  37.     /**
  38.      * @ORM\Column(type="string")
  39.      */
  40.     protected $name_iso4;
  41.    
  42.     /**
  43.      * @ORM\Column(type="string")
  44.      */
  45.     protected $name_short;
  46.  
  47.     /**
  48.      * @ORM\Column(type="string")
  49.      */
  50.     protected $name_system;
  51.  
  52.     /**
  53.      * @ORM\Column(type="integer")
  54.      */
  55.     protected $edition;
  56.    
  57.     /**
  58.      * @ORM\Column(type="date")
  59.      */
  60.     protected $date_start;
  61.    
  62.     /**
  63.      * @ORM\Column(type="date")
  64.      */
  65.     protected $date_end;
  66.    
  67.     /**
  68.      * @ORM\Column(type="date")
  69.      */
  70.     protected $date_abstract;
  71.    
  72.     /**
  73.      * @ORM\Column(type="date")
  74.      */
  75.     protected $date_acceptance;
  76.    
  77.     /**
  78.      * @ORM\Column(type="date")
  79.      */
  80.     protected $date_presentation;
  81.  
  82.     /**
  83.      * @ORM\Column(type="string")
  84.      */
  85.     protected $description;
  86.  
  87.     /**
  88.      * @ORM\Column(type="string")
  89.      */
  90.     protected $topics;
  91.  
  92.     /**
  93.      * @ORM\Column(name="`call`", type="string")
  94.      */
  95.     protected $call;
  96.  
  97.     /**
  98.      * @ORM\Column(type="string")
  99.      */
  100.     protected $proceedings;
  101.  
  102.     /**
  103.      * @ORM\Column(type="string")
  104.      */
  105.     protected $instructions;
  106.  
  107.     /**
  108.      * @ORM\Column(type="string")
  109.      */
  110.     protected $img;
  111.  
  112.     /**
  113.      * @ORM\Column(type="string")
  114.      */
  115.     protected $organizer;
  116.  
  117.     /**
  118.      * @ORM\Column(name="`schedule`", type="string")
  119.      */
  120.     protected $schedule;
  121.  
  122.     /**
  123.      * @ORM\Column(type="string")
  124.      */
  125.     protected $registration;
  126.  
  127.     /**
  128.      * @ORM\Column(type="string")
  129.      */
  130.     protected $contact;
  131.    
  132.     /**
  133.      * @ORM\Column(type="integer")
  134.      */
  135.     protected $state;
  136.  
  137.     /**
  138.      * @ORM\Column(type="string")
  139.      */
  140.     protected $welcome_page;
  141.  
  142.     /**
  143.      * @ORM\Column(type="boolean")
  144.      */
  145.     protected $is_html_conference;
  146.  
  147.     /**
  148.      * @ORM\Column(type="string")
  149.      */
  150.     protected $html_conference_location;
  151.    
  152.     /**
  153.      * @ORM\OneToMany(targetEntity="Paper", mappedBy="conference")
  154.      */
  155.     protected $papers;
  156.    
  157.     /**
  158.      * @ORM\OneToMany(targetEntity="Section", mappedBy="conference")
  159.      */
  160.     protected $sections;
  161.    
  162.     /**
  163.      * @ORM\OneToMany(targetEntity="Sponsor", mappedBy="conference")
  164.      * @ORM\OrderBy({"ordernum" = "ASC"})
  165.      */
  166.     protected $sponsors;
  167.    
  168.     /**
  169.      * @ORM\OneToMany(targetEntity="Video", mappedBy="conference")
  170.      */
  171.     protected $videos;
  172.    
  173.     /**
  174.      * @ORM\OneToOne(targetEntity="CDRom", mappedBy="conf")
  175.      */
  176.     protected $cdrom;
  177.    
  178.     /**
  179.      * @ORM\OneToOne(targetEntity="ConferenceState", inversedBy="conf")
  180.      * @ORM\JoinColumn(name="state", referencedColumnName="id")
  181.      */
  182.     protected $conf_state;
  183.    
  184.     /**
  185.      * @ORM\ManyToOne(targetEntity="ConferenceType", inversedBy="conf")
  186.      * @ORM\JoinColumn(name="conf_type", referencedColumnName="id")
  187.      */
  188.     protected $conf_type_object;
  189.    
  190.     /**
  191.      * @ORM\OneToMany(targetEntity="Submission", mappedBy="conference")
  192.      */
  193.     protected $submissions;
  194.    
  195.     /**
  196.      * @ORM\OneToMany(targetEntity="ConferenceAdmin", mappedBy="conference")
  197.      */
  198.     protected $conference_admins;
  199.    
  200.  
  201.     public function __construct()
  202.     {
  203.         $this->papers   = new ArrayCollection();
  204.         $this->sections = new ArrayCollection();
  205.         $this->sponsors = new ArrayCollection();
  206.         $this->videos   = new ArrayCollection();
  207.     }
  208.  
  209.     /**
  210.      * Get id
  211.      *
  212.      * @return integer
  213.      */
  214.     public function getId()
  215.     {
  216.         return $this->id;
  217.     }
  218.  
  219.     /**
  220.      * Set conf_type
  221.      *
  222.      * @param integer $confType
  223.      */
  224.     public function setConfType($confType)
  225.     {
  226.         $this->conf_type = $confType;
  227.     }
  228.  
  229.     /**
  230.      * Get conf_type
  231.      *
  232.      * @return integer
  233.      */
  234.     public function getConfType()
  235.     {
  236.         return $this->conf_type;
  237.     }
  238.  
  239.     /**
  240.      * Set name_full
  241.      *
  242.      * @param string $nameFull
  243.      */
  244.     public function setNameFull($nameFull)
  245.     {
  246.         $this->name_full = $nameFull;
  247.     }
  248.  
  249.     /**
  250.      * Get name_full
  251.      *
  252.      * @return string
  253.      */
  254.     public function getNameFull()
  255.     {
  256.         return $this->name_full;
  257.     }
  258.  
  259.     /**
  260.      * Set name_short
  261.      *
  262.      * @param string $nameShort
  263.      */
  264.     public function setNameShort($nameShort)
  265.     {
  266.         $this->name_short = $nameShort;
  267.     }
  268.  
  269.     /**
  270.      * Get name_short
  271.      *
  272.      * @return string
  273.      */
  274.     public function getNameShort()
  275.     {
  276.         return $this->name_short;
  277.     }
  278.  
  279.     /**
  280.      * Set name_system
  281.      *
  282.      * @param string $nameSystem
  283.      */
  284.     public function setNameSystem($nameSystem)
  285.     {
  286.         $this->name_system = $nameSystem;
  287.     }
  288.  
  289.     /**
  290.      * Get name_system
  291.      *
  292.      * @return string
  293.      */
  294.     public function getNameSystem()
  295.     {
  296.         return $this->name_system;
  297.     }
  298.  
  299.     /**
  300.      * Set edition
  301.      *
  302.      * @param integer $edition
  303.      */
  304.     public function setEdition($edition)
  305.     {
  306.         $this->edition = $edition;
  307.     }
  308.  
  309.     /**
  310.      * Get edition
  311.      *
  312.      * @return integer
  313.      */
  314.     public function getEdition()
  315.     {
  316.         return $this->edition;
  317.     }
  318.  
  319.     /**
  320.      * Set date_start
  321.      *
  322.      * @param date $dateStart
  323.      */
  324.     public function setDateStart($dateStart)
  325.     {
  326.         $this->date_start = $dateStart;
  327.     }
  328.  
  329.     /**
  330.      * Get date_start
  331.      *
  332.      * @return date
  333.      */
  334.     public function getDateStart()
  335.     {
  336.         return $this->date_start;
  337.     }
  338.  
  339.     /**
  340.      * Set date_end
  341.      *
  342.      * @param date $dateEnd
  343.      */
  344.     public function setDateEnd($dateEnd)
  345.     {
  346.         $this->date_end = $dateEnd;
  347.     }
  348.  
  349.     /**
  350.      * Get date_end
  351.      *
  352.      * @return date
  353.      */
  354.     public function getDateEnd()
  355.     {
  356.         return $this->date_end;
  357.     }
  358.  
  359.     /**
  360.      * Set date_abstract
  361.      *
  362.      * @param date $dateAbstract
  363.      */
  364.     public function setDateAbstract($dateAbstract)
  365.     {
  366.         $this->date_abstract = $dateAbstract;
  367.     }
  368.  
  369.     /**
  370.      * Get date_abstract
  371.      *
  372.      * @return date
  373.      */
  374.     public function getDateAbstract()
  375.     {
  376.         return $this->date_abstract;
  377.     }
  378.  
  379.     /**
  380.      * Set date_acceptance
  381.      *
  382.      * @param date $dateAcceptance
  383.      */
  384.     public function setDateAcceptance($dateAcceptance)
  385.     {
  386.         $this->date_acceptance = $dateAcceptance;
  387.     }
  388.  
  389.     /**
  390.      * Get date_acceptance
  391.      *
  392.      * @return date
  393.      */
  394.     public function getDateAcceptance()
  395.     {
  396.         return $this->date_acceptance;
  397.     }
  398.  
  399.     /**
  400.      * Set date_presentation
  401.      *
  402.      * @param date $datePresentation
  403.      */
  404.     public function setDatePresentation($datePresentation)
  405.     {
  406.         $this->date_presentation = $datePresentation;
  407.     }
  408.  
  409.     /**
  410.      * Get date_presentation
  411.      *
  412.      * @return date
  413.      */
  414.     public function getDatePresentation()
  415.     {
  416.         return $this->date_presentation;
  417.     }
  418.  
  419.     /**
  420.      * Set description
  421.      *
  422.      * @param string $description
  423.      */
  424.     public function setDescription($description)
  425.     {
  426.         $this->description = $description;
  427.     }
  428.  
  429.     /**
  430.      * Get description
  431.      *
  432.      * @return string
  433.      */
  434.     public function getDescription()
  435.     {
  436.         $s = str_replace("\\'", "'", $this->description);
  437.         $s = str_replace('\\"', '"', $s);
  438.         return $s;
  439.     }
  440.  
  441.     /**
  442.      * Set topics
  443.      *
  444.      * @param string $topics
  445.      */
  446.     public function setTopics($topics)
  447.     {
  448.         $this->topics = $topics;
  449.     }
  450.  
  451.     /**
  452.      * Get topics
  453.      *
  454.      * @return string
  455.      */
  456.     public function getTopics()
  457.     {
  458.         $s = str_replace("\\'", "'", $this->topics);
  459.         $s = str_replace('\\"', '"', $s);
  460.         return $s;
  461.     }
  462.  
  463.     /**
  464.      * Set call
  465.      *
  466.      * @param string $call
  467.      */
  468.     public function setCall($call)
  469.     {
  470.         $this->call = $call;
  471.     }
  472.  
  473.     /**
  474.      * Get call
  475.      *
  476.      * @return string
  477.      */
  478.     public function getCall()
  479.     {
  480.         $s = str_replace("\\'", "'", $this->call);
  481.         $s = str_replace('\\"', '"', $s);
  482.         return $s;
  483.     }
  484.  
  485.     /**
  486.      * Set proceedings
  487.      *
  488.      * @param string $proceedings
  489.      */
  490.     public function setProceedings($proceedings)
  491.     {
  492.         $this->proceedings = $proceedings;
  493.     }
  494.  
  495.     /**
  496.      * Get proceedings
  497.      *
  498.      * @return string
  499.      */
  500.     public function getProceedings()
  501.     {
  502.         $s = str_replace("\\'", "'", $this->proceedings);
  503.         $s = str_replace('\\"', '"', $s);
  504.         return $s;
  505.     }
  506.  
  507.     /**
  508.      * Set instructions
  509.      *
  510.      * @param string $instructions
  511.      */
  512.     public function setInstructions($instructions)
  513.     {
  514.         $this->instructions = $instructions;
  515.     }
  516.  
  517.     /**
  518.      * Get instructions
  519.      *
  520.      * @return string
  521.      */
  522.     public function getInstructions()
  523.     {
  524.         $s = str_replace("\\'", "'", $this->instructions);
  525.         $s = str_replace('\\"', '"', $s);
  526.         return $s;
  527.     }
  528.  
  529.     /**
  530.      * Set img
  531.      *
  532.      * @param string $img
  533.      */
  534.     public function setImg($img)
  535.     {
  536.         $this->img = $img;
  537.     }
  538.  
  539.     /**
  540.      * Get img
  541.      *
  542.      * @return string
  543.      */
  544.     public function getImg()
  545.     {
  546.         return $this->img;
  547.     }
  548.  
  549.     /**
  550.      * Set organizer
  551.      *
  552.      * @param string $organizer
  553.      */
  554.     public function setOrganizer($organizer)
  555.     {
  556.         $this->organizer = $organizer;
  557.     }
  558.  
  559.     /**
  560.      * Get organizer
  561.      *
  562.      * @return string
  563.      */
  564.     public function getOrganizer()
  565.     {
  566.         $s = str_replace("\\'", "'", $this->organizer);
  567.         $s = str_replace('\\"', '"', $s);
  568.         return $s;
  569.     }
  570.  
  571.     /**
  572.      * Set schedule
  573.      *
  574.      * @param string $schedule
  575.      */
  576.     public function setSchedule($schedule)
  577.     {
  578.         $this->schedule = $schedule;
  579.     }
  580.  
  581.     /**
  582.      * Get schedule
  583.      *
  584.      * @return string
  585.      */
  586.     public function getSchedule()
  587.     {
  588.         $s = str_replace("\\'", "'", $this->schedule);
  589.         $s = str_replace('\\"', '"', $s);
  590.         return $s;
  591.     }
  592.  
  593.     /**
  594.      * Set registration
  595.      *
  596.      * @param string $registration
  597.      */
  598.     public function setRegistration($registration)
  599.     {
  600.         $this->registration = $registration;
  601.     }
  602.  
  603.     /**
  604.      * Get registration
  605.      *
  606.      * @return string
  607.      */
  608.     public function getRegistration()
  609.     {
  610.         $s = str_replace("\\'", "'", $this->registration);
  611.         $s = str_replace('\\"', '"', $s);
  612.         return $s;
  613.     }
  614.  
  615.     /**
  616.      * Set contact
  617.      *
  618.      * @param string $contact
  619.      */
  620.     public function setContact($contact)
  621.     {
  622.         $this->contact = $contact;
  623.     }
  624.  
  625.     /**
  626.      * Get contact
  627.      *
  628.      * @return string
  629.      */
  630.     public function getContact()
  631.     {
  632.         $s = str_replace("\\'", "'", $this->contact);
  633.         $s = str_replace('\\"', '"', $s);
  634.         return $s;
  635.     }
  636.  
  637.     /**
  638.      * Set state
  639.      *
  640.      * @param integer $state
  641.      */
  642.     public function setState($state)
  643.     {
  644.         $this->state = $state;
  645.     }
  646.  
  647.     /**
  648.      * Get state
  649.      *
  650.      * @return integer
  651.      */
  652.     public function getState()
  653.     {
  654.         return $this->state;
  655.     }
  656.  
  657.     /**
  658.      * Set welcome_page
  659.      *
  660.      * @param string $welcomePage
  661.      */
  662.     public function setWelcomePage($welcomePage)
  663.     {
  664.         $this->welcome_page = $welcomePage;
  665.     }
  666.  
  667.     /**
  668.      * Get welcome_page
  669.      *
  670.      * @return string
  671.      */
  672.     public function getWelcomePage()
  673.     {
  674.         $s = str_replace("\\'", "'", $this->welcome_page);
  675.         $s = str_replace('\\"', '"', $s);
  676.         return $s;
  677.     }
  678.  
  679.     /**
  680.      * Set is_html_conference
  681.      *
  682.      * @param boolean $isHtmlConference
  683.      */
  684.     public function setIsHtmlConference($isHtmlConference)
  685.     {
  686.         $this->is_html_conference = $isHtmlConference;
  687.     }
  688.  
  689.     /**
  690.      * Get is_html_conference
  691.      *
  692.      * @return boolean
  693.      */
  694.     public function getIsHtmlConference()
  695.     {
  696.         return $this->is_html_conference;
  697.     }
  698.  
  699.     /**
  700.      * Set html_conference_location
  701.      *
  702.      * @param string $htmlConferenceLocation
  703.      */
  704.     public function setHtmlConferenceLocation($htmlConferenceLocation)
  705.     {
  706.         $this->html_conference_location = $htmlConferenceLocation;
  707.     }
  708.  
  709.     /**
  710.      * Get html_conference_location
  711.      *
  712.      * @return string
  713.      */
  714.     public function getHtmlConferenceLocation()
  715.     {
  716.         return $this->html_conference_location;
  717.     }
  718.  
  719.     /**
  720.      * Add papers
  721.      *
  722.      * @param SciForum\Version2Bundle\Entity\Paper $papers
  723.      */
  724.     public function addPaper(\SciForum\Version2Bundle\Entity\Paper $papers)
  725.     {
  726.         $this->papers[] = $papers;
  727.     }
  728.  
  729.     /**
  730.      * Get papers
  731.      *
  732.      * @return Doctrine\Common\Collections\Collection
  733.      */
  734.     public function getPapers()
  735.     {
  736.         return $this->papers;
  737.     }
  738.  
  739.     /**
  740.      * Add sections
  741.      *
  742.      * @param SciForum\Version2Bundle\Entity\Section $sections
  743.      */
  744.     public function addSection(\SciForum\Version2Bundle\Entity\Section $sections)
  745.     {
  746.         $this->sections[] = $sections;
  747.     }
  748.  
  749.     /**
  750.      * Get sections
  751.      *
  752.      * @return Doctrine\Common\Collections\Collection
  753.      */
  754.     public function getSections()
  755.     {
  756.         return $this->sections;
  757.     }
  758.  
  759.     /**
  760.      * Add sponsors
  761.      *
  762.      * @param SciForum\Version2Bundle\Entity\Sponsor $sponsors
  763.      */
  764.     public function addSponsor(\SciForum\Version2Bundle\Entity\Sponsor $sponsors)
  765.     {
  766.         $this->sponsors[] = $sponsors;
  767.     }
  768.  
  769.     /**
  770.      * Get sponsors
  771.      *
  772.      * @return Doctrine\Common\Collections\Collection
  773.      */
  774.     public function getSponsors()
  775.     {
  776.         return $this->sponsors;
  777.     }
  778.  
  779.     /**
  780.      * Add videos
  781.      *
  782.      * @param SciForum\Version2Bundle\Entity\Video $videos
  783.      */
  784.     public function addVideo(\SciForum\Version2Bundle\Entity\Video $videos)
  785.     {
  786.         $this->videos[] = $videos;
  787.     }
  788.  
  789.     /**
  790.      * Get videos
  791.      *
  792.      * @return Doctrine\Common\Collections\Collection
  793.      */
  794.     public function getVideos()
  795.     {
  796.         return $this->videos;
  797.     }
  798.  
  799.     /**
  800.      * Set cdrom
  801.      *
  802.      * @param SciForum\Version2Bundle\Entity\CDRom $cdrom
  803.      */
  804.     public function setCdrom(\SciForum\Version2Bundle\Entity\CDRom $cdrom)
  805.     {
  806.         $this->cdrom = $cdrom;
  807.     }
  808.  
  809.     /**
  810.      * Get cdrom
  811.      *
  812.      * @return SciForum\Version2Bundle\Entity\CDRom
  813.      */
  814.     public function getCdrom()
  815.     {
  816.         return $this->cdrom;
  817.     }
  818.  
  819.     /**
  820.      * Set submission
  821.      *
  822.      * @param SciForum\Version2Bundle\Entity\Submission $submission
  823.      */
  824.     public function setSubmissions(\SciForum\Version2Bundle\Entity\Submission $submission)
  825.     {
  826.         $this->submissions = $submissions;
  827.     }
  828.  
  829.     /**
  830.      * Get submission
  831.      *
  832.      * @return SciForum\Version2Bundle\Entity\Submission
  833.      */
  834.     public function getSubmissions()
  835.     {
  836.         return $this->submissions;
  837.     }
  838.  
  839.     /**
  840.      * Add conference_admins
  841.      *
  842.      * @param SciForum\Version2Bundle\Entity\ConferenceAdmin $conferenceAdmins
  843.      */
  844.     public function addConferenceAdmin(\SciForum\Version2Bundle\Entity\ConferenceAdmin $conferenceAdmins)
  845.     {
  846.         $this->conference_admins[] = $conferenceAdmins;
  847.     }
  848.  
  849.     /**
  850.      * Get conference_admins
  851.      *
  852.      * @return Doctrine\Common\Collections\Collection
  853.      */
  854.     public function getConferenceAdmins()
  855.     {
  856.         return $this->conference_admins;
  857.     }
  858.  
  859.     /**
  860.      * Set name_iso4
  861.      *
  862.      * @param string $nameIso4
  863.      */
  864.     public function setNameIso4($nameIso4)
  865.     {
  866.         $this->name_iso4 = $nameIso4;
  867.     }
  868.  
  869.     /**
  870.      * Get name_iso4
  871.      *
  872.      * @return string
  873.      */
  874.     public function getNameIso4()
  875.     {
  876.         return $this->name_iso4;
  877.     }
  878.  
  879.     /**
  880.      * Set conf_state
  881.      *
  882.      * @param SciForum\Version2Bundle\Entity\ConferenceState $confState
  883.      */
  884.     public function setConfState(\SciForum\Version2Bundle\Entity\ConferenceState $confState)
  885.     {
  886.         $this->conf_state = $confState;
  887.     }
  888.  
  889.     /**
  890.      * Get conf_state
  891.      *
  892.      * @return SciForum\Version2Bundle\Entity\ConferenceState
  893.      */
  894.     public function getConfState()
  895.     {
  896.         return $this->conf_state;
  897.     }
  898.  
  899.     /**
  900.      * Set conf_type_object
  901.      *
  902.      * @param SciForum\Version2Bundle\Entity\ConferenceType $confTypeObject
  903.      */
  904.     public function setConfTypeObject(\SciForum\Version2Bundle\Entity\ConferenceType $confTypeObject)
  905.     {
  906.         $this->conf_type_object = $confTypeObject;
  907.     }
  908.  
  909.     /**
  910.      * Get conf_type_object
  911.      *
  912.      * @return SciForum\Version2Bundle\Entity\ConferenceType
  913.      */
  914.     public function getConfTypeObject()
  915.     {
  916.         return $this->conf_type_object;
  917.     }
  918.    
  919.     public static function loadValidatorMetadata(ClassMetadata $metadata)
  920.     {  
  921.         $full_blank     = new NotBlank();
  922.         $full_min       = new MinLength(10);
  923.        
  924.         $iso_blank      = new NotBlank();
  925.         $iso_min        = new MinLength(10);
  926.        
  927.         $short_blank    = new NotBlank();
  928.         $short_min      = new MinLength(3);
  929.        
  930.         $full_blank->message    = "The name full should not be blank";
  931.         $full_min->message      = "The name full is too short. It should have {{ limit }} characters or more";
  932.        
  933.         $iso_blank->message     = "The name iso should not be blank";
  934.         $iso_min->message       = "The name iso is too short. It should have {{ limit }} characters or more";
  935.        
  936.         $short_blank->message   = "The name short should not be blank";
  937.         $short_min->message     = "The name short is too short. It should have {{ limit }} characters or more";
  938.        
  939.         $metadata->addPropertyConstraint('name_full', $full_blank);
  940.         $metadata->addPropertyConstraint('name_full', $full_min );
  941.        
  942.         $metadata->addPropertyConstraint('name_iso4', $iso_blank);
  943.         $metadata->addPropertyConstraint('name_iso4', $iso_min );
  944.        
  945.         $metadata->addPropertyConstraint('name_short', $short_blank);
  946.         $metadata->addPropertyConstraint('name_short', $short_min );
  947.     }
  948.    
  949.     public function __toString()
  950.     {
  951.         return $this->name_full;
  952.     }
  953. }
Advertisement
Add Comment
Please, Sign In to add comment