本文整理匯總了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)));
}