jablonka.czprosek.czf

freenet-router

Subversion Repositories:
[/] [trunk/] [freenet-router/] [var/] [www/] [freenet-router/] [Framework/] [Libraries/] [Security/] [Model/] [MySQL/] [Task.php] - Blame information for rev 2

 

Line No. Rev Author Line
12simandl<?php
2 
3namespace Phem\Libraries\Security\Model\MySQL;
4 
5use Doctrine\ORM\Mapping\JoinColumn;
6use Doctrine\ORM\Mapping\ManyToOne;
7use Doctrine\ORM\Mapping\OneToMany;
8use Phem\Libraries\Security\Model\Common\Task as CommonTask;
9 
10/**
11 * @Entity @Table(name="admin_task")
12 */
13class Task extends CommonTask
14{
15 
16 /** @Id @Column(type="integer") @GeneratedValue */
17 protected $id;
18 
19 /**
20 * @ManyToOne(targetEntity="Controller",cascade={"all"})
21 * @JoinColumn(name="controller", referencedColumnName="id")
22 */
23 protected $controller;
24 
25 /** @Column(type="string") */
26 protected $name;
27 
28 /** @Column(type="string") */
29 protected $description;
30 
31 /**
32 * @OneToMany(targetEntity="Permission", mappedBy="task",cascade={"all"})
33 */
34 protected $permissions;
35 
36 public function getId()
37 {
38 return $this->id;
39 }
40 
41 public function setId($id)
42 {
43 $this->id = $id;
44 }
45 
46 public function getController()
47 {
48 return $this->controller;
49 }
50 
51 public function setController($controller)
52 {
53 $this->controller = $controller;
54 }
55 
56 public function getName()
57 {
58 return $this->name;
59 }
60 
61 public function setName($name)
62 {
63 $this->name = $name;
64 }
65 
66 public function getDescription()
67 {
68 return $this->description;
69 }
70 
71 public function setDescription($description)
72 {
73 $this->description = $description;
74 }
75 
76 public function getPermissions()
77 {
78 return $this->permissions;
79 }
80 
81 public function setPermissions($permissions)
82 {
83 $this->permissions = $permissions;
84 }
85 
86}

Powered by WebSVN 2.2.1