SimplePie::set_raw_data()
Set the raw XML data to parse
Allows you to use a string of RSS/Atom data instead of a remote feed.
If you have a feed available as a string in PHP, you can tell SimplePie to parse that data string instead of a remote feed. Any set feed URL takes precedence.
Метод класса: SimplePie{}
Хуков нет.
Возвращает
null
. Ничего (null).
Использование
$SimplePie = new SimplePie(); $SimplePie->set_raw_data( $data );
- $data(строка) (обязательный)
- RSS or Atom data as a string.
Заметки
- Смотрите: set_feed_url()
Список изменений
С версии 1.0 | Введена. |
С версии 1.0 | Beta 3 |
Код SimplePie::set_raw_data() SimplePie::set raw data WP 6.5.2
public function set_raw_data($data) { $this->raw_data = $data; }