예제 #1
0
파일: Box.php 프로젝트: kitsune/ConAsset
 private function createLogEntry($type, $oldValue, $newValue)
 {
     $user = new User();
     $username = $user->get_Username();
     $logEntry = new LogEntry($this->connection);
     $logEntry->setBarcode($this->barcode);
     $logEntry->setPerson($username);
     $logEntry->setType($type);
     $logEntry->setOldValue($oldValue);
     $logEntry->setNewValue($newValue);
     $logEntry->insert();
 }
예제 #2
0
파일: Asset.php 프로젝트: kitsune/ConAsset
 private function createLogEntry($user, $type, $oldValue, $newValue)
 {
     $logEntry = new LogEntry($this->connection);
     $logEntry->setBarcode($this->barcode);
     $logEntry->setPerson($user);
     $logEntry->setType($type);
     $logEntry->setOldValue($oldValue);
     $logEntry->setNewValue($newValue);
     $logEntry->insert();
 }