コード例 #1
0
ファイル: Propview.php プロジェクト: emilymwang8/ajk-broker
 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);
 }
コード例 #2
0
ファイル: Manage.php プロジェクト: emilymwang8/ajk-broker
 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;
     }
 }
コード例 #3
0
ファイル: Hammer.php プロジェクト: emilymwang8/ajk-broker
 public static function use_boundable_javascripts()
 {
     $path = apf_classname_to_path(__CLASS__);
     return array_merge(parent::use_boundable_javascripts(), array($path . 'Hammer.js'));
 }
コード例 #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'));
 }
コード例 #5
0
ファイル: Set.php プロジェクト: emilymwang8/ajk-broker
 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'));
 }
コード例 #6
0
ファイル: CorrectMap.php プロジェクト: emilymwang8/ajk-broker
 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"));
 }
コード例 #7
0
 public static function use_boundable_javascripts()
 {
     $path = apf_classname_to_path(__CLASS__);
     return array_merge(parent::use_boundable_javascripts(), array($path . "CommunityApplyGardeners.js"));
 }
コード例 #8
0
ファイル: Login.php プロジェクト: emilymwang8/ajk-broker
 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"));
 }