示例#1
0
 function render()
 {
     if ($_GET['button']) {
         return $this->js()->univ()->alert('Nothing happened :)')->execute();
     }
     parent::render();
 }
示例#2
0
文件: form.php 项目: nanomo/atk4-web
    function defaultTemplate(){
		$top_page=str_replace('page_','', get_class($this));
        if($this->api->page!=$top_page){
            // subpage
            $sub_page=str_replace($top_page.'_','',$this->api->page);
            return array('page/'.str_replace('_','/',$top_page).'/'.$sub_page);
        }
        return parent::defaultTemplate(); //array('page/'.str_replace('_','/',$this->api->page));
    }
示例#3
0
    function init()
    {
        parent::init();
        $dbl = $this->add('Doc_Filestore_Intro')->setName('Filestore_Intro')->set('type', 'misc')->set('descr', 'DBLite is a lightweight replacement for PEAR::DB. It provides basic functionality 
					for interraction with database.');
        $this->add('Doc_Filestore_File')->setName('Model_Filestore_File')->set('type', 'model')->set('descr', 'DSQL is implementation of dynamic queries. Using dynamic queries helps in easier modification of your
					SQL query as well as improved security. DSQL implements different queries such as selects, updates,
					deletes and others');
        //$this->add('Doc_Class') ->setName('DBLite_mysql_cluster') ;
    }
示例#4
0
    function init()
    {
        parent::init();
        $dbl = $this->add('Doc_Class_AbstractObject')->setName('AbstractObject')->set('type', 'abstract');
        $this->add('Doc_Class')->setName('AbstractView')->set('type', 'view')->set('descr', 'DSQL is implementation of dynamic queries. Using dynamic queries helps in easier modification of your
					SQL query as well as improved security. DSQL implements different queries such as selects, updates,
					deletes and others');
        $this->add('Doc_Class')->setName('DBLite_psql');
        $this->add('Doc_Class')->setName('DBLite_mysql');
        $this->add('Doc_Class')->setName('DBLite_mysql_cluster');
    }
示例#5
0
文件: in.php 项目: vikash124/atk4-web
 function init()
 {
     parent::init();
     $this->api->dbConnect();
 }
示例#6
0
 function init()
 {
     parent::init();
     $this->add('View', null, 'sidebar', array('page/whatsnew/sidebar'));
 }