人人商城

phoneapp.account.class.php 1018B

12345678910111213141516171819202122232425262728293031323334
  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->typeSign = PHONEAPP_TYPE_SIGN;
  12. $this->typeName = 'APP';
  13. $this->typeTempalte = '-phoneapp';
  14. }
  15. public function checkIntoManage() {
  16. if (empty($this->account) || (!empty($this->uniaccount['account']) && $this->uniaccount['type'] != ACCOUNT_TYPE_PHONEAPP_NORMAL && !defined('IN_MODULE'))) {
  17. return false;
  18. }
  19. return true;
  20. }
  21. public function fetchAccountInfo() {
  22. $account_table = table('account');
  23. $account = $account_table->getPhoneappAccount($this->uniaccount['acid']);
  24. return $account;
  25. }
  26. public function accountDisplayUrl() {
  27. return url('account/display', array('type' => PHONEAPP_TYPE_SIGN));
  28. }
  29. }