first import
[projectpier.git] / application / models / project_milestones / base / BaseProjectMilestone.class.php
blob2effa3937339f393c096d6595fe191014806bd41
1 <?php
3 /**
4 * BaseProjectMilestone class
6 * @http://www.projectpier.org/
7 */
8 abstract class BaseProjectMilestone extends ProjectDataObject {
10 // -------------------------------------------------------
11 // Access methods
12 // -------------------------------------------------------
14 /**
15 * Return value of 'id' field
17 * @access public
18 * @param void
19 * @return integer
21 function getId() {
22 return $this->getColumnValue('id');
23 } // getId()
25 /**
26 * Set value of 'id' field
28 * @access public
29 * @param integer $value
30 * @return boolean
32 function setId($value) {
33 return $this->setColumnValue('id', $value);
34 } // setId()
36 /**
37 * Return value of 'project_id' field
39 * @access public
40 * @param void
41 * @return integer
43 function getProjectId() {
44 return $this->getColumnValue('project_id');
45 } // getProjectId()
47 /**
48 * Set value of 'project_id' field
50 * @access public
51 * @param integer $value
52 * @return boolean
54 function setProjectId($value) {
55 return $this->setColumnValue('project_id', $value);
56 } // setProjectId()
58 /**
59 * Return value of 'name' field
61 * @access public
62 * @param void
63 * @return string
65 function getName() {
66 return $this->getColumnValue('name');
67 } // getName()
69 /**
70 * Set value of 'name' field
72 * @access public
73 * @param string $value
74 * @return boolean
76 function setName($value) {
77 return $this->setColumnValue('name', $value);
78 } // setName()
80 /**
81 * Return value of 'description' field
83 * @access public
84 * @param void
85 * @return string
87 function getDescription() {
88 return $this->getColumnValue('description');
89 } // getDescription()
91 /**
92 * Set value of 'description' field
94 * @access public
95 * @param string $value
96 * @return boolean
98 function setDescription($value) {
99 return $this->setColumnValue('description', $value);
100 } // setDescription()
103 * Return value of 'due_date' field
105 * @access public
106 * @param void
107 * @return DateTimeValue
109 function getDueDate() {
110 return $this->getColumnValue('due_date');
111 } // getDueDate()
114 * Set value of 'due_date' field
116 * @access public
117 * @param DateTimeValue $value
118 * @return boolean
120 function setDueDate($value) {
121 return $this->setColumnValue('due_date', $value);
122 } // setDueDate()
125 * Return value of 'assigned_to_company_id' field
127 * @access public
128 * @param void
129 * @return integer
131 function getAssignedToCompanyId() {
132 return $this->getColumnValue('assigned_to_company_id');
133 } // getAssignedToCompanyId()
136 * Set value of 'assigned_to_company_id' field
138 * @access public
139 * @param integer $value
140 * @return boolean
142 function setAssignedToCompanyId($value) {
143 return $this->setColumnValue('assigned_to_company_id', $value);
144 } // setAssignedToCompanyId()
147 * Return value of 'assigned_to_user_id' field
149 * @access public
150 * @param void
151 * @return integer
153 function getAssignedToUserId() {
154 return $this->getColumnValue('assigned_to_user_id');
155 } // getAssignedToUserId()
158 * Set value of 'assigned_to_user_id' field
160 * @access public
161 * @param integer $value
162 * @return boolean
164 function setAssignedToUserId($value) {
165 return $this->setColumnValue('assigned_to_user_id', $value);
166 } // setAssignedToUserId()
169 * Return value of 'is_private' field
171 * @access public
172 * @param void
173 * @return boolean
175 function getIsPrivate() {
176 return $this->getColumnValue('is_private');
177 } // getIsPrivate()
180 * Set value of 'is_private' field
182 * @access public
183 * @param boolean $value
184 * @return boolean
186 function setIsPrivate($value) {
187 return $this->setColumnValue('is_private', $value);
188 } // setIsPrivate()
191 * Return value of 'completed_on' field
193 * @access public
194 * @param void
195 * @return DateTimeValue
197 function getCompletedOn() {
198 return $this->getColumnValue('completed_on');
199 } // getCompletedOn()
202 * Set value of 'completed_on' field
204 * @access public
205 * @param DateTimeValue $value
206 * @return boolean
208 function setCompletedOn($value) {
209 return $this->setColumnValue('completed_on', $value);
210 } // setCompletedOn()
213 * Return value of 'completed_by_id' field
215 * @access public
216 * @param void
217 * @return integer
219 function getCompletedById() {
220 return $this->getColumnValue('completed_by_id');
221 } // getCompletedById()
224 * Set value of 'completed_by_id' field
226 * @access public
227 * @param integer $value
228 * @return boolean
230 function setCompletedById($value) {
231 return $this->setColumnValue('completed_by_id', $value);
232 } // setCompletedById()
235 * Return value of 'created_on' field
237 * @access public
238 * @param void
239 * @return DateTimeValue
241 function getCreatedOn() {
242 return $this->getColumnValue('created_on');
243 } // getCreatedOn()
246 * Set value of 'created_on' field
248 * @access public
249 * @param DateTimeValue $value
250 * @return boolean
252 function setCreatedOn($value) {
253 return $this->setColumnValue('created_on', $value);
254 } // setCreatedOn()
257 * Return value of 'created_by_id' field
259 * @access public
260 * @param void
261 * @return integer
263 function getCreatedById() {
264 return $this->getColumnValue('created_by_id');
265 } // getCreatedById()
268 * Set value of 'created_by_id' field
270 * @access public
271 * @param integer $value
272 * @return boolean
274 function setCreatedById($value) {
275 return $this->setColumnValue('created_by_id', $value);
276 } // setCreatedById()
279 * Return value of 'updated_on' field
281 * @access public
282 * @param void
283 * @return DateTimeValue
285 function getUpdatedOn() {
286 return $this->getColumnValue('updated_on');
287 } // getUpdatedOn()
290 * Set value of 'updated_on' field
292 * @access public
293 * @param DateTimeValue $value
294 * @return boolean
296 function setUpdatedOn($value) {
297 return $this->setColumnValue('updated_on', $value);
298 } // setUpdatedOn()
301 * Return value of 'updated_by_id' field
303 * @access public
304 * @param void
305 * @return integer
307 function getUpdatedById() {
308 return $this->getColumnValue('updated_by_id');
309 } // getUpdatedById()
312 * Set value of 'updated_by_id' field
314 * @access public
315 * @param integer $value
316 * @return boolean
318 function setUpdatedById($value) {
319 return $this->setColumnValue('updated_by_id', $value);
320 } // setUpdatedById()
324 * Return manager instance
326 * @access protected
327 * @param void
328 * @return ProjectMilestones
330 function manager() {
331 if(!($this->manager instanceof ProjectMilestones)) $this->manager = ProjectMilestones::instance();
332 return $this->manager;
333 } // manager
335 } // BaseProjectMilestone