本文整理汇总了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);
}
示例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')))));
}
示例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')));
}
示例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)));
}