This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| class Model_Dao_User extends Zend_Db_Table_Abstract | |
| { | |
| protected $_name = "users"; | |
| protected $_primary = "id"; | |
| public function findBy($value, $by = 'id') | |
| { | |
| $select = $this->select()->where("{$by} = ?", $value)->limit(1); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| class Model_User | |
| { | |
| protected $id; | |
| protected $email; | |
| protected $password; | |
| protected $name; | |
| protected $job_title; | |
| protected $last_login_date; |