UserSettingsRepository.php 394 B

12345678910
  1. <?php
  2. class UserSettingsRepository implements IUserSettingsRepository {
  3. public function GetSetting(User $user, $settingName) {
  4. /*$PDO=BaseRepository::GetPDO();
  5. $prep=$PDO->prepare("SELECT setting_id FROM user_settings WHERE user_id=? AND key=?");
  6. $prep->execute(array($user->UserId,$settingName));
  7. $settingId=$prep->FetchColumn();*/
  8. return new UserSetting($user, $settingName);
  9. }
  10. }