4 * BaseProjectMilestone class
6 * @http://www.projectpier.org/
8 abstract class BaseProjectMilestone
extends ProjectDataObject
{
10 // -------------------------------------------------------
12 // -------------------------------------------------------
15 * Return value of 'id' field
22 return $this->getColumnValue('id');
26 * Set value of 'id' field
29 * @param integer $value
32 function setId($value) {
33 return $this->setColumnValue('id', $value);
37 * Return value of 'project_id' field
43 function getProjectId() {
44 return $this->getColumnValue('project_id');
48 * Set value of 'project_id' field
51 * @param integer $value
54 function setProjectId($value) {
55 return $this->setColumnValue('project_id', $value);
59 * Return value of 'name' field
66 return $this->getColumnValue('name');
70 * Set value of 'name' field
73 * @param string $value
76 function setName($value) {
77 return $this->setColumnValue('name', $value);
81 * Return value of 'description' field
87 function getDescription() {
88 return $this->getColumnValue('description');
92 * Set value of 'description' field
95 * @param string $value
98 function setDescription($value) {
99 return $this->setColumnValue('description', $value);
100 } // setDescription()
103 * Return value of 'due_date' field
107 * @return DateTimeValue
109 function getDueDate() {
110 return $this->getColumnValue('due_date');
114 * Set value of 'due_date' field
117 * @param DateTimeValue $value
120 function setDueDate($value) {
121 return $this->setColumnValue('due_date', $value);
125 * Return value of 'assigned_to_company_id' field
131 function getAssignedToCompanyId() {
132 return $this->getColumnValue('assigned_to_company_id');
133 } // getAssignedToCompanyId()
136 * Set value of 'assigned_to_company_id' field
139 * @param integer $value
142 function setAssignedToCompanyId($value) {
143 return $this->setColumnValue('assigned_to_company_id', $value);
144 } // setAssignedToCompanyId()
147 * Return value of 'assigned_to_user_id' field
153 function getAssignedToUserId() {
154 return $this->getColumnValue('assigned_to_user_id');
155 } // getAssignedToUserId()
158 * Set value of 'assigned_to_user_id' field
161 * @param integer $value
164 function setAssignedToUserId($value) {
165 return $this->setColumnValue('assigned_to_user_id', $value);
166 } // setAssignedToUserId()
169 * Return value of 'is_private' field
175 function getIsPrivate() {
176 return $this->getColumnValue('is_private');
180 * Set value of 'is_private' field
183 * @param boolean $value
186 function setIsPrivate($value) {
187 return $this->setColumnValue('is_private', $value);
191 * Return value of 'completed_on' field
195 * @return DateTimeValue
197 function getCompletedOn() {
198 return $this->getColumnValue('completed_on');
199 } // getCompletedOn()
202 * Set value of 'completed_on' field
205 * @param DateTimeValue $value
208 function setCompletedOn($value) {
209 return $this->setColumnValue('completed_on', $value);
210 } // setCompletedOn()
213 * Return value of 'completed_by_id' field
219 function getCompletedById() {
220 return $this->getColumnValue('completed_by_id');
221 } // getCompletedById()
224 * Set value of 'completed_by_id' field
227 * @param integer $value
230 function setCompletedById($value) {
231 return $this->setColumnValue('completed_by_id', $value);
232 } // setCompletedById()
235 * Return value of 'created_on' field
239 * @return DateTimeValue
241 function getCreatedOn() {
242 return $this->getColumnValue('created_on');
246 * Set value of 'created_on' field
249 * @param DateTimeValue $value
252 function setCreatedOn($value) {
253 return $this->setColumnValue('created_on', $value);
257 * Return value of 'created_by_id' field
263 function getCreatedById() {
264 return $this->getColumnValue('created_by_id');
265 } // getCreatedById()
268 * Set value of 'created_by_id' field
271 * @param integer $value
274 function setCreatedById($value) {
275 return $this->setColumnValue('created_by_id', $value);
276 } // setCreatedById()
279 * Return value of 'updated_on' field
283 * @return DateTimeValue
285 function getUpdatedOn() {
286 return $this->getColumnValue('updated_on');
290 * Set value of 'updated_on' field
293 * @param DateTimeValue $value
296 function setUpdatedOn($value) {
297 return $this->setColumnValue('updated_on', $value);
301 * Return value of 'updated_by_id' field
307 function getUpdatedById() {
308 return $this->getColumnValue('updated_by_id');
309 } // getUpdatedById()
312 * Set value of 'updated_by_id' field
315 * @param integer $value
318 function setUpdatedById($value) {
319 return $this->setColumnValue('updated_by_id', $value);
320 } // setUpdatedById()
324 * Return manager instance
328 * @return ProjectMilestones
331 if(!($this->manager
instanceof ProjectMilestones
)) $this->manager
= ProjectMilestones
::instance();
332 return $this->manager
;
335 } // BaseProjectMilestone