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


PHP MiscLib::baseUrl方法代码示例

本文整理汇总了PHP中MiscLib::baseUrl方法的典型用法代码示例。如果您正苦于以下问题:PHP MiscLib::baseUrl方法的具体用法?PHP MiscLib::baseUrl怎么用?PHP MiscLib::baseUrl使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在MiscLib的用法示例。


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

示例1: preprocess

 function preprocess()
 {
     if (isset($_REQUEST["selectlist"])) {
         $parser = new PaycardDatacapParser();
         switch ($_REQUEST['selectlist']) {
             case 'CAADMIN':
                 $this->change_page('PaycardEmvCaAdmin.php');
                 return false;
             case 'CC':
                 $json = $parser->parse('DATACAPCC');
                 $this->change_page($json['main_frame']);
                 return false;
             case 'DC':
                 $json = $parser->parse('DATACAPDC');
                 $this->change_page($json['main_frame']);
                 return false;
             case 'EMV':
                 $json = $parser->parse('DATACAPEMV');
                 $this->change_page($json['main_frame']);
                 return false;
             case 'EF':
                 $json = $parser->parse('DATACAPEF');
                 $this->change_page($json['main_frame']);
                 return false;
             case 'EC':
                 $json = $parser->parse('DATACAPEC');
                 $this->change_page($json['main_frame']);
                 return false;
             case 'GD':
                 $json = $parser->parse('DATACAPGD');
                 $this->change_page($json['main_frame']);
                 return false;
             case 'PVEF':
                 $json = $parser->parse('PVDATACAPEF');
                 $this->change_page($json['main_frame']);
                 return false;
             case 'PVEC':
                 $json = $parser->parse('PVDATACAPEC');
                 $this->change_page($json['main_frame']);
                 return false;
             case 'PVGD':
                 $json = $parser->parse('PVDATACAPGD');
                 $this->change_page($json['main_frame']);
                 return false;
             case 'ACGD':
                 $json = $parser->parse('ACDATACAPGD');
                 $this->change_page($json['main_frame']);
                 return false;
             case 'AVGD':
                 $json = $parser->parse('AVDATACAPGD');
                 $this->change_page($json['main_frame']);
                 return false;
             case 'EBT':
                 $this->menu = array('EF' => 'Food Sale', 'EC' => 'Cash Sale', 'PVEF' => 'Food Balance', 'PVEC' => 'Cash Balance');
                 $this->clear_to_home = 0;
                 break;
             case 'GIFT':
                 $this->menu = array('GD' => 'Gift Sale', 'ACGD' => 'Activate Card', 'AVGD' => 'Reload Card', 'PVGD' => 'Check Balance');
                 $this->clear_to_home = 0;
                 break;
             case 'CL':
             default:
                 if (isset($_REQUEST['clear-to-home']) && $_REQUEST['clear-to-home']) {
                     $this->change_page(MiscLib::baseUrl() . 'gui-modules/pos2.php');
                     return false;
                 }
                 break;
         }
     }
     if (!isset($_REQUEST['selectlist']) || $_REQUEST['selectlist'] == 'CL' || $_REQUEST['selectlist'] === '') {
         if (CoreLocal::get('PaycardsDatacapMode') == 1) {
             $this->menu = array('EMV' => 'EMV Credit/Debit', 'EBT' => 'EBT', 'GIFT' => 'Gift');
         } elseif (CoreLocal::get('PaycardsDatacapMode') == 2 || CoreLocal::get('PaycardsDatacapMode') == 3) {
             $this->menu = array('EMV' => 'EMV Credit/Debit', 'CAADMIN' => 'Admin Functions');
         }
     }
     return true;
 }
开发者ID:phpsmith,项目名称:IS4C,代码行数:78,代码来源:PaycardEmvMenu.php


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