SimplePie_Registry::call() public WP 1.0
Call a static method for a type
{} Это метод класса: SimplePie_Registry{}
Хуков нет.
Возвращает
Разное
. Null. Ничего.
Использование
$SimplePie_Registry = new SimplePie_Registry(); $SimplePie_Registry->&call( $type, $method, $parameters );
- $type(строка) (обязательный)
- -
- $method(строка) (обязательный)
- -
- $parameters(массив)
- -
Код SimplePie_Registry::call() SimplePie Registry::call WP 5.7
public function &call($type, $method, $parameters = array())
{
$class = $this->get_class($type);
if (in_array($class, $this->legacy))
{
switch ($type)
{
case 'Cache':
// For backwards compatibility with old non-static
// Cache::create() methods
if ($method === 'get_handler')
{
$result = @call_user_func_array(array($class, 'create'), $parameters);
return $result;
}
break;
}
}
$result = call_user_func_array(array($class, $method), $parameters);
return $result;
}