Created
August 12, 2012 15:35
-
-
Save zombor/3332317 to your computer and use it in GitHub Desktop.
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 Arden_Repository_Users extends Arden_Repository_KohanaDatabase | |
{ | |
protected $_model_class = 'Model_User'; | |
protected $_table_name = 'users'; | |
public function find_users() | |
{ | |
return $this->load_set([]); | |
} | |
public function find_user($id) | |
{ | |
return $this->load_object(['id' => $id]); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment