1
|
|
|
<?php namespace JobApis\Jobs\Client\Queries; |
2
|
|
|
|
3
|
|
|
class CareerjetQuery extends AbstractQuery |
4
|
|
|
{ |
5
|
|
|
/** |
6
|
|
|
* affid |
7
|
|
|
* |
8
|
|
|
* @var string |
9
|
|
|
*/ |
10
|
|
|
protected $affid; |
11
|
|
|
|
12
|
|
|
/** |
13
|
|
|
* locale_code |
14
|
|
|
* |
15
|
|
|
* Available locales: |
16
|
|
|
* |
17
|
|
|
* LOCALE LANGUAGE DEFAULT LOCATION CAREERJET SITE |
18
|
|
|
* cs_CZ Czech Czech Republic http://www.careerjet.cz |
19
|
|
|
* da_DK Danish Denmark http://www.careerjet.dk |
20
|
|
|
* de_AT German Austria http://www.careerjet.at |
21
|
|
|
* de_CH German Switzerland http://www.careerjet.ch |
22
|
|
|
* de_DE German Germany http://www.careerjet.de |
23
|
|
|
* en_AE English United Arab Emirates http://www.careerjet.ae |
24
|
|
|
* en_AU English Australia http://www.careerjet.com.au |
25
|
|
|
* en_CA English Canada http://www.careerjet.ca |
26
|
|
|
* en_CN English China http://www.career-jet.cn |
27
|
|
|
* en_HK English Hong Kong http://www.careerjet.hk |
28
|
|
|
* en_IE English Ireland http://www.careerjet.ie |
29
|
|
|
* en_IN English India http://www.careerjet.co.in |
30
|
|
|
* en_MY English Malaysia http://www.careerjet.com.my |
31
|
|
|
* en_NZ English New Zealand http://www.careerjet.co.nz |
32
|
|
|
* en_OM English Oman http://www.careerjet.com.om |
33
|
|
|
* en_PH English Philippines http://www.careerjet.ph |
34
|
|
|
* en_PK English Pakistan http://www.careerjet.com.pk |
35
|
|
|
* en_QA English Qatar http://www.careerjet.com.qa |
36
|
|
|
* en_SG English Singapore http://www.careerjet.sg |
37
|
|
|
* en_GB English United Kingdom http://www.careerjet.com |
38
|
|
|
* en_US English United States http://www.careerjet.com |
39
|
|
|
* en_ZA English South Africa http://www.careerjet.co.za |
40
|
|
|
* en_TW English Taiwan http://www.careerjet.com.tw |
41
|
|
|
* en_VN English Vietnam http://www.careerjet.vn |
42
|
|
|
* es_AR Spanish Argentina http://www.opcionempleo.com.ar |
43
|
|
|
* es_BO Spanish Bolivia http://www.opcionempleo.com.bo |
44
|
|
|
* es_CL Spanish Chile http://www.opcionempleo.cl |
45
|
|
|
* es_CR Spanish Costa Rica http://www.opcionempleo.co.cr |
46
|
|
|
* es_DO Spanish Dominican Republic http://www.opcionempleo.com.do |
47
|
|
|
* es_EC Spanish Ecuador http://www.opcionempleo.ec |
48
|
|
|
* es_ES Spanish Spain http://www.opcionempleo.com |
49
|
|
|
* es_GT Spanish Guatemala http://www.opcionempleo.com.gt |
50
|
|
|
* es_MX Spanish Mexico http://www.opcionempleo.com.mx |
51
|
|
|
* es_PA Spanish Panama http://www.opcionempleo.com.pa |
52
|
|
|
* es_PE Spanish Peru http://www.opcionempleo.com.pe |
53
|
|
|
* es_PR Spanish Puerto Rico http://www.opcionempleo.com.pr |
54
|
|
|
* es_PY Spanish Paraguay http://www.opcionempleo.com.py |
55
|
|
|
* es_UY Spanish Uruguay http://www.opcionempleo.com.uy |
56
|
|
|
* es_VE Spanish Venezuela http://www.opcionempleo.com.ve |
57
|
|
|
* fi_FI Finnish Finland http://www.careerjet.fi |
58
|
|
|
* fr_CA French Canada http://www.option-carriere.ca |
59
|
|
|
* fr_BE French Belgium http://www.optioncarriere.be |
60
|
|
|
* fr_CH French Switzerland http://www.optioncarriere.ch |
61
|
|
|
* fr_FR French France http://www.optioncarriere.com |
62
|
|
|
* fr_LU French Luxembourg http://www.optioncarriere.lu |
63
|
|
|
* fr_MA French Morocco http://www.optioncarriere.ma |
64
|
|
|
* hu_HU Hungarian Hungary http://www.careerjet.hu |
65
|
|
|
* it_IT Italian Italy http://www.careerjet.it |
66
|
|
|
* ja_JP Japanese Japan http://www.careerjet.jp |
67
|
|
|
* ko_KR Korean Korea http://www.careerjet.co.kr |
68
|
|
|
* nl_BE Dutch Belgium http://www.careerjet.be |
69
|
|
|
* nl_NL Dutch Netherlands http://www.careerjet.nl |
70
|
|
|
* no_NO Norwegian Norway http://www.careerjet.no |
71
|
|
|
* pl_PL Polish Poland http://www.careerjet.pl |
72
|
|
|
* pt_PT Portuguese Portugal http://www.careerjet.pt |
73
|
|
|
* pt_BR Portuguese Brazil http://www.careerjet.com.br |
74
|
|
|
* ru_RU Russian Russia http://www.careerjet.ru |
75
|
|
|
* ru_UA Russian Ukraine http://www.careerjet.com.ua |
76
|
|
|
* sv_SE Swedish Sweden http://www.careerjet.se |
77
|
|
|
* sk_SK Slovak Slovakia http://www.careerjet.sk |
78
|
|
|
* tr_TR Turkish Turkey http://www.careerjet.com.tr |
79
|
|
|
* uk_UA Ukrainian Ukraine http://www.careerjet.ua |
80
|
|
|
* vi_VN Vietnamese Vietnam http://www.careerjet.com.vn |
81
|
|
|
* zh_CN Chinese China http://www.careerjet.cn |
82
|
|
|
* |
83
|
|
|
* @var string |
84
|
|
|
*/ |
85
|
|
|
protected $locale_code; |
86
|
|
|
|
87
|
|
|
/** |
88
|
|
|
* keywords |
89
|
|
|
* |
90
|
|
|
* The search query. |
91
|
|
|
* |
92
|
|
|
* @var string |
93
|
|
|
*/ |
94
|
|
|
protected $keywords; |
95
|
|
|
|
96
|
|
|
/** |
97
|
|
|
* location |
98
|
|
|
* |
99
|
|
|
* Examples: 'London', 'Paris' |
100
|
|
|
* |
101
|
|
|
* @var string |
102
|
|
|
*/ |
103
|
|
|
protected $location; |
104
|
|
|
|
105
|
|
|
/** |
106
|
|
|
* sort |
107
|
|
|
* |
108
|
|
|
* Available values are 'relevance' (default), 'date', and 'salary'. |
109
|
|
|
* |
110
|
|
|
* @var string |
111
|
|
|
*/ |
112
|
|
|
protected $sort; |
113
|
|
|
|
114
|
|
|
/** |
115
|
|
|
* start_num |
116
|
|
|
* |
117
|
|
|
* Num of first offer returned in entire result space should be >= 1 |
118
|
|
|
* and <= Number of hits |
119
|
|
|
* |
120
|
|
|
* @var integer |
121
|
|
|
*/ |
122
|
|
|
protected $start_num; |
123
|
|
|
|
124
|
|
|
/** |
125
|
|
|
* pagesize |
126
|
|
|
* |
127
|
|
|
* Number of offers returned in one call, default: 20 |
128
|
|
|
* |
129
|
|
|
* @var integer |
130
|
|
|
*/ |
131
|
|
|
protected $pagesize; |
132
|
|
|
|
133
|
|
|
/** |
134
|
|
|
* page |
135
|
|
|
* |
136
|
|
|
* Current page number (should be >=1). If set, will override start_num. |
137
|
|
|
* |
138
|
|
|
* @var integer |
139
|
|
|
*/ |
140
|
|
|
protected $page; |
141
|
|
|
|
142
|
|
|
/** |
143
|
|
|
* contracttype |
144
|
|
|
* |
145
|
|
|
* Character code for contract types: |
146
|
|
|
* 'p' - permanent job |
147
|
|
|
* 'c' - contract |
148
|
|
|
* 't' - temporary |
149
|
|
|
* 'i' - training |
150
|
|
|
* 'v' - voluntary |
151
|
|
|
* |
152
|
|
|
* @var string |
153
|
|
|
*/ |
154
|
|
|
protected $contracttype; |
155
|
|
|
|
156
|
|
|
/** |
157
|
|
|
* contractperiod |
158
|
|
|
* |
159
|
|
|
* Character code for contract contract periods: |
160
|
|
|
* 'f' - Full time |
161
|
|
|
* 'p' - Part time |
162
|
|
|
* |
163
|
|
|
* @var string |
164
|
|
|
*/ |
165
|
|
|
protected $contractperiod; |
166
|
|
|
|
167
|
|
|
/** |
168
|
|
|
* Get baseUrl |
169
|
|
|
* |
170
|
|
|
* @return string Value of the base url to this api |
171
|
|
|
*/ |
172
|
6 |
|
public function getBaseUrl() |
173
|
|
|
{ |
174
|
6 |
|
return 'http://public.api.careerjet.net/search'; |
175
|
|
|
} |
176
|
|
|
|
177
|
|
|
/** |
178
|
|
|
* Get keyword |
179
|
|
|
* |
180
|
|
|
* @return string Attribute being used as the search keyword |
181
|
|
|
*/ |
182
|
4 |
|
public function getKeyword() |
183
|
|
|
{ |
184
|
4 |
|
return $this->keywords; |
185
|
|
|
} |
186
|
|
|
|
187
|
|
|
/** |
188
|
|
|
* Required parameters |
189
|
|
|
* |
190
|
|
|
* @return array |
191
|
|
|
*/ |
192
|
6 |
|
protected function requiredAttributes() |
193
|
|
|
{ |
194
|
|
|
return [ |
195
|
|
|
'affid' |
196
|
6 |
|
]; |
197
|
|
|
} |
198
|
|
|
|
199
|
20 |
|
protected function defaultAttributes() |
200
|
|
|
{ |
201
|
|
|
return [ |
202
|
20 |
|
'locale_code' => 'en_US', |
203
|
20 |
|
]; |
204
|
|
|
} |
205
|
|
|
} |
206
|
|
|
|