downloads | documentation | faq | getting help | mailing lists | licenses | wiki | reporting bugs | php.net sites | conferences | my php.net

search for in the

Yaf_View_Simple::__construct> <Yaf_View_Simple::assignRef
[edit] Last updated: Fri, 17 May 2013

view this page in

Yaf_View_Simple::clear

(Yaf >=2.2.0)

Yaf_View_Simple::clear代入した値をクリアする

説明

public bool Yaf_View_Simple::clear ([ string $name ] )

警告

この関数は、 現在のところ詳細な情報はありません。引数のリストのみが 記述されています。

パラメータ

name

代入した変数名。

空の場合は、すべての変数をクリアします。

返り値

例1 Yaf_View_Simple::clear() の例

<?php
class IndexController extends Yaf_Controller_Abstract {
    public function 
indexAction() {
        
$this->getView()->clear("foo")->clear("bar"); // "foo" と "bar" をクリアします
        
$this->_view->clear(); // すべての変数をクリアします
    
}
?>

参考



add a note add a note User Contributed Notes Yaf_View_Simple::clear - [0 notes]
There are no user contributed notes for this page.

 
show source | credits | sitemap | contact | advertising | mirror sites