@@ 30-43 (lines=14) @@ | ||
27 | * @param int $groupId |
|
28 | * @return $this |
|
29 | */ |
|
30 | public function controlOne($count, $groupId) |
|
31 | { |
|
32 | $this->attributes[] = array( |
|
33 | 'group_info' => array( |
|
34 | 'filter' => array( |
|
35 | 'count' => $count |
|
36 | ), |
|
37 | 'group_id' => $groupId |
|
38 | ), |
|
39 | 'eid' => count($this->attributes)+1 |
|
40 | ); |
|
41 | ||
42 | return $this; |
|
43 | } |
|
44 | ||
45 | /** |
|
46 | * 控件2 |
|
@@ 81-92 (lines=12) @@ | ||
78 | * @param string $img |
|
79 | * @return Shelf $this |
|
80 | */ |
|
81 | public function controlThree($groupId, $img) |
|
82 | { |
|
83 | $this->attributes[] = array( |
|
84 | 'group_info' => array( |
|
85 | 'group_id' => $groupId, |
|
86 | 'img' => $img |
|
87 | ), |
|
88 | 'eid' => count($this->attributes)+1 |
|
89 | ); |
|
90 | ||
91 | return $this; |
|
92 | } |
|
93 | ||
94 | /** |
|
95 | * 控件4 |