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