Advertisement
robhunter

Untitled

Aug 8th, 2013
629
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 33.09 KB | None | 0 0
  1. <?php
  2. namespace WbsGo\clientsBundle\Entity;
  3.  
  4. use Doctrine\ORM\Mapping as ORM;
  5.  
  6. /**
  7.  * Tickets
  8.  *
  9.  * @ORM\Table(name="vtiger_troubletickets")
  10.  * @ORM\Entity(repositoryClass="WbsGo\clientsBundle\Entity\TicketsRepository")
  11.  * @ORM\HasLifecycleCallbacks
  12.  */
  13.  
  14. class Tickets
  15. {
  16.     /**
  17.      * @var \WbsGo\clientsBundle\Entity\VtigerCrmentity
  18.      *
  19.      * @ORM\OneToOne(targetEntity="WbsGo\clientsBundle\Entity\VtigerCrmentity", cascade={"persist", "remove"})
  20.      * @ORM\JoinColumns({
  21.      *   @ORM\JoinColumn(name="ticketid", referencedColumnName="crmid", unique=true)
  22.      * })
  23.      * @ORM\Id
  24.      */
  25.     private $ticketid;
  26.        
  27.     /**
  28.      * @var string
  29.      * @ORM\Column(name="ticket_no", type="string", length=100, nullable=false)
  30.      */
  31.     private $ticketNo;
  32.    
  33.     /**
  34.      * @var string
  35.      *
  36.      * @ORM\Column(name="groupname", type="string", length=100, nullable=true)
  37.      */
  38.     private $groupName;
  39.    
  40.     /**
  41.      * @var integer
  42.      *
  43.      * @ORM\Column(name="parent_id", type="integer", nullable=true)
  44.      */
  45.     private $parentId;
  46.    
  47.     /**
  48.      * @var integer
  49.      *
  50.      * @ORM\Column(name="product_id", type="integer", nullable=true)
  51.      */
  52.     private $productId;
  53.    
  54.     /**
  55.      * @var string
  56.      *
  57.      * @ORM\Column(name="priority", type="string", length=100, nullable=true)
  58.      */
  59.     private $priority;
  60.    
  61.     /**
  62.      * @var string
  63.      *
  64.      * @ORM\Column(name="severity", type="string", length=100, nullable=true)
  65.      */
  66.     private $severity;
  67.    
  68.     /**
  69.      * @var string
  70.      *
  71.      * @ORM\Column(name="status", type="string", length=100, nullable=true)
  72.      */
  73.     private $status;
  74.    
  75.     /**
  76.      * @var string
  77.      *
  78.      * @ORM\Column(name="category", type="string", length=100, nullable=true)
  79.      */
  80.     private $category;
  81.    
  82.     /**
  83.      * @var string
  84.      *
  85.      * @ORM\Column(name="title", type="string", length=255, nullable=true)
  86.      */
  87.     private $title;
  88.    
  89.     /**
  90.      * @var text
  91.      *
  92.      * @ORM\Column(name="solution", type="text", nullable=true)
  93.      */
  94.     private $solution;
  95.    
  96.     /**
  97.      * @var text
  98.      *
  99.      * @ORM\Column(name="update_log", type="text", nullable=true)
  100.      */
  101.     private $updateLog;
  102.    
  103.     /**
  104.      * @var integer
  105.      *
  106.      * @ORM\Column(name="version_id", type="integer", nullable=true)
  107.      */
  108.     private $versionId;
  109.    
  110.     /**
  111.      * @var string
  112.      *
  113.      * @ORM\Column(name="hours", type="string", length=255, nullable=true)
  114.      */
  115.     private $hours;
  116.    
  117.     /**
  118.      * @var string
  119.      *
  120.      * @ORM\Column(name="days", type="string", length=255, nullable=true)
  121.      */
  122.     private $days;
  123.    
  124.     /**
  125.      * @var integer
  126.      *
  127.      * @ORM\Column(name="from_portal", type="integer", nullable=true)
  128.      */
  129.     private $fromPortal;
  130.  
  131.     /**
  132.      * Set ticketNo
  133.      *
  134.      * @param string $ticketNo
  135.      * @return Tickets
  136.      */
  137.     public function setTicketNo($ticketNo)
  138.     {
  139.         $this->ticketNo = $ticketNo;
  140.    
  141.         return $this;
  142.     }
  143.  
  144.     /**
  145.      * Get ticketNo
  146.      *
  147.      * @return string
  148.      */
  149.     public function getTicketNo()
  150.     {
  151.         return $this->ticketNo;
  152.     }
  153.  
  154.     /**
  155.      * Set groupName
  156.      *
  157.      * @param string $groupName
  158.      * @return Tickets
  159.      */
  160.     public function setGroupName($groupName)
  161.     {
  162.         $this->groupName = $groupName;
  163.    
  164.         return $this;
  165.     }
  166.  
  167.     /**
  168.      * Get groupName
  169.      *
  170.      * @return string
  171.      */
  172.     public function getGroupName()
  173.     {
  174.         return $this->groupName;
  175.     }
  176.  
  177.     /**
  178.      * Set parentId
  179.      *
  180.      * @param integer $parentId
  181.      * @return Tickets
  182.      */
  183.     public function setParentId($parentId)
  184.     {
  185.         $this->parentId = $parentId;
  186.    
  187.         return $this;
  188.     }
  189.  
  190.     /**
  191.      * Get parentId
  192.      *
  193.      * @return integer
  194.      */
  195.     public function getParentId()
  196.     {
  197.         return $this->parentId;
  198.     }
  199.  
  200.     /**
  201.      * Set productId
  202.      *
  203.      * @param integer $productId
  204.      * @return Tickets
  205.      */
  206.     public function setProductId($productId)
  207.     {
  208.         $this->productId = $productId;
  209.    
  210.         return $this;
  211.     }
  212.  
  213.     /**
  214.      * Get productId
  215.      *
  216.      * @return integer
  217.      */
  218.     public function getProductId()
  219.     {
  220.         return $this->productId;
  221.     }
  222.  
  223.     /**
  224.      * Set priority
  225.      *
  226.      * @param string $priority
  227.      * @return Tickets
  228.      */
  229.     public function setPriority($priority)
  230.     {
  231.         $this->priority = $priority;
  232.    
  233.         return $this;
  234.     }
  235.  
  236.     /**
  237.      * Get priority
  238.      *
  239.      * @return string
  240.      */
  241.     public function getPriority()
  242.     {
  243.         return $this->priority;
  244.     }
  245.  
  246.     /**
  247.      * Set severity
  248.      *
  249.      * @param string $severity
  250.      * @return Tickets
  251.      */
  252.     public function setSeverity($severity)
  253.     {
  254.         $this->severity = $severity;
  255.    
  256.         return $this;
  257.     }
  258.  
  259.     /**
  260.      * Get severity
  261.      *
  262.      * @return string
  263.      */
  264.     public function getSeverity()
  265.     {
  266.         return $this->severity;
  267.     }
  268.  
  269.     /**
  270.      * Set status
  271.      *
  272.      * @param string $status
  273.      * @return Tickets
  274.      */
  275.     public function setStatus($status)
  276.     {
  277.         $this->status = $status;
  278.    
  279.         return $this;
  280.     }
  281.  
  282.     /**
  283.      * Get status
  284.      *
  285.      * @return string
  286.      */
  287.     public function getStatus()
  288.     {
  289.         return $this->status;
  290.     }
  291.  
  292.     /**
  293.      * Set category
  294.      *
  295.      * @param string $category
  296.      * @return Tickets
  297.      */
  298.     public function setCategory($category)
  299.     {
  300.         $this->category = $category;
  301.    
  302.         return $this;
  303.     }
  304.  
  305.     /**
  306.      * Get category
  307.      *
  308.      * @return string
  309.      */
  310.     public function getCategory()
  311.     {
  312.         return $this->category;
  313.     }
  314.  
  315.     /**
  316.      * Set title
  317.      *
  318.      * @param string $title
  319.      * @return Tickets
  320.      */
  321.     public function setTitle($title)
  322.     {
  323.         $this->title = $title;
  324.    
  325.         return $this;
  326.     }
  327.  
  328.     /**
  329.      * Get title
  330.      *
  331.      * @return string
  332.      */
  333.     public function getTitle()
  334.     {
  335.         return $this->title;
  336.     }
  337.  
  338.     /**
  339.      * Set solution
  340.      *
  341.      * @param string $solution
  342.      * @return Tickets
  343.      */
  344.     public function setSolution($solution)
  345.     {
  346.         $this->solution = $solution;
  347.    
  348.         return $this;
  349.     }
  350.  
  351.     /**
  352.      * Get solution
  353.      *
  354.      * @return string
  355.      */
  356.     public function getSolution()
  357.     {
  358.         return $this->solution;
  359.     }
  360.  
  361.     /**
  362.      * Set updateLog
  363.      *
  364.      * @param string $updateLog
  365.      * @return Tickets
  366.      */
  367.     public function setUpdateLog($updateLog)
  368.     {
  369.         $this->updateLog = $updateLog;
  370.    
  371.         return $this;
  372.     }
  373.  
  374.     /**
  375.      * Get updateLog
  376.      *
  377.      * @return string
  378.      */
  379.     public function getUpdateLog()
  380.     {
  381.         return $this->updateLog;
  382.     }
  383.  
  384.     /**
  385.      * Set versionId
  386.      *
  387.      * @param integer $versionId
  388.      * @return Tickets
  389.      */
  390.     public function setVersionId($versionId)
  391.     {
  392.         $this->versionId = $versionId;
  393.    
  394.         return $this;
  395.     }
  396.  
  397.     /**
  398.      * Get versionId
  399.      *
  400.      * @return integer
  401.      */
  402.     public function getVersionId()
  403.     {
  404.         return $this->versionId;
  405.     }
  406.  
  407.     /**
  408.      * Set hours
  409.      *
  410.      * @param string $hours
  411.      * @return Tickets
  412.      */
  413.     public function setHours($hours)
  414.     {
  415.         $this->hours = $hours;
  416.    
  417.         return $this;
  418.     }
  419.  
  420.     /**
  421.      * Get hours
  422.      *
  423.      * @return string
  424.      */
  425.     public function getHours()
  426.     {
  427.         return $this->hours;
  428.     }
  429.  
  430.     /**
  431.      * Set days
  432.      *
  433.      * @param string $days
  434.      * @return Tickets
  435.      */
  436.     public function setDays($days)
  437.     {
  438.         $this->days = $days;
  439.    
  440.         return $this;
  441.     }
  442.  
  443.     /**
  444.      * Get days
  445.      *
  446.      * @return string
  447.      */
  448.     public function getDays()
  449.     {
  450.         return $this->days;
  451.     }
  452.  
  453.     /**
  454.      * Set fromPortal
  455.      *
  456.      * @param integer $fromPortal
  457.      * @return Tickets
  458.      */
  459.     public function setFromPortal($fromPortal)
  460.     {
  461.         $this->fromPortal = $fromPortal;
  462.    
  463.         return $this;
  464.     }
  465.  
  466.     /**
  467.      * Get fromPortal
  468.      *
  469.      * @return integer
  470.      */
  471.     public function getFromPortal()
  472.     {
  473.         return $this->fromPortal;
  474.     }
  475.  
  476.     /**
  477.      * Set ticketid
  478.      *
  479.      * @param \WbsGo\clientsBundle\Entity\VtigerCrmentity $ticketid
  480.      * @return Tickets
  481.      */
  482.     public function setTicketid(\WbsGo\clientsBundle\Entity\VtigerCrmentity $ticketid)
  483.     {
  484.         $this->ticketid = $ticketid;
  485.    
  486.         return $this;
  487.     }
  488.  
  489.     /**
  490.      * Get ticketid
  491.      *
  492.      * @return \WbsGo\clientsBundle\Entity\VtigerCrmentity
  493.      */
  494.     public function getTicketid()
  495.     {
  496.         return $this->ticketid;
  497.     }
  498. }
  499. ?>
  500.  
  501. <?php
  502.  
  503. namespace WbsGo\clientsBundle\Entity;
  504.  
  505. use Doctrine\ORM\Mapping as ORM;
  506.  
  507. /**
  508.  * VtigerCrmentity
  509.  *
  510.  * @ORM\Table(name="vtiger_crmentity")
  511.  * @ORM\Entity
  512.  * @ORM\HasLifecycleCallbacks
  513.  */
  514. class VtigerCrmentity
  515. {
  516.     /**
  517.      * @var integer
  518.      *
  519.      * @ORM\Column(name="smcreatorid", type="integer", nullable=false)
  520.      */
  521.     private $smcreatorid;
  522.  
  523.     /**
  524.      * @var integer
  525.      *
  526.      * @ORM\Column(name="smownerid", type="integer", nullable=false)
  527.      */
  528.     private $smownerid;
  529.  
  530.     /**
  531.      * @var integer
  532.      *
  533.      * @ORM\Column(name="modifiedby", type="integer", nullable=false)
  534.      */
  535.     private $modifiedby;
  536.  
  537.     /**
  538.      * @var string
  539.      *
  540.      * @ORM\Column(name="setype", type="string", length=30, nullable=false)
  541.      */
  542.     private $setype;
  543.  
  544.     /**
  545.      * @var string
  546.      *
  547.      * @ORM\Column(name="description", type="text", nullable=true)
  548.      */
  549.     private $description;
  550.  
  551.     /**
  552.      * @var \DateTime
  553.      *
  554.      * @ORM\Column(name="createdtime", type="datetime", nullable=false)
  555.      */
  556.     private $createdtime;
  557.  
  558.     /**
  559.      * @var \DateTime
  560.      *
  561.      * @ORM\Column(name="modifiedtime", type="datetime", nullable=false)
  562.      */
  563.     private $modifiedtime;
  564.  
  565.     /**
  566.      * @var \DateTime
  567.      *
  568.      * @ORM\Column(name="viewedtime", type="datetime", nullable=true)
  569.      */
  570.     private $viewedtime;
  571.  
  572.     /**
  573.      * @var string
  574.      *
  575.      * @ORM\Column(name="status", type="string", length=50, nullable=true)
  576.      */
  577.     private $status;
  578.  
  579.     /**
  580.      * @var integer
  581.      *
  582.      * @ORM\Column(name="version", type="integer", nullable=false)
  583.      */
  584.     private $version;
  585.  
  586.     /**
  587.      * @var integer
  588.      *
  589.      * @ORM\Column(name="presence", type="integer", nullable=true)
  590.      */
  591.     private $presence;
  592.  
  593.     /**
  594.      * @var integer
  595.      *
  596.      * @ORM\Column(name="deleted", type="integer", nullable=false)
  597.      */
  598.     private $deleted;
  599.  
  600.     /**
  601.      * @var integer
  602.      *
  603.      * @ORM\Column(name="crmid", type="integer")
  604.      * @ORM\Id
  605.      */
  606.     private $crmid;
  607.  
  608.     /**
  609.      * Set smcreatorid
  610.      *
  611.      * @param integer $smcreatorid
  612.      * @return VtigerCrmentity
  613.      */
  614.     public function setSmcreatorid($smcreatorid)
  615.     {
  616.         $this->smcreatorid = $smcreatorid;
  617.    
  618.         return $this;
  619.     }
  620.  
  621.     /**
  622.      * Get smcreatorid
  623.      *
  624.      * @return integer
  625.      */
  626.     public function getSmcreatorid()
  627.     {
  628.         return $this->smcreatorid;
  629.     }
  630.  
  631.     /**
  632.      * Set smownerid
  633.      *
  634.      * @param integer $smownerid
  635.      * @return VtigerCrmentity
  636.      */
  637.     public function setSmownerid($smownerid)
  638.     {
  639.         $this->smownerid = $smownerid;
  640.    
  641.         return $this;
  642.     }
  643.  
  644.     /**
  645.      * Get smownerid
  646.      *
  647.      * @return integer
  648.      */
  649.     public function getSmownerid()
  650.     {
  651.         return $this->smownerid;
  652.     }
  653.  
  654.     /**
  655.      * Set modifiedby
  656.      *
  657.      * @param integer $modifiedby
  658.      * @return VtigerCrmentity
  659.      */
  660.     public function setModifiedby($modifiedby)
  661.     {
  662.         $this->modifiedby = $modifiedby;
  663.    
  664.         return $this;
  665.     }
  666.  
  667.     /**
  668.      * Get modifiedby
  669.      *
  670.      * @return integer
  671.      */
  672.     public function getModifiedby()
  673.     {
  674.         return $this->modifiedby;
  675.     }
  676.  
  677.     /**
  678.      * Set setype
  679.      *
  680.      * @ORM\PrePersist
  681.      */
  682.     public function setSetype()
  683.     {
  684.         $this->setype = 'HelpDesk';
  685.     }
  686.  
  687.     /**
  688.      * Get setype
  689.      *
  690.      * @return string
  691.      */
  692.     public function getSetype()
  693.     {
  694.         return $this->setype;
  695.     }
  696.  
  697.     /**
  698.      * Set description
  699.      *
  700.      * @param string $description
  701.      * @return VtigerCrmentity
  702.      */
  703.     public function setDescription($description)
  704.     {
  705.         $this->description = $description;
  706.    
  707.         return $this;
  708.     }
  709.  
  710.     /**
  711.      * Get description
  712.      *
  713.      * @return string
  714.      */
  715.     public function getDescription()
  716.     {
  717.         return $this->description;
  718.     }
  719.  
  720.     /**
  721.     * @ORM\PrePersist
  722.     */
  723.     public function setCreatedtime($createdTime = null)
  724.     {
  725.         $this->createdtime = null === $createdTime ? new \DateTime() : $createdTime;
  726.         return $this;
  727.     }
  728.  
  729.     /**
  730.      * Get createdtime
  731.      *
  732.      * @return \DateTime
  733.      */
  734.     public function getCreatedtime()
  735.     {
  736.         return $this->createdtime;
  737.     }
  738.  
  739.     /**
  740.      * Set modifiedtime
  741.      *
  742.      * @ORM\PrePersist
  743.      * @ORM\PreUpdate()
  744.      */
  745.     public function setModifiedtime($modifiedTime = null)
  746.     {
  747.         $this->modifiedtime = null === $modifiedTime ? new \DateTime() : $modifiedTime;
  748.         return $this;
  749.     }
  750.  
  751.     /**
  752.      * Get modifiedtime
  753.      *
  754.      * @return \DateTime
  755.      */
  756.     public function getModifiedtime()
  757.     {
  758.         return $this->modifiedtime;
  759.     }
  760.  
  761.     /**
  762.      * Set viewedtime
  763.      *
  764.      * @param \DateTime $viewedtime
  765.      * @return VtigerCrmentity
  766.      */
  767.     public function setViewedtime($viewedtime)
  768.     {
  769.         $this->viewedtime = $viewedtime;
  770.    
  771.         return $this;
  772.     }
  773.  
  774.     /**
  775.      * Get viewedtime
  776.      *
  777.      * @return \DateTime
  778.      */
  779.     public function getViewedtime()
  780.     {
  781.         return $this->viewedtime;
  782.     }
  783.  
  784.     /**
  785.      * Set status
  786.      *
  787.      * @param string $status
  788.      * @return VtigerCrmentity
  789.      */
  790.     public function setStatus($status)
  791.     {
  792.         $this->status = $status;
  793.    
  794.         return $this;
  795.     }
  796.  
  797.     /**
  798.      * Get status
  799.      *
  800.      * @return string
  801.      */
  802.     public function getStatus()
  803.     {
  804.         return $this->status;
  805.     }
  806.  
  807.     /**
  808.      * Set version
  809.      *
  810.      * @ORM\PrePersist()
  811.      */
  812.     public function setVersion($version = null)
  813.     {
  814.         $this->version = null === $version ? '0' : $version;
  815.    
  816.         return $this;
  817.     }
  818.  
  819.     /**
  820.      * Get version
  821.      *
  822.      * @return integer
  823.      */
  824.     public function getVersion()
  825.     {
  826.         return $this->version;
  827.     }
  828.  
  829.     /**
  830.      * Set presence
  831.      *
  832.      * @ORM\PrePersist()
  833.      */
  834.     public function setPresence($presence = null)
  835.     {
  836.         $this->presence = null === $presence ? '0' : $presence;
  837.    
  838.         return $this;
  839.     }
  840.  
  841.     /**
  842.      * Get presence
  843.      *
  844.      * @return integer
  845.      */
  846.     public function getPresence()
  847.     {
  848.         return $this->presence;
  849.     }
  850.  
  851.     /**
  852.      * Set deleted
  853.      *
  854.      * @ORM\PrePersist()
  855.      */
  856.     public function setDeleted($deleted = null)
  857.     {
  858.         $this->deleted = null === $deleted ? '0' : $deleted;
  859.         return $this;
  860.     }
  861.  
  862.     /**
  863.      * Get deleted
  864.      *
  865.      * @return integer
  866.      */
  867.     public function getDeleted()
  868.     {
  869.         return $this->deleted;
  870.     }
  871.  
  872.     /**
  873.      * Get crmid
  874.      *
  875.      * @return integer
  876.      */
  877.     public function getCrmid()
  878.     {
  879.         return $this->crmid;
  880.     }
  881.    
  882.     public function setCrmid($crmid)
  883.     {
  884.         $this->crmid = $crmid;
  885.     }
  886. }
  887. ?>
  888.  
  889. <?php
  890.  
  891. namespace WbsGo\clientsBundle\Entity;
  892.  
  893. use Doctrine\ORM\Mapping as ORM;
  894.  
  895. /**
  896.  * VtigerTicketcf
  897.  *
  898.  * @ORM\Table(name="vtiger_ticketcf")
  899.  * @ORM\Entity
  900.  */
  901. class VtigerTicketcf
  902. {
  903.     /**
  904.      * @var string
  905.      *
  906.      * @ORM\Column(name="cf_546", type="string", length=255, nullable=true)
  907.      */
  908.     private $cf546;
  909.  
  910.     /**
  911.      * @var string
  912.      *
  913.      * @ORM\Column(name="cf_556", type="string", length=255, nullable=true)
  914.      */
  915.     private $cf556;
  916.  
  917.     /**
  918.      * @var string
  919.      *
  920.      * @ORM\Column(name="cf_589", type="string", length=3, nullable=true)
  921.      */
  922.     private $cf589;
  923.  
  924.     /**
  925.      * @var string
  926.      *
  927.      * @ORM\Column(name="cf_590", type="string", length=3, nullable=true)
  928.      */
  929.     private $cf590;
  930.  
  931.     /**
  932.      * @var string
  933.      *
  934.      * @ORM\Column(name="cf_592", type="string", length=100, nullable=true)
  935.      */
  936.     private $cf592;
  937.  
  938.     /**
  939.      * @var string
  940.      *
  941.      * @ORM\Column(name="cf_593", type="string", length=255, nullable=true)
  942.      */
  943.     private $cf593;
  944.  
  945.     /**
  946.      * @var string
  947.      *
  948.      * @ORM\Column(name="cf_594", type="string", length=255, nullable=true)
  949.      */
  950.     private $tipo;
  951.  
  952.     /**
  953.      * @var string
  954.      *
  955.      * @ORM\Column(name="cf_675", type="string", length=50, nullable=true)
  956.      */
  957.     private $suscripcion;
  958.  
  959.     /**
  960.      * @var float
  961.      *
  962.      * @ORM\Column(name="cf_689", type="decimal", nullable=true)
  963.      */
  964.     private $cf689;
  965.  
  966.     /**
  967.      * @var float
  968.      *
  969.      * @ORM\Column(name="cf_690", type="decimal", nullable=true)
  970.      */
  971.     private $cf690;
  972.  
  973.     /**
  974.      * @var float
  975.      *
  976.      * @ORM\Column(name="cf_691", type="decimal", nullable=true)
  977.      */
  978.     private $cf691;
  979.  
  980.     /**
  981.      * @var float
  982.      *
  983.      * @ORM\Column(name="cf_693", type="decimal", nullable=true)
  984.      */
  985.     private $cf693;
  986.  
  987.     /**
  988.      * @var string
  989.      *
  990.      * @ORM\Column(name="cf_746", type="string", length=50, nullable=true)
  991.      */
  992.     private $FNoti;
  993.  
  994.     /**
  995.      * @var string
  996.      *
  997.      * @ORM\Column(name="cf_747", type="string", length=50, nullable=true)
  998.      */
  999.     private $FResp;
  1000.  
  1001.     /**
  1002.      * @var string
  1003.      *
  1004.      * @ORM\Column(name="cf_748", type="string", length=50, nullable=true)
  1005.      */
  1006.     private $FReso;
  1007.  
  1008.     /**
  1009.      * @var string
  1010.      *
  1011.      * @ORM\Column(name="cf_761", type="string", length=255, nullable=true)
  1012.      */
  1013.     private $hardware;
  1014.  
  1015.     /**
  1016.      * @var string
  1017.      *
  1018.      * @ORM\Column(name="cf_763", type="string", length=255, nullable=true)
  1019.      */
  1020.     private $recuperacion;
  1021.  
  1022.     /**
  1023.      * @var string
  1024.      *
  1025.      * @ORM\Column(name="cf_764", type="string", length=255, nullable=true)
  1026.      */
  1027.     private $web;
  1028.  
  1029.     /**
  1030.      * @var string
  1031.      *
  1032.      * @ORM\Column(name="cf_765", type="string", length=255, nullable=true)
  1033.      */
  1034.     private $backup;
  1035.  
  1036.     /**
  1037.      * @var string
  1038.      *
  1039.      * @ORM\Column(name="cf_770", type="string", length=50, nullable=true)
  1040.      */
  1041.     private $idProd;
  1042.  
  1043.    
  1044.     /**
  1045.      * @var \WbsGo\clientsBundle\Entity\Tickets
  1046.      *
  1047.      * @ORM\OneToOne(targetEntity="WbsGo\clientsBundle\Entity\Tickets", cascade={"persist", "remove"})
  1048.      * @ORM\JoinColumns({
  1049.      *   @ORM\JoinColumn(name="ticketid", referencedColumnName="ticketid", unique=true)
  1050.      * })
  1051.      * @ORM\Id
  1052.      */
  1053.     private $id;
  1054.  
  1055.     /**
  1056.      * Set cf546
  1057.      *
  1058.      * @param string $cf546
  1059.      * @return VtigerTicketcf
  1060.      */
  1061.     public function setCf546($cf546)
  1062.     {
  1063.         $this->cf546 = $cf546;
  1064.    
  1065.         return $this;
  1066.     }
  1067.  
  1068.     /**
  1069.      * Get cf546
  1070.      *
  1071.      * @return string
  1072.      */
  1073.     public function getCf546()
  1074.     {
  1075.         return $this->cf546;
  1076.     }
  1077.  
  1078.     /**
  1079.      * Set cf556
  1080.      *
  1081.      * @param string $cf556
  1082.      * @return VtigerTicketcf
  1083.      */
  1084.     public function setCf556($cf556)
  1085.     {
  1086.         $this->cf556 = $cf556;
  1087.    
  1088.         return $this;
  1089.     }
  1090.  
  1091.     /**
  1092.      * Get cf556
  1093.      *
  1094.      * @return string
  1095.      */
  1096.     public function getCf556()
  1097.     {
  1098.         return $this->cf556;
  1099.     }
  1100.  
  1101.     /**
  1102.      * Set cf589
  1103.      *
  1104.      * @param string $cf589
  1105.      * @return VtigerTicketcf
  1106.      */
  1107.     public function setCf589($cf589)
  1108.     {
  1109.         $this->cf589 = $cf589;
  1110.    
  1111.         return $this;
  1112.     }
  1113.  
  1114.     /**
  1115.      * Get cf589
  1116.      *
  1117.      * @return string
  1118.      */
  1119.     public function getCf589()
  1120.     {
  1121.         return $this->cf589;
  1122.     }
  1123.  
  1124.     /**
  1125.      * Set cf590
  1126.      *
  1127.      * @param string $cf590
  1128.      * @return VtigerTicketcf
  1129.      */
  1130.     public function setCf590($cf590)
  1131.     {
  1132.         $this->cf590 = $cf590;
  1133.    
  1134.         return $this;
  1135.     }
  1136.  
  1137.     /**
  1138.      * Get cf590
  1139.      *
  1140.      * @return string
  1141.      */
  1142.     public function getCf590()
  1143.     {
  1144.         return $this->cf590;
  1145.     }
  1146.  
  1147.     /**
  1148.      * Set cf592
  1149.      *
  1150.      * @param string $cf592
  1151.      * @return VtigerTicketcf
  1152.      */
  1153.     public function setCf592($cf592)
  1154.     {
  1155.         $this->cf592 = $cf592;
  1156.    
  1157.         return $this;
  1158.     }
  1159.  
  1160.     /**
  1161.      * Get cf592
  1162.      *
  1163.      * @return string
  1164.      */
  1165.     public function getCf592()
  1166.     {
  1167.         return $this->cf592;
  1168.     }
  1169.  
  1170.     /**
  1171.      * Set cf593
  1172.      *
  1173.      * @param string $cf593
  1174.      * @return VtigerTicketcf
  1175.      */
  1176.     public function setCf593($cf593)
  1177.     {
  1178.         $this->cf593 = $cf593;
  1179.    
  1180.         return $this;
  1181.     }
  1182.  
  1183.     /**
  1184.      * Get cf593
  1185.      *
  1186.      * @return string
  1187.      */
  1188.     public function getCf593()
  1189.     {
  1190.         return $this->cf593;
  1191.     }
  1192.  
  1193.     /**
  1194.      * Set tipo
  1195.      *
  1196.      * @param string $tipo
  1197.      * @return VtigerTicketcf
  1198.      */
  1199.     public function setTipo($tipo)
  1200.     {
  1201.         $this->tipo = $tipo;
  1202.    
  1203.         return $this;
  1204.     }
  1205.  
  1206.     /**
  1207.      * Get tipo
  1208.      *
  1209.      * @return string
  1210.      */
  1211.     public function getTipo()
  1212.     {
  1213.         return $this->tipo;
  1214.     }
  1215.  
  1216.     /**
  1217.      * Set suscripcion
  1218.      *
  1219.      * @param string $suscripcion
  1220.      * @return VtigerTicketcf
  1221.      */
  1222.     public function setSuscripcion($suscripcion)
  1223.     {
  1224.         $this->suscripcion = $suscripcion;
  1225.    
  1226.         return $this;
  1227.     }
  1228.  
  1229.     /**
  1230.      * Get suscripcion
  1231.      *
  1232.      * @return string
  1233.      */
  1234.     public function getSuscripcion()
  1235.     {
  1236.         return $this->suscripcion;
  1237.     }
  1238.  
  1239.     /**
  1240.      * Set cf689
  1241.      *
  1242.      * @param float $cf689
  1243.      * @return VtigerTicketcf
  1244.      */
  1245.     public function setCf689($cf689)
  1246.     {
  1247.         $this->cf689 = $cf689;
  1248.    
  1249.         return $this;
  1250.     }
  1251.  
  1252.     /**
  1253.      * Get cf689
  1254.      *
  1255.      * @return float
  1256.      */
  1257.     public function getCf689()
  1258.     {
  1259.         return $this->cf689;
  1260.     }
  1261.  
  1262.     /**
  1263.      * Set cf690
  1264.      *
  1265.      * @param float $cf690
  1266.      * @return VtigerTicketcf
  1267.      */
  1268.     public function setCf690($cf690)
  1269.     {
  1270.         $this->cf690 = $cf690;
  1271.    
  1272.         return $this;
  1273.     }
  1274.  
  1275.     /**
  1276.      * Get cf690
  1277.      *
  1278.      * @return float
  1279.      */
  1280.     public function getCf690()
  1281.     {
  1282.         return $this->cf690;
  1283.     }
  1284.  
  1285.     /**
  1286.      * Set cf691
  1287.      *
  1288.      * @param float $cf691
  1289.      * @return VtigerTicketcf
  1290.      */
  1291.     public function setCf691($cf691)
  1292.     {
  1293.         $this->cf691 = $cf691;
  1294.    
  1295.         return $this;
  1296.     }
  1297.  
  1298.     /**
  1299.      * Get cf691
  1300.      *
  1301.      * @return float
  1302.      */
  1303.     public function getCf691()
  1304.     {
  1305.         return $this->cf691;
  1306.     }
  1307.  
  1308.     /**
  1309.      * Set cf693
  1310.      *
  1311.      * @param float $cf693
  1312.      * @return VtigerTicketcf
  1313.      */
  1314.     public function setCf693($cf693)
  1315.     {
  1316.         $this->cf693 = $cf693;
  1317.    
  1318.         return $this;
  1319.     }
  1320.  
  1321.     /**
  1322.      * Get cf693
  1323.      *
  1324.      * @return float
  1325.      */
  1326.     public function getCf693()
  1327.     {
  1328.         return $this->cf693;
  1329.     }
  1330.  
  1331.     /**
  1332.      * Set FNoti
  1333.      *
  1334.      * @param string $fNoti
  1335.      * @return VtigerTicketcf
  1336.      */
  1337.     public function setFNoti($fNoti)
  1338.     {
  1339.         $this->FNoti = $fNoti;
  1340.    
  1341.         return $this;
  1342.     }
  1343.  
  1344.     /**
  1345.      * Get FNoti
  1346.      *
  1347.      * @return string
  1348.      */
  1349.     public function getFNoti()
  1350.     {
  1351.         return $this->FNoti;
  1352.     }
  1353.  
  1354.     /**
  1355.      * Set FResp
  1356.      *
  1357.      * @param string $fResp
  1358.      * @return VtigerTicketcf
  1359.      */
  1360.     public function setFResp($fResp)
  1361.     {
  1362.         $this->FResp = $fResp;
  1363.    
  1364.         return $this;
  1365.     }
  1366.  
  1367.     /**
  1368.      * Get FResp
  1369.      *
  1370.      * @return string
  1371.      */
  1372.     public function getFResp()
  1373.     {
  1374.         return $this->FResp;
  1375.     }
  1376.  
  1377.     /**
  1378.      * Set FReso
  1379.      *
  1380.      * @param string $fReso
  1381.      * @return VtigerTicketcf
  1382.      */
  1383.     public function setFReso($fReso)
  1384.     {
  1385.         $this->FReso = $fReso;
  1386.    
  1387.         return $this;
  1388.     }
  1389.  
  1390.     /**
  1391.      * Get FReso
  1392.      *
  1393.      * @return string
  1394.      */
  1395.     public function getFReso()
  1396.     {
  1397.         return $this->FReso;
  1398.     }
  1399.  
  1400.     /**
  1401.      * Set hardware
  1402.      *
  1403.      * @param string $hardware
  1404.      * @return VtigerTicketcf
  1405.      */
  1406.     public function setHardware($hardware)
  1407.     {
  1408.         $this->hardware = $hardware;
  1409.    
  1410.         return $this;
  1411.     }
  1412.  
  1413.     /**
  1414.      * Get cf761
  1415.      *
  1416.      * @return string
  1417.      */
  1418.     public function getHardware()
  1419.     {
  1420.         return $this->hardware;
  1421.     }
  1422.  
  1423.     /**
  1424.      * Set recuperacion
  1425.      *
  1426.      * @param string $recuperacion
  1427.      * @return VtigerTicketcf
  1428.      */
  1429.     public function setRecuperacion($recuperacion)
  1430.     {
  1431.         $this->recuperacion = $recuperacion;
  1432.    
  1433.         return $this;
  1434.     }
  1435.  
  1436.     /**
  1437.      * Get recuperacion
  1438.      *
  1439.      * @return string
  1440.      */
  1441.     public function getRecuperacion()
  1442.     {
  1443.         return $this->recuperacion;
  1444.     }
  1445.  
  1446.     /**
  1447.      * Set web
  1448.      *
  1449.      * @param string $web
  1450.      * @return VtigerTicketcf
  1451.      */
  1452.     public function setWeb($web)
  1453.     {
  1454.         $this->web = $web;
  1455.    
  1456.         return $this;
  1457.     }
  1458.  
  1459.     /**
  1460.      * Get web
  1461.      *
  1462.      * @return string
  1463.      */
  1464.     public function getWeb()
  1465.     {
  1466.         return $this->web;
  1467.     }
  1468.  
  1469.     /**
  1470.      * Set backup
  1471.      *
  1472.      * @param string $backup
  1473.      * @return VtigerTicketcf
  1474.      */
  1475.     public function setBackup($backup)
  1476.     {
  1477.         $this->backup = $backup;
  1478.    
  1479.         return $this;
  1480.     }
  1481.  
  1482.     /**
  1483.      * Get backup
  1484.      *
  1485.      * @return string
  1486.      */
  1487.     public function getBackup()
  1488.     {
  1489.         return $this->backup;
  1490.     }
  1491.  
  1492.     /**
  1493.      * Set idProd
  1494.      *
  1495.      * @param string $idProd
  1496.      * @return VtigerTicketcf
  1497.      */
  1498.     public function setIdProd($idProd)
  1499.     {
  1500.         $this->idProd = $idProd;
  1501.    
  1502.         return $this;
  1503.     }
  1504.  
  1505.     /**
  1506.      * Get idProd
  1507.      *
  1508.      * @return string
  1509.      */
  1510.     public function getIdProd()
  1511.     {
  1512.         return $this->idProd;
  1513.     }
  1514.  
  1515.     /**
  1516.      * Set id
  1517.      *
  1518.      * @param \WbsGo\clientsBundle\Entity\Tickets $id
  1519.      * @return VtigerTicketcf
  1520.      */
  1521.     public function setId(\WbsGo\clientsBundle\Entity\Tickets $id)
  1522.     {
  1523.         $this->id = $id;
  1524.    
  1525.         return $this;
  1526.     }
  1527.  
  1528.     /**
  1529.      * Get id
  1530.      *
  1531.      * @return \WbsGo\clientsBundle\Entity\Tickets
  1532.      */
  1533.     public function getId()
  1534.     {
  1535.         return $this->id;
  1536.     }
  1537. }
  1538. ?>
  1539.  
  1540. <?php
  1541.  
  1542. namespace WbsGo\clientsBundle\Entity;
  1543.  
  1544. use Doctrine\ORM\Mapping as ORM;
  1545. use Symfony\Component\Config\Definition\IntegerNode;
  1546.  
  1547. /**
  1548.  * VtigerTicketcomments
  1549.  *
  1550.  * @ORM\Table(name="vtiger_ticketcomments")
  1551.  * @ORM\Entity
  1552.  * @ORM\HasLifecycleCallbacks
  1553.  */
  1554. class VtigerTicketcomments
  1555. {
  1556.     /**
  1557.      * @var string
  1558.      *
  1559.      * @ORM\Column(name="comments", type="text", nullable=true)
  1560.      */
  1561.     private $comments;
  1562.  
  1563.     /**
  1564.      * @var integer
  1565.      *
  1566.      * @ORM\Column(name="ownerid", type="integer", nullable=false)
  1567.      */
  1568.     private $ownerid;
  1569.  
  1570.     /**
  1571.      * @var string
  1572.      *
  1573.      * @ORM\Column(name="ownertype", type="string", length=10, nullable=true)
  1574.      */
  1575.     private $ownertype;
  1576.  
  1577.     /**
  1578.      * @var \DateTime
  1579.      *
  1580.      * @ORM\Column(name="createdtime", type="datetime", nullable=false)
  1581.      */
  1582.     private $createdtime;
  1583.  
  1584.     /**
  1585.      * @var integer
  1586.      * @ORM\Column(name="commentid", type="integer")
  1587.      * @ORM\Id
  1588.      * @ORM\GeneratedValue(strategy="AUTO")
  1589.      */
  1590.     private $id;
  1591.  
  1592.     /**
  1593.      * @var integer
  1594.      * @ORM\Column(name="ticketid", type="integer", nullable=false)
  1595.      */
  1596.     private $ticketid;
  1597.  
  1598.     /**
  1599.      * Set comments
  1600.      *
  1601.      * @param string $comments
  1602.      * @return VtigerTicketcomments
  1603.      */
  1604.     public function setComments($comments)
  1605.     {
  1606.         $this->comments = $comments;
  1607.    
  1608.         return $this;
  1609.     }
  1610.  
  1611.     /**
  1612.      * Get comments
  1613.      *
  1614.      * @return string
  1615.      */
  1616.     public function getComments()
  1617.     {
  1618.         return $this->comments;
  1619.     }
  1620.  
  1621.     /**
  1622.      * Set ownerid
  1623.      *
  1624.      * @param integer $ownerid
  1625.      * @return VtigerTicketcomments
  1626.      */
  1627.     public function setOwnerid($ownerid)
  1628.     {
  1629.         $this->ownerid = $ownerid;
  1630.    
  1631.         return $this;
  1632.     }
  1633.  
  1634.     /**
  1635.      * Get ownerid
  1636.      *
  1637.      * @return integer
  1638.      */
  1639.     public function getOwnerid()
  1640.     {
  1641.         return $this->ownerid;
  1642.     }
  1643.  
  1644.     /**
  1645.      * Set ownertype
  1646.      *
  1647.      * @param string $ownertype
  1648.      * @return VtigerTicketcomments
  1649.      */
  1650.     public function setOwnertype($ownertype)
  1651.     {
  1652.         $this->ownertype = $ownertype;
  1653.    
  1654.         return $this;
  1655.     }
  1656.  
  1657.     /**
  1658.      * Get ownertype
  1659.      *
  1660.      * @return string
  1661.      */
  1662.     public function getOwnertype()
  1663.     {
  1664.         return $this->ownertype;
  1665.     }
  1666.  
  1667.     /**
  1668.     * @ORM\PrePersist
  1669.     */
  1670.     public function setCreatedtime($createdTime = null)
  1671.     {
  1672.         $this->createdtime = null === $createdTime ? new \DateTime() : $createdTime;
  1673.         return $this;
  1674.     }
  1675.  
  1676.     /**
  1677.      * Get createdtime
  1678.      *
  1679.      * @return \DateTime
  1680.      */
  1681.     public function getCreatedtime()
  1682.     {
  1683.         return $this->createdtime;
  1684.     }
  1685.  
  1686.     /**
  1687.      * Get id
  1688.      *
  1689.      * @return integer
  1690.      */
  1691.     public function getId()
  1692.     {
  1693.         return $this->id;
  1694.     }
  1695.  
  1696.     /**
  1697.      * Set ticketid
  1698.      *
  1699.      * @param integer $ticketid
  1700.      * @return VtigerTicketcomments
  1701.      */
  1702.     public function setTicketid($ticketid)
  1703.     {
  1704.         $this->ticketid = $ticketid;
  1705.    
  1706.         return $this;
  1707.     }
  1708.  
  1709.     /**
  1710.      * Get ticketid
  1711.      *
  1712.      * @return integer
  1713.      */
  1714.     public function getTicketid()
  1715.     {
  1716.         return $this->ticketid;
  1717.     }
  1718. }
  1719. ?>
  1720.  
  1721. <?php
  1722.  
  1723. namespace WbsGo\clientsBundle\Form;
  1724.  
  1725. use Symfony\Component\Form\AbstractType;
  1726. use Symfony\Component\Form\FormBuilderInterface;
  1727. use Symfony\Component\OptionsResolver\OptionsResolverInterface;
  1728.  
  1729. use WbsGo\clientsBundle\Entity\VtigerTicketcf;
  1730. use WbsGo\clientsBundle\Form\Type\TicketsType;
  1731.  
  1732. class TicketcfType extends AbstractType
  1733. {
  1734.     private $assetList;
  1735.     private $contactlist;
  1736.     public function __construct($_assetList,$_contactlist)
  1737.     {
  1738.         $this->assetList = $_assetList;
  1739.         $this->contactlist = $_contactlist;
  1740.     }
  1741.    
  1742.     public function buildForm(FormBuilderInterface $builder, array $options)
  1743.     {
  1744.         $builder
  1745.             ->add('suscripcion')
  1746.             ->add('idProd',
  1747.                     'choice',
  1748.                     array(
  1749.                             'choices' => $this->assetList
  1750.                     ))
  1751.             ->add('hardware', 'checkbox')
  1752.             ->add('recuperacion', 'checkbox')
  1753.             ->add('web', 'checkbox')
  1754.             ->add('backup', 'checkbox')
  1755.             ->add('id',
  1756.                     new TicketsType($this->assetList, $this->contactlist))
  1757.         ;
  1758.     }
  1759.  
  1760.     public function setDefaultOptions(OptionsResolverInterface $resolver)
  1761.     {
  1762.         $resolver->setDefaults(array(
  1763.             'data_class' => 'WbsGo\clientsBundle\Entity\VtigerTicketcf'
  1764.         ));
  1765.     }
  1766.  
  1767.     public function getName()
  1768.     {
  1769.         return 'tcf';
  1770.     }
  1771. }
  1772. ?>
  1773.  
  1774. <?php
  1775.  
  1776. namespace WbsGo\clientsBundle\Form\Type;
  1777.  
  1778. use Symfony\Component\Form\AbstractType;
  1779. use Symfony\Component\Form\FormBuilderInterface;
  1780. use Symfony\Component\OptionsResolver\OptionsResolverInterface;
  1781.  
  1782. use WbsGo\clientsBundle\Entity\Tickets;
  1783. use WbsGo\clientsBundle\Form\Type\VtigerCrmentityType;
  1784.  
  1785. class TicketsType extends AbstractType
  1786. {
  1787.     private $assetList;
  1788.     private $contactlist;
  1789.     public function __construct($_assetList,$_contactlist)
  1790.     {
  1791.         $this->assetList = $_assetList;
  1792.         $this->contactlist = $_contactlist;
  1793.     }
  1794.    
  1795.     public function buildForm(FormBuilderInterface $builder, array $options)
  1796.     {
  1797.         $builder
  1798.             ->add('priority')
  1799.             ->add('title')
  1800.             ->add('ticketid',
  1801.                     new VtigerCrmentityType())
  1802.                    
  1803.             /*
  1804.             ->add('contacto',
  1805.                     'choice',
  1806.                     array(
  1807.                             'choices' => $this->contactlist
  1808.             ))
  1809.             ->add('hardware', 'checkbox')
  1810.             ->add('backup', 'checkbox')
  1811.             ->add('web', 'checkbox')
  1812.             ->add('restore', 'checkbox')
  1813.             ->add('customerId')
  1814.             */
  1815.         ;
  1816.     }
  1817.  
  1818.     public function setDefaultOptions(OptionsResolverInterface $resolver)
  1819.     {
  1820.         $resolver->setDefaults(array(
  1821.             'data_class' => 'WbsGo\clientsBundle\Entity\Tickets'
  1822.         ));
  1823.     }
  1824.  
  1825.     public function getName()
  1826.     {
  1827.         return 'ticket';
  1828.     }
  1829. }
  1830. ?>
  1831.  
  1832. <?php
  1833. namespace WbsGo\clientsBundle\Form\Type;
  1834. use Symfony\Component\Form\AbstractType;
  1835. use Symfony\Component\Form\FormBuilderInterface;
  1836. use Symfony\Component\OptionsResolver\OptionsResolverInterface;
  1837.  
  1838. use WbsGo\clientsBundle\Entity\VtigerCrmentity;
  1839.  
  1840. class VtigerCrmentityType extends AbstractType {
  1841.  
  1842.     public function buildForm(FormBuilderInterface $builder, array $options) {
  1843.         $builder
  1844.                 ->add('description', 'textarea',
  1845.                         array('attr' => array('class' => 'tinymce')));
  1846.     }
  1847.  
  1848.     public function setDefaultOptions(OptionsResolverInterface $resolver) {
  1849.         $resolver
  1850.                 ->setDefaults(
  1851.                         array(
  1852.                                 'data_class' => 'WbsGo\clientsBundle\Entity\VtigerCrmentity'));
  1853.     }
  1854.     public function getName() {
  1855.         return 'crm';
  1856.     }
  1857. }
  1858.  
  1859. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement