Changeset 19447


Ignore:
Timestamp:
2010/11/07 03:00:37 (13 years ago)
Author:
miningbrownie
Message:

auto commit by watch

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/camp/camp-2_5-E/data/plugin/testPlugin1/TestPlugin1.php

    r19445 r19447  
    3535 
    3636    public function install(){ 
    37         $data = array( 
     37        $objQuery = new SC_Query(); 
     38 
     39        $arrPlugins = $objQuery->get("dtb_plugin", "plugin_id", "plugin_name = ?",array($name)); 
     40        if(count($arrPlugins) == 0){ 
     41            $data = array( 
    3842                      'plugin_name' => $objForm->getValue('plugin_name'), 
    3943                      'path' => realpath(DATA_DIR.'/plugin/'.$objForm->getValue('plugin_name').'/'), 
     
    4347                    'version' => $this->getVersion() 
    4448 
    45         ); 
    46         $objQuery = new SC_Query(); 
     49            ); 
     50        } 
    4751        $objQuery->insert("dtb_plugin", $data); 
    48          
    49          
     52 
     53 
    5054    } 
    5155 
Note: See TracChangeset for help on using the changeset viewer.