Search moodle.org's
Developer Documentation

See Release Notes
Long Term Support Release

  • Bug fixes for general core bugs in 3.9.x will end* 10 May 2021 (12 months).
  • Bug fixes for security issues in 3.9.x will end* 8 May 2023 (36 months).
  • PHP version: minimum PHP 7.2.0 Note: minimum PHP version has increased since Moodle 3.8. PHP 7.3.x and 7.4.x are supported too.

Differences Between: [Versions 39 and 311] [Versions 39 and 400] [Versions 39 and 401] [Versions 39 and 402] [Versions 39 and 403]

SimplePie A PHP-Based RSS and Atom Feed Framework. Takes the hard work out of managing a complete RSS/Atom solution.

Author: Ryan Parman
Author: Geoffrey Sneddon
Author: Ryan McCue
Copyright: 2004-2016 Ryan Parman, Geoffrey Sneddon, Ryan McCue
License: http://www.opensource.org/licenses/bsd-license.php BSD License
File Size: 224 lines (6 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 1 class

SimplePie_Registry:: (5 methods):
  __construct()
  register()
  get_class()
  create()
  call()


Class: SimplePie_Registry  - X-Ref

Handles creating objects and calling methods

Access this via {@see SimplePie::get_registry()}

__construct()   X-Ref
Constructor

No-op

register($type, $class, $legacy = false)   X-Ref
Register a class

param: string $type See {@see $default} for names
param: string $class Class name, must subclass the corresponding default
param: bool $legacy Whether to enable legacy support for this class
return: bool Successfulness

get_class($type)   X-Ref
Get the class registered for a type

Where possible, use {@see create()} or {@see call()} instead

param: string $type
return: string|null

create($type, $parameters = array()   X-Ref
Create a new instance of a given type

param: string $type
param: array $parameters Parameters to pass to the constructor
return: object Instance of class

call($type, $method, $parameters = array()   X-Ref
Call a static method for a type

param: string $type
param: string $method
param: array $parameters
return: mixed