Lines Matching refs:class
51 class SimplePie_Registry
54 * Default class mapping
106 * Register a class
109 * @param string $class Class name, must subclass the corresponding default
110 * @param bool $legacy Whether to enable legacy support for this class
113 public function register($type, $class, $legacy = false)
115 if (!@is_subclass_of($class, $this->default[$type]))
120 $this->classes[$type] = $class;
124 $this->legacy[] = $class;
131 * Get the class registered for a type
157 * @return object Instance of class
161 $class = $this->get_class($type);
163 if (in_array($class, $this->legacy))
176 if (!method_exists($class, '__construct'))
178 $instance = new $class;
182 $reflector = new ReflectionClass($class);
203 $class = $this->get_class($type);
205 if (in_array($class, $this->legacy))
214 $result = @call_user_func_array(array($class, 'create'), $parameters);
221 $result = call_user_func_array(array($class, $method), $parameters);