1 | <?php |
||
24 | class Thread extends \hipanel\base\Model |
||
25 | { |
||
26 | use \hipanel\base\ModelTrait; |
||
27 | |||
28 | public static $i18nDictionary = 'hipanel:ticket'; |
||
29 | |||
30 | const STATE_OPEN = 'opened'; |
||
31 | const STATE_CLOSE = 'closed'; |
||
32 | |||
33 | public $search_form; |
||
34 | |||
35 | public function init() |
||
40 | |||
41 | public function beforeChange($event) |
||
48 | |||
49 | /** |
||
50 | * @return array |
||
51 | */ |
||
52 | public function behaviors() |
||
63 | |||
64 | /** |
||
65 | * @return array |
||
66 | */ |
||
67 | public function attributes() |
||
123 | |||
124 | /** |
||
125 | * {@inheritdoc} |
||
126 | */ |
||
127 | public function rules() |
||
172 | |||
173 | /** |
||
174 | * {@inheritdoc} |
||
175 | */ |
||
176 | public function attributeLabels() |
||
177 | { |
||
178 | return $this->mergeAttributeLabels([ |
||
179 | 'author' => Yii::t('hipanel:ticket', 'Author'), |
||
180 | 'author_id' => Yii::t('hipanel:ticket', 'Author'), |
||
181 | 'recipient' => Yii::t('hipanel:ticket', 'Recipient'), |
||
182 | 'is_private' => Yii::t('hipanel:ticket', 'Make private'), |
||
183 | 'responsible' => Yii::t('hipanel:ticket', 'Assignee'), |
||
184 | 'responsible_id' => Yii::t('hipanel:ticket', 'Assignee'), |
||
185 | 'spent' => Yii::t('hipanel:ticket', 'Spent time'), |
||
186 | 'create_time' => Yii::t('hipanel:ticket', 'Created'), |
||
187 | 'a_reply_time' => Yii::t('hipanel:ticket', 'a_reply_time'), |
||
188 | 'file' => Yii::t('hipanel:ticket', 'Files'), |
||
189 | 'lastanswer' => Yii::t('hipanel:ticket', 'Last answer'), |
||
190 | 'author_seller' => Yii::t('hipanel:ticket', 'Seller'), |
||
191 | ]); |
||
192 | } |
||
193 | |||
194 | public function getClient() |
||
198 | |||
199 | public function getClient_id() |
||
200 | { |
||
201 | return $this->author_id; |
||
202 | } |
||
203 | |||
204 | public function getSeller() |
||
208 | |||
209 | public function getSeller_id() |
||
210 | { |
||
211 | return $this->author_seller_id; |
||
212 | } |
||
213 | |||
214 | public function getThreadUrl() |
||
218 | |||
219 | public static function parseMessage($message) |
||
226 | |||
227 | public function prepareSpentTime() |
||
231 | |||
232 | public function prepareTopic() |
||
236 | |||
237 | public function getWatchersLogin() |
||
247 | |||
248 | public function xFormater(array $items) |
||
260 | |||
261 | public function getAnswers() |
||
266 | |||
267 | /** |
||
268 | * Returns array of client types, that can be set as responsible for the thread. |
||
269 | * |
||
270 | * @return array |
||
271 | */ |
||
272 | public static function getResponsibleClientTypes() |
||
276 | |||
277 | /** |
||
278 | * @param integer $id |
||
279 | * @param bool $throwOnError whether to throw an exception when answer is not found in thread |
||
280 | * @throws NotFoundHttpException |
||
281 | * @return Answer |
||
282 | */ |
||
283 | public function getAnswer($id, $throwOnError = true) |
||
291 | |||
292 | public function getMaxAnswerId() |
||
300 | |||
301 | public function scenarioCommands() |
||
308 | } |
||
309 |
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.