title: A user registration class
body: <p>I'm writing this in PHP, but, generally speaking, what methods and properties would a user (registration?) class have? I know I can use MDB2 from PEAR for database abstraction, and one feature I can think of is making sure the username is valid.</p>
  
  <pre><code>$user-&gt;validateUserName($username, $regex);
  </code></pre>
  
  <p>Can anybody think of any more?</p>
  
  <p>Thanks.</p>
  
  <p><strong>Edit</strong>:</p>
  
  <p>Username validation would be a class of its own right (Validator class or something)?</p>