phoneapp.account.class.php 1.1 KB

123456789101112131415161718192021222324252627282930313233
  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. defined('IN_IA') or exit('Access Denied');
  7. class PhoneappAccount extends WeAccount {
  8. public function __construct($account = array()) {
  9. $this->menuFrame = 'phoneapp';
  10. $this->type = ACCOUNT_TYPE_PHONEAPP_NORMAL;
  11. $this->typeName = 'PHONEAPP';
  12. $this->typeTempalte = '-phoneapp';
  13. }
  14. public function checkIntoManage() {
  15. if (empty($this->account) || (!empty($this->uniaccount['account']) && $this->uniaccount['type'] != ACCOUNT_TYPE_PHONEAPP_NORMAL && !defined('IN_MODULE'))) {
  16. return false;
  17. }
  18. return true;
  19. }
  20. public function fetchAccountInfo() {
  21. $account_table = table('account');
  22. $account = $account_table->getPhoneappAccount($this->uniaccount['acid']);
  23. return $account;
  24. }
  25. public function accountDisplayUrl() {
  26. return url('phoneapp/display');
  27. }
  28. }