Projet

Général

Profil

Révision ed9a13f1

Ajouté par Assos Assos il y a plus de 3 ans

Weekly update of contrib modules

Voir les différences:

drupal7/sites/all/modules/feeds/plugins/FeedsPlugin.inc
178 178
      $files = drupal_system_listing('/.*\.inc$/', $path, 'name', 0);
179 179
      foreach ($files as $file) {
180 180
        if (strstr($file->uri, '/mappers/')) {
181
          require_once(DRUPAL_ROOT . '/' . $file->uri);
181
          require_once DRUPAL_ROOT . '/' . $file->uri;
182 182
        }
183 183
      }
184 184
    }
......
299 299

  
300 300
    return $dependencies;
301 301
  }
302

  
302 303
}
303 304

  
304 305
/**
305 306
 * Used when a plugin is missing.
306 307
 */
307 308
class FeedsMissingPlugin extends FeedsPlugin {
309

  
310
  /**
311
   * {@inheritdoc}
312
   */
308 313
  public function pluginType() {
309 314
    return 'missing';
310 315
  }
311 316

  
317
  /**
318
   * {@inheritdoc}
319
   */
312 320
  public function save() {}
313 321

  
314 322
  /**
......
318 326
    return new FeedsFetcherResult('');
319 327
  }
320 328

  
329
  /**
330
   * {@inheritdoc}
331
   */
321 332
  public function clear(FeedsSource $source) {}
322 333

  
334
  /**
335
   * {@inheritdoc}
336
   */
323 337
  public function request($feed_nid = 0) {
324 338
    drupal_access_denied();
325 339
  }
326 340

  
341
  /**
342
   * {@inheritdoc}
343
   */
327 344
  public function menuItem() {
328 345
    return array();
329 346
  }
330 347

  
348
  /**
349
   * {@inheritdoc}
350
   */
331 351
  public function subscribe(FeedsSource $source) {}
332 352

  
353
  /**
354
   * {@inheritdoc}
355
   */
333 356
  public function unsubscribe(FeedsSource $source) {}
334 357

  
358
  /**
359
   * {@inheritdoc}
360
   */
335 361
  public function importPeriod(FeedsSource $source) {}
336 362

  
337 363
  /**
......
341 367
    return new FeedsParserResult();
342 368
  }
343 369

  
370
  /**
371
   * {@inheritdoc}
372
   */
344 373
  public function getMappingSources() {
345 374
    return array();
346 375
  }
......
350 379
   */
351 380
  public function process(FeedsSource $source, FeedsParserResult $parser_result) {}
352 381

  
382
  /**
383
   * {@inheritdoc}
384
   */
353 385
  public function entityType() {}
354 386

  
387
  /**
388
   * {@inheritdoc}
389
   */
355 390
  public function bundle() {}
356 391

  
392
  /**
393
   * {@inheritdoc}
394
   */
357 395
  public function bundleOptions() {
358 396
    return array();
359 397
  }
360 398

  
399
  /**
400
   * {@inheritdoc}
401
   */
361 402
  public function getLimit() {
362 403
    return 0;
363 404
  }
364 405

  
406
  /**
407
   * {@inheritdoc}
408
   */
365 409
  public function getMappings() {
366 410
    return array();
367 411
  }
368 412

  
413
  /**
414
   * {@inheritdoc}
415
   */
369 416
  public function getMappingTargets() {
370 417
    return array();
371 418
  }
372 419

  
420
  /**
421
   * {@inheritdoc}
422
   */
373 423
  public function expire(FeedsSource $source, $time = NULL) {}
374 424

  
425
  /**
426
   * {@inheritdoc}
427
   */
375 428
  public function itemCount(FeedsSource $source) {
376 429
    return 0;
377 430
  }
378 431

  
432
  /**
433
   * {@inheritdoc}
434
   */
379 435
  public function expiryTime() {
380 436
    return FEEDS_EXPIRE_NEVER;
381 437
  }

Formats disponibles : Unified diff