Advertisement
dragonbe

Example User Class

Apr 28th, 2011
240
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.35 KB | None | 0 0
  1. <?php
  2.  
  3. class My_Model_User
  4. {
  5.   protected $_fullName;
  6.   protected $_username;
  7.   protected $_email;
  8.   protected $_created;
  9.   protected $_updated;
  10.  
  11.   public function setFullName($fullName)
  12.   {
  13.      $this->_fullName = (string) $fullName;
  14.      return $this;
  15.   }
  16.   public function getFullName()
  17.   {
  18.      return $this->_fullName;
  19.   }
  20.   ...
  21. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement