blob: 1dbca8e51a5c8c006b8c63427eb6a1c6ee6637d3 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
|
<?php
Prado::using('Application.dto.BaseDTO');
Prado::using('Application.model.UserAuthKey');
class UserKeyDTO extends BaseDTO {
public $User;
public $Key;
public $IPAddress;
public function loadRecord(UserAuthKey $record) {
if ($record->User) {
$this->User = $record->User->Login;
}
$this->Key = $record->AuthKey;
$this->IPAddress = $record->IPAddress;
}
public static function __compare(UserKeyDTO $dto1, UserKeyDTO $dto2) {
return strcmp($dto1->Key, $dto2->Key);
}
}
?>
|