public function save($allProperties = true) { if (!$this->getUUID() && !$this->getId()) { $this->setUUID(UUID::get()); } parent::save($allProperties); }
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); }
public function __construct() { parent::__construct([self::SESSION_ID]); $this->dbTable = 'tmp_sessions'; }
public function __construct() { parent::__construct([self::USER_ID, self::NOTED_ID, self::NOTE]); $this->dbTable = 'user_notes'; }
public function __construct() { parent::__construct([self::USER_ID, self::EVALUATOR_ID, self::MARK, self::DATE_REGISTER]); $this->dbTable = 'user_karma'; }
public function __construct() { parent::__construct([self::NAME, self::DATE, self::MESSAGE]); $this->dbTable = 'hashes'; }
public function __construct() { parent::__construct([self::TRACK_ID, self::ARTIST, self::SONG, self::QUALITY, self::URL]); $this->dbTable = 'music_info'; }
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'; }
public function __construct() { parent::__construct([self::EMAIL, self::CODE, self::TIMESTAMP, self::USED]); $this->dbTable = 'activations'; }
public function __construct() { parent::__construct([self::SESSION_ID, self::ACCESS_TIME, self::USER_ID]); $this->dbTable = 'sessions'; }
public function __construct() { parent::__construct([self::KEY, self::TIMESTAMP]); $this->dbTable = 'locker'; }
public function __construct() { parent::__construct([self::USER_ID, self::REF_USER_ID, self::DATE_REGISTER]); $this->dbTable = 'users_ref'; }
public function __construct() { parent::__construct([self::USER_ID, self::OLD_NAME, self::DATE_CHANGE]); $this->dbTable = 'name_change_history'; }
public function __construct() { parent::__construct([self::EMAIL, self::TOPIC, self::MESSAGE, self::DATE]); $this->dbTable = 'mail_queue'; $this->setDate(DbQueryHelper::timestamp2date()); }
public function __construct() { parent::__construct([self::USER_ID, self::IGNORED_ID]); $this->dbTable = 'user_blacklist'; }