Initial import

This commit is contained in:
Admin Nasledstvo
2026-05-01 20:52:04 +03:00
commit ac168868ee
10028 changed files with 2337954 additions and 0 deletions
@@ -0,0 +1,26 @@
<?php
namespace app\models;
/**
* Class UserPublic
* @package app\models
* @property $id
* @property $full_name
* @property $email
* @property $password
* @property $password_hash
* @property $club_card
*/
class UserPublic extends _Base
{
public function setPasswordHash($password) {
$this->password_hash = password_hash($password, PASSWORD_DEFAULT);
}
public function getExplorerObjectsSumPoints() {
return $this->hasMany(UserExplorerObjects::class, ['user_id' => 'id'])
->joinWith('exploreObject')->sum('points');
}
}