MagpieRSS::append()
smart append - field and namespace aware
Метод класса: MagpieRSS{}
Хуков нет.
Возвращает
null
. Ничего (null).
Использование
$MagpieRSS = new MagpieRSS(); $MagpieRSS->append( $el, $text );
- $el (обязательный)
- -
- $text (обязательный)
- -
Код MagpieRSS::append() MagpieRSS::append WP 6.5.2
function append($el, $text) { if (!$el) { return; } if ( $this->current_namespace ) { if ( $this->initem ) { $this->concat( $this->current_item[ $this->current_namespace ][ $el ], $text); } elseif ($this->inchannel) { $this->concat( $this->channel[ $this->current_namespace][ $el ], $text ); } elseif ($this->intextinput) { $this->concat( $this->textinput[ $this->current_namespace][ $el ], $text ); } elseif ($this->inimage) { $this->concat( $this->image[ $this->current_namespace ][ $el ], $text ); } } else { if ( $this->initem ) { $this->concat( $this->current_item[ $el ], $text); } elseif ($this->intextinput) { $this->concat( $this->textinput[ $el ], $text ); } elseif ($this->inimage) { $this->concat( $this->image[ $el ], $text ); } elseif ($this->inchannel) { $this->concat( $this->channel[ $el ], $text ); } } }