| 1 | <?php |
||
| 18 | class UserProvider extends \yii\db\ActiveRecord |
||
| 19 | { |
||
| 20 | const TYPE_FACEBOOK = 1; |
||
| 21 | |||
| 22 | /** |
||
| 23 | * @inheritdoc |
||
| 24 | */ |
||
| 25 | public static function tableName() |
||
| 29 | 10 | ||
| 30 | /** |
||
| 31 | * @return \yii\db\ActiveQuery |
||
| 32 | */ |
||
| 33 | public function getUser() |
||
| 37 | |||
| 38 | /** |
||
| 39 | * @inheritdoc |
||
| 40 | * @return \app\models\query\UserProviderQuery The active query used by this AR class |
||
| 41 | */ |
||
| 42 | public static function find() |
||
| 46 | 10 | ||
| 47 | /** |
||
| 48 | * Get types |
||
| 49 | * |
||
| 50 | * @return array |
||
| 51 | */ |
||
| 52 | public static function getTypes(): array |
||
| 58 | |||
| 59 | /** |
||
| 60 | * Get type by id |
||
| 61 | * |
||
| 62 | * @return string $name |
||
| 63 | * @return int |
||
| 64 | */ |
||
| 65 | public static function getTypeByName(string $name): int |
||
| 70 | |||
| 71 | /** |
||
| 72 | * Get type name |
||
| 73 | * |
||
| 74 | * @return string |
||
| 75 | */ |
||
| 76 | public function getTypeName(): string |
||
| 81 | } |
||
| 82 |