@@ 1088-1103 (lines=16) @@ | ||
1085 | * @param string $message Generated message |
|
1086 | * @param string $comment Author comment |
|
1087 | */ |
|
1088 | public function addMovement($message, $comment = '', $id_author = null) |
|
1089 | { |
|
1090 | require_once dirname(__FILE__).'/movement.class.php'; |
|
1091 | ||
1092 | $movement = new absences_Movement(); |
|
1093 | $movement->message = $message; |
|
1094 | $movement->comment = $comment; |
|
1095 | ||
1096 | if (isset($id_author)) |
|
1097 | { |
|
1098 | $movement->id_author = $id_author; |
|
1099 | } |
|
1100 | ||
1101 | $movement->setRight($this); |
|
1102 | $movement->save(); |
|
1103 | } |
|
1104 | ||
1105 | ||
1106 |
@@ 710-721 (lines=12) @@ | ||
707 | * @param string $message Generated message |
|
708 | * @param string $comment Author comment |
|
709 | */ |
|
710 | public function addMovement($message, $comment = '', $createdOn = null) |
|
711 | { |
|
712 | require_once dirname(__FILE__).'/movement.class.php'; |
|
713 | ||
714 | $movement = new absences_Movement(); |
|
715 | $movement->message = $message; |
|
716 | $movement->comment = $comment; |
|
717 | $movement->setRequest($this); |
|
718 | $movement->setAgent($this->getAgent()); |
|
719 | $movement->createdOn = $createdOn; |
|
720 | $movement->save(); |
|
721 | } |
|
722 | ||
723 | ||
724 |