Esempio n. 1
0
 protected function scriptFormat($moduleId)
 {
     Wind::import('SRV:design.bo.PwDesignModuleBo');
     $bo = new PwDesignModuleBo($moduleId);
     $module = $bo->getModule();
     if ($module['module_type'] != PwDesignModule::TYPE_SCRIPT) {
         exit('fail');
     }
     //$bo->setStdId();
     PwDesignModuleBo::$stdId = $moduleId;
     $key = Wekit::load('design.srv.display.PwDesignDisplay')->bindDataKey($moduleId);
     $data[$key] = $bo->getData(true);
     $this->forward->getWindView()->compileDir = 'DATA:compile.design.script.' . $moduleId;
     $this->setOutput($data, '__design_data');
     $this->setTemplate('TPL:design.api_script');
 }
Esempio n. 2
0
 /**
  * 为模版缓存id
  * 
  */
 public function setStdId()
 {
     self::$stdId = $this->moduleid;
 }