本文整理汇总了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);
}
示例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);
}
示例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);
}
示例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;
}
}
}
}
示例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;
}
}
}
}
示例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;
}
}
示例7: use_boundable_javascripts
public static function use_boundable_javascripts()
{
$path = apf_classname_to_path(__CLASS__);
return array($path . "common.js", $path . "Dialog.js");
}
示例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"));
}
示例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"));
}
示例10: use_styles
public static function use_styles()
{
$path = apf_classname_to_path(__CLASS__);
return array($path . "Debug.css");
}
示例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"));
}
示例12: use_boundable_styles
public static function use_boundable_styles()
{
$path = apf_classname_to_path(__CLASS__);
return array_merge(array($path . 'Register.css'));
}
示例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)));
}
示例14: use_boundable_styles
public static function use_boundable_styles()
{
$path = apf_classname_to_path(__CLASS__);
return array($path . "BrokerRegisterFooter.css");
}
示例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;
}
}
}
}