Exemplo n.º 1
0
 public static function use_boundable_javascripts()
 {
     $path = apf_classname_to_path(__CLASS__);
     $javascript = array($path . 'Propview.js');
     $request = APF::get_instance()->get_request();
     $pageType = $request->get_attribute('pageType');
     if ($pageType == 'hz') {
         $javascript[] = $path . 'PropViewHz.js';
     }
     return array_merge(parent::use_boundable_javascripts(), $javascript);
 }
Exemplo n.º 2
0
 public static function use_boundable_javascripts()
 {
     //todo 单独资源加载的时候没有设置对应controller的变量,下面的实现无效
     $apf = APF::get_instance();
     $request = $apf->get_request();
     $attributes = $request->get_attributes();
     switch ($attributes['business']) {
         case 'ajk':
             $path = apf_classname_to_path(__CLASS__);
             return array_merge(parent::use_boundable_javascripts(), array(array('BrokerCommon.js', PHP_INT_MAX), $path . 'ManageAjk.js'));
             break;
         case 'hz':
             $path = apf_classname_to_path(__CLASS__);
             return array_merge(parent::use_boundable_javascripts(), array(array('BrokerCommon.js', PHP_INT_MAX), $path . 'ManageHz.js'));
             break;
         case 'jp':
             $path = apf_classname_to_path(__CLASS__);
             return array_merge(parent::use_boundable_javascripts(), array(array('BrokerCommon.js', PHP_INT_MAX), $path . 'ManageJp.js'));
             break;
         default:
             return false;
     }
 }
Exemplo n.º 3
0
 public static function use_boundable_javascripts()
 {
     $path = apf_classname_to_path(__CLASS__);
     return array_merge(parent::use_boundable_javascripts(), array($path . 'Hammer.js'));
 }
Exemplo n.º 4
0
 public static function use_boundable_javascripts()
 {
     $path = apf_classname_to_path(__CLASS__);
     $script = 'JpOfficeSale';
     return array_merge(parent::use_boundable_javascripts(), array($path . 'Publish' . $script . '.js'));
 }
Exemplo n.º 5
0
 public static function use_boundable_javascripts()
 {
     $path = apf_classname_to_path(__CLASS__);
     return array_merge(parent::use_boundable_javascripts(), array(array('BrokerCommon.js', PHP_INT_MAX), $path . 'Set.js'));
 }
Exemplo n.º 6
0
 public static function use_boundable_javascripts()
 {
     $path = apf_classname_to_path(__CLASS__);
     return array_merge(parent::use_boundable_javascripts(), array($path . "AnjukeMap.js", $path . "CorrectMap.js"));
 }
 public static function use_boundable_javascripts()
 {
     $path = apf_classname_to_path(__CLASS__);
     return array_merge(parent::use_boundable_javascripts(), array($path . "CommunityApplyGardeners.js"));
 }
Exemplo n.º 8
0
 public static function use_boundable_javascripts()
 {
     $path = apf_classname_to_path(__CLASS__);
     return array_merge(parent::use_boundable_javascripts(), array($path . "BrokerShare.js", $path . "Login.js"));
 }