Reply.php 670 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\Userapi;
  7. class Reply extends \We7Table {
  8. protected $tableName = 'userapi_reply';
  9. protected $primaryKey = 'id';
  10. protected $field = array(
  11. 'rid',
  12. 'description',
  13. 'apiurl',
  14. 'token',
  15. 'default_text',
  16. 'cachetime',
  17. );
  18. protected $default = array(
  19. 'rid' => '',
  20. 'description' => '',
  21. 'apiurl' => '',
  22. 'token' => '',
  23. 'default_text' => '',
  24. 'cachetime' => '0',
  25. );
  26. public function getByApiurl($apiurl) {
  27. return $this->query->where('apiurl', $apiurl)->get();
  28. }
  29. }