Esempio n. 1
0
 public function save($allProperties = true)
 {
     if (!$this->getUUID() && !$this->getId()) {
         $this->setUUID(UUID::get());
     }
     parent::save($allProperties);
 }
Esempio n. 2
0
 public function __construct()
 {
     parent::__construct([self::EMAIL, self::PASSWORD, self::DATE_REGISTER, self::CHAT, self::ROLE, self::IMPRINT, self::IS_BANNED]);
     $this->dbTable = 'users';
     $this->addRelativeProperty(self::PROPERTIES);
     $this->addRelativeProperty(self::BLACKLIST);
     $this->addRelativeProperty(self::NOTES);
 }
Esempio n. 3
0
 public function __construct()
 {
     parent::__construct([self::SESSION_ID]);
     $this->dbTable = 'tmp_sessions';
 }
Esempio n. 4
0
 public function __construct()
 {
     parent::__construct([self::USER_ID, self::NOTED_ID, self::NOTE]);
     $this->dbTable = 'user_notes';
 }
Esempio n. 5
0
 public function __construct()
 {
     parent::__construct([self::USER_ID, self::EVALUATOR_ID, self::MARK, self::DATE_REGISTER]);
     $this->dbTable = 'user_karma';
 }
Esempio n. 6
0
 public function __construct()
 {
     parent::__construct([self::NAME, self::DATE, self::MESSAGE]);
     $this->dbTable = 'hashes';
 }
Esempio n. 7
0
 public function __construct()
 {
     parent::__construct([self::TRACK_ID, self::ARTIST, self::SONG, self::QUALITY, self::URL]);
     $this->dbTable = 'music_info';
 }
Esempio n. 8
0
 public function __construct()
 {
     parent::__construct([self::USER_ID, self::NAME, self::ABOUT, self::SEX, self::TIM, self::NOTIFICATIONS, self::AVATAR, self::CITY, self::BIRTH, self::MESSAGES_COUNT, self::KARMA, self::WORDS_COUNT, self::ONLINE_TIME, self::MUSIC_COUNT, self::RUDE_COUNT, self::IS_SUBSCRIBED]);
     $this->dbTable = 'user_properties';
 }
Esempio n. 9
0
 public function __construct()
 {
     parent::__construct([self::EMAIL, self::CODE, self::TIMESTAMP, self::USED]);
     $this->dbTable = 'activations';
 }
Esempio n. 10
0
 public function __construct()
 {
     parent::__construct([self::SESSION_ID, self::ACCESS_TIME, self::USER_ID]);
     $this->dbTable = 'sessions';
 }
Esempio n. 11
0
 public function __construct()
 {
     parent::__construct([self::KEY, self::TIMESTAMP]);
     $this->dbTable = 'locker';
 }
Esempio n. 12
0
 public function __construct()
 {
     parent::__construct([self::USER_ID, self::REF_USER_ID, self::DATE_REGISTER]);
     $this->dbTable = 'users_ref';
 }
Esempio n. 13
0
 public function __construct()
 {
     parent::__construct([self::USER_ID, self::OLD_NAME, self::DATE_CHANGE]);
     $this->dbTable = 'name_change_history';
 }
Esempio n. 14
0
 public function __construct()
 {
     parent::__construct([self::EMAIL, self::TOPIC, self::MESSAGE, self::DATE]);
     $this->dbTable = 'mail_queue';
     $this->setDate(DbQueryHelper::timestamp2date());
 }
Esempio n. 15
0
 public function __construct()
 {
     parent::__construct([self::USER_ID, self::IGNORED_ID]);
     $this->dbTable = 'user_blacklist';
 }