OauthFans.php 701 B

12345678910111213141516171819202122232425262728293031
  1. <?php
  2. /**
  3. * [WeEngine System] Copyright (c) 2014 WE7.CC
  4. * WeEngine is NOT a free software, it under the license terms, visited http://www.we7.cc/ for more details.
  5. */
  6. namespace We7\Table\Mc;
  7. class OauthFans extends \We7Table {
  8. protected $tableName = 'mc_oauth_fans';
  9. protected $primaryKey = 'id';
  10. protected $field = array(
  11. 'oauth_openid',
  12. 'acid',
  13. 'uid',
  14. 'openid',
  15. );
  16. protected $default = array(
  17. 'oauth_openid' => '',
  18. 'acid' => '',
  19. 'uid' => '',
  20. 'openid' => '',
  21. );
  22. public function searchWithoAuthopenid($oauth_openid) {
  23. return $this->query->where('oauth_openid', $oauth_openid);
  24. }
  25. public function searchWithAcid($acid) {
  26. return $this->query->where('acid', $acid);
  27. }
  28. }