Prado\Web\UI\ActiveControls\TCallbackClientScript::replace PHP 메소드

replace() 보호된 메소드

Replace the content of an element with new content. The new content can be a string or a TControl component. If the content parameter is a TControl component, its rendered method will be called and its contents will be used for replacement.
또한 보기: insertAbout
또한 보기: insertBelow
또한 보기: insertBefore
또한 보기: insertAfter
protected replace ( $element, $content, $self )
    protected function replace($element, $content, $self)
    {
        if ($content instanceof TControl) {
            $boundary = $this->getRenderedContentBoundary($content);
            $content = null;
        } else {
            if ($content instanceof THtmlWriter) {
                $boundary = $this->getResponseContentBoundary($content);
                $content = null;
            } else {
                $boundary = null;
            }
        }
        $this->callClientFunction('Prado.Element.replace', array($element, $content, $boundary, $self));
    }