当前位置: 首页>>代码示例>>PHP>>正文


PHP apf_classname_to_path函数代码示例

本文整理汇总了PHP中apf_classname_to_path函数的典型用法代码示例。如果您正苦于以下问题:PHP apf_classname_to_path函数的具体用法?PHP apf_classname_to_path怎么用?PHP apf_classname_to_path使用的例子?那么, 这里精选的函数代码示例或许可以为您提供帮助。


在下文中一共展示了apf_classname_to_path函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: use_javascripts

 public static function use_javascripts()
 {
     $apf = APF::get_instance()->get_request();
     $path = apf_classname_to_path(__CLASS__);
     $pageType = $apf->get_attribute('pageType');
     $script = array($path . 'HouseManageV2.js');
     return array_merge(parent::use_javascripts(), $script);
 }
开发者ID:emilymwang8,项目名称:ajk-broker,代码行数:8,代码来源:HouseManageV2.php

示例2: use_javascripts

 public static function use_javascripts()
 {
     $apf = APF::get_instance()->get_request();
     $path = apf_classname_to_path(__CLASS__);
     $pageType = $apf->get_attribute('pageType');
     $script = array($path . 'HouseManage.js', PageHelper::pure_static_url("/js/jquery.cookie.js"));
     if ($pageType == 'ajk') {
         $script = array($path . 'HouseManageAjk.js');
     }
     return array_merge(parent::use_javascripts(), $script);
 }
开发者ID:emilymwang8,项目名称:ajk-broker,代码行数:11,代码来源:HouseManage.php

示例3: use_boundable_styles

 public static function use_boundable_styles()
 {
     $path = apf_classname_to_path(__CLASS__);
     $request = APF::get_instance()->get_request();
     $pageType = $request->get_attribute('pageType');
     $style = array($path . 'Proplist.css');
     if ($pageType == 'ajk') {
         $style = array($path . 'ProplistAjk.css');
     }
     return array_merge(parent::use_boundable_styles(), $style);
 }
开发者ID:emilymwang8,项目名称:ajk-broker,代码行数:11,代码来源:Proplist.php

示例4: real_component

 public function real_component()
 {
     $view = $this->get_view();
     if ($view) {
         $file = "component/" . apf_classname_to_path(get_class($this)) . $view . '.phtml';
         global $G_LOAD_PATH;
         foreach ($G_LOAD_PATH as $path) {
             if (file_exists($path . $file)) {
                 $this->render($path . $file);
                 break;
             }
         }
     }
 }
开发者ID:uedcw,项目名称:webstory,代码行数:14,代码来源:DecoratorComponent.php

示例5: real_page

 public function real_page()
 {
     $view = $this->get_view();
     if ($view) {
         $file = "page/" . apf_classname_to_path(get_class($this)) . $view . ".phtml";
         global $G_LOAD_PATH;
         foreach ($G_LOAD_PATH as $path) {
             if (file_exists($path . $file)) {
                 $this->render($path . $file, FALSE);
                 break;
             }
         }
     }
 }
开发者ID:rh20083907,项目名称:ipublish,代码行数:14,代码来源:DecoratorPage.php

示例6: use_boundable_styles

 public static function use_boundable_styles()
 {
     //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_styles(), array($path . 'ManageAjk.css'));
             break;
         case 'hz':
             $path = apf_classname_to_path(__CLASS__);
             return array_merge(parent::use_boundable_styles(), array($path . 'ManageHz.css'));
             break;
         case 'jp':
             $path = apf_classname_to_path(__CLASS__);
             return array_merge(parent::use_boundable_styles(), array($path . 'ManageJp.css'));
             break;
         default:
             return false;
     }
 }
开发者ID:emilymwang8,项目名称:ajk-broker,代码行数:23,代码来源:Manage.php

示例7: use_boundable_javascripts

 public static function use_boundable_javascripts()
 {
     $path = apf_classname_to_path(__CLASS__);
     return array($path . "common.js", $path . "Dialog.js");
 }
开发者ID:emilymwang8,项目名称:ajk-broker,代码行数:5,代码来源:Dialog.php

示例8: use_boundable_javascripts

 public static function use_boundable_javascripts()
 {
     $path = apf_classname_to_path(__CLASS__);
     return array_merge(parent::use_boundable_javascripts(), array($path . "../js/highcharts/js/highcharts.js", $path . "../js/highcharts/js/modules/exporting.js", $path . "UserOnlineBug.js"));
 }
开发者ID:emilymwang8,项目名称:ibug,代码行数:5,代码来源:CustomOnlineBug.php

示例9: use_styles

 public static function use_styles()
 {
     $path = apf_classname_to_path(__CLASS__);
     return array_merge(parent::use_styles(), array($path . "Download.css", $path . "common.css"));
 }
开发者ID:emilymwang8,项目名称:supplierchannel,代码行数:5,代码来源:Download.php

示例10: use_styles

 public static function use_styles()
 {
     $path = apf_classname_to_path(__CLASS__);
     return array($path . "Debug.css");
 }
开发者ID:uedcw,项目名称:webstory,代码行数:5,代码来源:Debug.php

示例11: use_boundable_styles

 public static function use_boundable_styles()
 {
     $path = apf_classname_to_path(__CLASS__);
     return array_merge(parent::use_boundable_styles(), array($path . "User.css"));
 }
开发者ID:emilymwang8,项目名称:cms,代码行数:5,代码来源:RoleCount.php

示例12: use_boundable_styles

 public static function use_boundable_styles()
 {
     $path = apf_classname_to_path(__CLASS__);
     return array_merge(array($path . 'Register.css'));
 }
开发者ID:emilymwang8,项目名称:ajk-broker,代码行数:5,代码来源:Loginok.php

示例13: use_boundable_javascripts

 public static function use_boundable_javascripts()
 {
     $path = apf_classname_to_path(__CLASS__);
     return array_merge(parent::use_boundable_javascripts(), array(array($path . "WechatBase.js", PHP_INT_MAX)));
 }
开发者ID:emilymwang8,项目名称:ajk-broker,代码行数:5,代码来源:WechatBase.php

示例14: use_boundable_styles

 public static function use_boundable_styles()
 {
     $path = apf_classname_to_path(__CLASS__);
     return array($path . "BrokerRegisterFooter.css");
 }
开发者ID:emilymwang8,项目名称:ajk-broker,代码行数:5,代码来源:BrokerRegisterFooter.php

示例15: execute

 /**
  * 载入组件显示页面
  */
 public function execute()
 {
     $view = $this->get_view();
     if ($view) {
         $f = apf_classname_to_path(get_class($this)) . $view . '.phtml';
         $file = "component/" . $f;
         global $G_LOAD_PATH, $cached_files;
         if (defined('CACHE_PATH')) {
             $cf = apf_class_to_cache_file($f, "component");
             if (file_exists($cf)) {
                 $this->render($cf);
                 return;
             }
         }
         foreach ($G_LOAD_PATH as $path) {
             if (file_exists($path . $file)) {
                 $this->render($path . $file);
                 if (defined('CACHE_PATH')) {
                     apf_save_to_cache($f, "component", $path . $file);
                 }
                 break;
             }
         }
     }
 }
开发者ID:emilymwang8,项目名称:cms,代码行数:28,代码来源:Component.php


注:本文中的apf_classname_to_path函数示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。