@@ 147-156 (lines=10) @@ | ||
144 | * |
|
145 | * @return $this |
|
146 | */ |
|
147 | public function toUser() |
|
148 | { |
|
149 | if (func_num_args() > 0) { |
|
150 | $userIds = is_array(func_get_arg(0)) ? func_get_arg(0) : func_get_args(); |
|
151 | ||
152 | $this->to['touser'] = implode('|', $userIds); |
|
153 | } |
|
154 | ||
155 | return $this; |
|
156 | } |
|
157 | ||
158 | /** |
|
159 | * Message target party. |
|
@@ 163-172 (lines=10) @@ | ||
160 | * |
|
161 | * @return $this |
|
162 | */ |
|
163 | public function toParty() |
|
164 | { |
|
165 | if (func_num_args() > 0) { |
|
166 | $partyIds = is_array(func_get_arg(0)) ? func_get_arg(0) : func_get_args(); |
|
167 | ||
168 | $this->to['toparty'] = implode('|', $partyIds); |
|
169 | } |
|
170 | ||
171 | return $this; |
|
172 | } |
|
173 | ||
174 | /** |
|
175 | * Message target tag. |
|
@@ 179-188 (lines=10) @@ | ||
176 | * |
|
177 | * @return $this |
|
178 | */ |
|
179 | public function toTag() |
|
180 | { |
|
181 | if (func_num_args() > 0) { |
|
182 | $tagIds = is_array(func_get_arg(0)) ? func_get_arg(0) : func_get_args(); |
|
183 | ||
184 | $this->to['totag'] = implode('|', $tagIds); |
|
185 | } |
|
186 | ||
187 | return $this; |
|
188 | } |
|
189 | ||
190 | /** |
|
191 | * Use safe message. |