mobile_extends_data.php 1023 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. <?php
  2. if(!defined('IN_MOBILE_API')) {
  3. exit('Access Denied');
  4. }
  5. class extends_data {
  6. public $id;
  7. public $title;
  8. public $image;
  9. public $icon;
  10. public $poptype;
  11. public $popvalue;
  12. public $clicktype;
  13. public $clickvalue;
  14. public $field;
  15. public $list = array();
  16. public $page = 1;
  17. public $perpage = 50;
  18. public function __construct() {
  19. }
  20. public function common() {
  21. }
  22. public function insertrow() {
  23. $this->list[] = array(
  24. 'id' => $this->id,
  25. 'title' => $this->title,
  26. 'image' => $this->image,
  27. 'icon' => $this->icon,
  28. 'poptype' => $this->poptype,
  29. 'popvalue' => $this->popvalue,
  30. 'clicktype' => $this->clicktype,
  31. 'clickvalue' => $this->clickvalue,
  32. 'fields' => $this->field,
  33. );
  34. $this->field = array();
  35. }
  36. public function field($id, $icon, $value) {
  37. $this->field[] = array('id' => $id, 'icon' => $icon, 'value' => $value);
  38. }
  39. public function output() {
  40. return array(
  41. __CLASS__ => array('page' => $this->page, 'perpage' => $this->perpage, 'list' => $this->list)
  42. );
  43. }
  44. }
  45. ?>