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


PHP Location::dictionary方法代码示例

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


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

示例1: viewcreate_update

 public function viewcreate_update()
 {
     $locations = Location::dictionary();
     if (count($locations) > 1) {
         $locations = array('' => 'Select a Location...') + $locations;
         Event::$data->template->content->agentlist = array('' => 'Select a Location First...');
         Event::$data->template->content->queuelist = array('' => 'Select a Location First...');
     } else {
         $locid = key($locations);
         $agentlist = callcenter_agent::getagentsbylocation($locid);
         $agentoptions = '';
         if (count($agentlist) < 1) {
             echo '<option value="">No agents found at location...</option>';
         } else {
             foreach ($agentlist as $key => $agent) {
                 $agentoptions[$agent['cca_id']] = $agent['cca_loginid'] . ' - ' . $agent['cca_displayname'];
             }
         }
         Event::$data->template->content->agentlist = $agentoptions;
         $queuelist = callcenter_queue::getqueuesbylocation($locid);
         $queueoptions = '';
         if (count($queuelist) < 1) {
             echo '<option value="">No queues found at location...</option>';
         } else {
             foreach ($queuelist as $key => $queue) {
                 $queueoptions[$queue['ccq_id']] = $queue['ccq_name'];
             }
         }
         Event::$data->template->content->queuelist = $queueoptions;
     }
     Event::$data->template->content->locations = $locations;
 }
开发者ID:swk,项目名称:bluebox,代码行数:32,代码来源:callcenter_tiers.php

示例2: dropdown

 public static function dropdown($data, $selected = NULL, $extra = '')
 {
     // standardize the $data as an array, strings default to the class_type
     if (!is_array($data)) {
         $data = array('name' => $data);
     }
     // add in all the defaults if they are not provided
     $defaults = array('nullOption' => FALSE, 'multitenancy' => TRUE);
     $data = arr::merge($defaults, $data);
     $options = Location::dictionary($data['multitenancy']);
     if ($data['nullOption']) {
         array_unshift($options, $data['nullOption']);
     }
     $data = array_diff($data, $defaults);
     // use kohana helper to generate the markup
     return form::dropdown($data, $options, $selected, $extra);
 }
开发者ID:swk,项目名称:bluebox,代码行数:17,代码来源:locations.php

示例3: viewcreate_update

 public function viewcreate_update()
 {
     Event::$data->template->content->locations = Location::dictionary();
     Event::$data->template->content->mohoptions = callcenter_queue::getMOHOptions();
     Event::$data->template->content->tbsoptions = callcenter_queue::getTBSOptions();
 }
开发者ID:swk,项目名称:bluebox,代码行数:6,代码来源:callcenter_queues.php

示例4: viewcreate_update

 public function viewcreate_update()
 {
     Event::$data->template->content->locations = Location::dictionary();
     Event::$data->template->content->agent_types = callcenter_agent::getTypes();
     Event::$data->template->content->statuses = callcenter_agent::getStatuses();
 }
开发者ID:swk,项目名称:bluebox,代码行数:6,代码来源:callcenter_agents.php


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