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); }
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; } }
public static function use_boundable_javascripts() { $path = apf_classname_to_path(__CLASS__); return array_merge(parent::use_boundable_javascripts(), array($path . 'Hammer.js')); }
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')); }
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')); }
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")); }
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")); }