models/ApiAuth_UserKeyModel.php 1 location
|
@@ 32-39 (lines=8) @@
|
29 |
|
/** |
30 |
|
* @inheritdoc |
31 |
|
*/ |
32 |
|
protected function defineAttributes() |
33 |
|
{ |
34 |
|
return array( |
35 |
|
'userId' => array(AttributeType::Number, 'required' => true), |
36 |
|
'key' => array(AttributeType::String, 'required' => true, 'unique' => true), |
37 |
|
'expires' => array(AttributeType::DateTime, 'required' => true), |
38 |
|
); |
39 |
|
} |
40 |
|
} |
41 |
|
|
records/ApiAuth_UserKeyRecord.php 1 location
|
@@ 32-39 (lines=8) @@
|
29 |
|
/** |
30 |
|
* @inheritdoc |
31 |
|
*/ |
32 |
|
protected function defineAttributes() |
33 |
|
{ |
34 |
|
return array( |
35 |
|
'userId' => array(AttributeType::Number, 'required' => true), |
36 |
|
'key' => array(AttributeType::String, 'required' => true, 'unique' => true), |
37 |
|
'expires' => array(AttributeType::DateTime, 'required' => true), |
38 |
|
); |
39 |
|
} |
40 |
|
|
41 |
|
/** |
42 |
|
* @inheritdoc |