Révision ed9a13f1
Ajouté par Assos Assos il y a presque 4 ans
drupal7/sites/all/modules/feeds/plugins/FeedsFetcher.inc | ||
---|---|---|
202 | 202 |
} |
203 | 203 |
|
204 | 204 |
/** |
205 |
* Sanitize the raw content string. Currently supported sanitizations:
|
|
205 |
* Sanitize the raw content string. |
|
206 | 206 |
* |
207 |
* Currently supported sanitizations: |
|
207 | 208 |
* - Remove BOM header from UTF-8 files. |
208 | 209 |
* |
209 | 210 |
* Consider using ::sanitizeRawOptimized() instead that receives the variable |
... | ... | |
223 | 224 |
} |
224 | 225 |
|
225 | 226 |
/** |
226 |
* Sanitize the raw content string. Currently supported sanitizations:
|
|
227 |
* Sanitize the raw content string. |
|
227 | 228 |
* |
229 |
* Currently supported sanitizations: |
|
228 | 230 |
* - Remove BOM header from UTF-8 files. |
229 | 231 |
* |
230 | 232 |
* This accepts the raw contents by reference to prevent having the whole raw |
... | ... | |
244 | 246 |
} |
245 | 247 |
|
246 | 248 |
/** |
247 |
* Sanitize the file in place. Currently supported sanitizations:
|
|
249 |
* Sanitize the file in place. |
|
248 | 250 |
* |
251 |
* Currently supported sanitizations: |
|
249 | 252 |
* - Remove BOM header from UTF-8 files. |
250 | 253 |
* |
251 | 254 |
* @param string $filepath |
... | ... | |
280 | 283 |
|
281 | 284 |
return $filepath; |
282 | 285 |
} |
286 |
|
|
283 | 287 |
} |
284 | 288 |
|
285 | 289 |
/** |
... | ... | |
307 | 311 |
* @return |
308 | 312 |
* A FeedsFetcherResult object. |
309 | 313 |
*/ |
310 |
public abstract function fetch(FeedsSource $source);
|
|
314 |
abstract public function fetch(FeedsSource $source);
|
|
311 | 315 |
|
312 | 316 |
/** |
313 | 317 |
* Clear all caches for results for given source. |
... | ... | |
350 | 354 |
/** |
351 | 355 |
* Menu item definition for fetchers of this class. Note how the path |
352 | 356 |
* component in the item definition matches the return value of |
353 |
* FeedsFetcher::path();
|
|
357 |
* FeedsFetcher::path().
|
|
354 | 358 |
* |
355 | 359 |
* Requests to this menu item will be routed to FeedsFetcher::request(). |
356 | 360 |
* |
... | ... | |
366 | 370 |
'access callback' => TRUE, |
367 | 371 |
'file' => 'feeds.pages.inc', |
368 | 372 |
'type' => MENU_CALLBACK, |
369 |
),
|
|
370 |
);
|
|
373 |
), |
|
374 |
); |
|
371 | 375 |
} |
372 | 376 |
|
373 | 377 |
/** |
... | ... | |
406 | 410 |
* A FeedsSource object. |
407 | 411 |
*/ |
408 | 412 |
public function afterImport(FeedsSource $source) {} |
413 |
|
|
409 | 414 |
} |
Formats disponibles : Unified diff
Weekly update of contrib modules