Ejemplo n.º 1
0
 private static function _getObject(Resultset $rs, Project $project)
 {
     $ret = new Project_Log($project);
     $ret->setId($rs->getId());
     $ret->setDate($rs->getDate());
     $ret->setType($rs->getType());
     $ret->setMessage($rs->getMessage());
     $ret->setUsername($rs->getUsername());
     $ret->resetSignature();
     return $ret;
 }
Ejemplo n.º 2
0
 /**
  * Logs an event to the project log.
  *
  * @param string $msg
  */
 public function log($msg, $username = '', $type = 0)
 {
     $projectLog = new Project_Log($this);
     $projectLog->setType($type);
     $projectLog->setMessage($msg);
     $projectLog->setUsername($username);
 }