phoneappversions.table.php 701 B

1234567891011121314151617181920
  1. <?php
  2. defined('IN_IA') or exit('Access Denied');
  3. class PhoneappversionsTable extends We7Table {
  4. protected $tableName = 'phoneapp_versions';
  5. protected $primaryKey = 'id';
  6. public function phoneappLatestVersion($uniacid) {
  7. return $this->query->from($this->tableName)->where('uniacid', $uniacid)->orderby('id', 'desc')->limit(4)->getall('id');
  8. }
  9. public function phoneappLastVersion($uniacid) {
  10. return $this->query->from($this->tableName)->where('uniacid', $uniacid)->orderby('id', 'desc')->limit(1)->get();
  11. }
  12. public function phoneappAllVersion($uniacid) {
  13. return $this->query->from($this->tableName)->where('uniacid', $uniacid)->orderby('id', 'desc')->getall();
  14. }
  15. }