當前位置: 首頁>>代碼示例>>PHP>>正文


PHP Utils_RecordBrowserCommon::applet_settings方法代碼示例

本文整理匯總了PHP中Utils_RecordBrowserCommon::applet_settings方法的典型用法代碼示例。如果您正苦於以下問題:PHP Utils_RecordBrowserCommon::applet_settings方法的具體用法?PHP Utils_RecordBrowserCommon::applet_settings怎麽用?PHP Utils_RecordBrowserCommon::applet_settings使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在Utils_RecordBrowserCommon的用法示例。


在下文中一共展示了Utils_RecordBrowserCommon::applet_settings方法的4個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。

示例1: applet_settings

 public static function applet_settings()
 {
     $settings = array(array('label' => __('Display tasks marked as'), 'name' => 'term', 'type' => 'select', 'values' => array('s' => __('Short-term'), 'l' => __('Long-term'), 'b' => __('Both')), 'default' => 's', 'rule' => array(array('message' => __('Field required'), 'type' => 'required'))));
     $statuses = Utils_CommonDataCommon::get_translated_array('CRM/Status');
     ksort($statuses);
     foreach ($statuses as $status_id => $status_label) {
         $name = "status_{$status_id}";
         $label = __('Display with status: %s', array($status_label));
         $default = $status_id < 3 ? true : false;
         // Open, In progress, On hold
         $settings[] = array('label' => $label, 'name' => $name, 'type' => 'checkbox', 'default' => $default);
     }
     $settings[] = array('label' => __('Related'), 'name' => 'related', 'type' => 'select', 'values' => array(__('Employee'), __('Customer'), __('Both')), 'default' => '0');
     return Utils_RecordBrowserCommon::applet_settings($settings);
 }
開發者ID:62BRAINS,項目名稱:EPESI,代碼行數:15,代碼來源:TasksCommon_0.php

示例2: applet_settings

 public static function applet_settings()
 {
     return array_merge(Utils_RecordBrowserCommon::applet_settings(), array());
     //                array('name'=>'conds','label'=>__('Display'),'type'=>'select','default'=>'fav','rule'=>array(array('message'=>__('Field required'), 'type'=>'required')),'values'=>array('fav'=>__('Favorites'),'rec'=>__('Recent')))));
 }
開發者ID:62BRAINS,項目名稱:EPESI,代碼行數:5,代碼來源:ContactsCommon_0.php

示例3: applet_settings

 public static function applet_settings()
 {
     return Utils_RecordBrowserCommon::applet_settings(array(array('label' => __('Display closed meetings'), 'name' => 'closed', 'type' => 'checkbox', 'default' => false), array('label' => __('Related'), 'name' => 'related', 'type' => 'select', 'values' => array(__('Employee'), __('Customer'), __('Both')), 'default' => '0')));
 }
開發者ID:62BRAINS,項目名稱:EPESI,代碼行數:4,代碼來源:MeetingCommon_0.php

示例4: applet_settings

 public static function applet_settings()
 {
     return Utils_RecordBrowserCommon::applet_settings(array(array('label' => __('Include missed (past) calls'), 'name' => 'past', 'type' => 'checkbox', 'default' => 1), array('label' => __('Include today calls'), 'name' => 'today', 'type' => 'checkbox', 'default' => 1), array('label' => __('Include future calls'), 'name' => 'future', 'type' => 'select', 'values' => array(0 => __('No'), 1 => __('Tomorrow'), 2 => __('2 days forward'), 7 => __('1 week forward'), -1 => __('All')), 'default' => 0)));
 }
開發者ID:62BRAINS,項目名稱:EPESI,代碼行數:4,代碼來源:PhoneCallCommon_0.php


注:本文中的Utils_RecordBrowserCommon::applet_settings方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。