office_area.php 756 B

123456789101112131415161718192021222324252627282930313233
  1. <?php
  2. Doo::loadCore ( 'db/DooModel' );
  3. class office_area extends DooModel {
  4. public $uid;
  5. public $username;
  6. public $passwork;
  7. public $icon;
  8. public $projectid;
  9. public $color;
  10. public $_table = 'CLD_office_area';
  11. public $_primarykey = 'uid';
  12. public $_fields = array ('uid', 'username', 'passwork', 'icon', 'projectid','color' );
  13. public function checkUser($uid,$passwork){
  14. return $this->find ( array ('where' => "uid= '".$uid."' and passwork = '".addslashes($passwork)."'", 'asArray' => TRUE ) );
  15. }
  16. public function getUser() {
  17. return $this->find ( array ('asc' => 'uid', 'asArray' => TRUE ) );
  18. }
  19. public function getUserByIdList($puid){
  20. return $this->find ( array ('where' => "uid= '".$puid."'", 'asArray' => TRUE ) );
  21. }
  22. }
  23. ?>