本文整理汇总了PHP中SugarBean::get_list_view_data方法的典型用法代码示例。如果您正苦于以下问题:PHP SugarBean::get_list_view_data方法的具体用法?PHP SugarBean::get_list_view_data怎么用?PHP SugarBean::get_list_view_data使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类SugarBean
的用法示例。
在下文中一共展示了SugarBean::get_list_view_data方法的12个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: translate
function get_list_view_data()
{
$data = parent::get_list_view_data();
$data['VNAME'] = translate($this->vname, $this->custom_module);
$data['NAMELINK'] = '<input class="checkbox" type="checkbox" name="remove[]" value="' . $this->id . '"> <a href="index.php?module=Studio&action=wizard&wizard=EditCustomFieldsWizard&option=EditCustomField&record=' . $this->id . '" >';
return $data;
}
示例2: translate
function get_list_view_data()
{
$data = parent::get_list_view_data();
$data['LABEL'] = translate($this->label, $this->custom_module);
$data['NAMELINK'] = '<a href="index.php?module=Studio&action=wizard&wizard=EditCustomFieldsWizard&option=EditCustomField&record=' . $this->id . '" class="listViewTdLinkS1">';
return $data;
}
示例3: array
function get_list_view_data()
{
global $action;
if (isset($this->currency_id) && ($action == 'DetailView' || $action == "SubPanelViewer")) {
global $locale, $current_language, $current_user, $mod_strings, $app_list_strings, $sugar_config;
$app_strings = return_application_language($current_language);
$params = array();
$temp_array = $this->get_list_view_array();
$params = array('currency_id' => $this->currency_id, 'convert' => true);
foreach ($temp_array as $field => $value) {
$fieldLow = strToLower($field);
if (!empty($this->field_defs[$fieldLow]) && $this->field_defs[$fieldLow]['type'] == 'currency') {
$temp_array[$field] = currency_format_number($this->{$fieldLow}, $params);
}
}
return $temp_array;
} else {
return parent::get_list_view_data();
}
}
示例4:
function get_list_view_data()
{
global $current_language;
$the_array = parent::get_list_view_data();
$app_list_strings = return_app_list_strings_language($current_language);
$mod_strings = return_module_language($current_language, 'Bugs');
$this->set_release();
// The new listview code only fetches columns that we're displaying and not all
// the columns so we need these checks.
$the_array['NAME'] = $this->name == "" ? "<em>blank</em>" : $this->name;
if (!empty($this->priority)) {
$the_array['PRIORITY'] = $app_list_strings['bug_priority_dom'][$this->priority];
}
if (!empty($this->status)) {
$the_array['STATUS'] = $app_list_strings['bug_status_dom'][$this->status];
}
$the_array['RELEASE'] = $this->release_name;
if (!empty($this->type)) {
$the_array['TYPE'] = $app_list_strings['bug_type_dom'][$this->type];
}
$the_array['BUG_NUMBER'] = $this->bug_number;
$the_array['ENCODED_NAME'] = $this->name;
return $the_array;
}
示例5: empty
function get_list_view_data()
{
global $current_language;
$the_array = parent::get_list_view_data();
$app_list_strings = return_app_list_strings_language($current_language);
$mod_strings = return_module_language($current_language, 'Bugs');
$this->set_release();
// The new listview code only fetches columns that we're displaying and not all
// the columns so we need these checks.
$the_array['NAME'] = $this->name == "" ? "<em>blank</em>" : $this->name;
$the_array['PRIORITY'] = empty($this->priority) ? "" : (!isset($app_list_strings[$this->field_name_map['priority']['options']][$this->priority]) ? $this->priority : $app_list_strings[$this->field_name_map['priority']['options']][$this->priority]);
$the_array['STATUS'] = empty($this->status) ? "" : (!isset($app_list_strings[$this->field_name_map['status']['options']][$this->status]) ? $this->status : $app_list_strings[$this->field_name_map['status']['options']][$this->status]);
$the_array['TYPE'] = empty($this->type) ? "" : (!isset($app_list_strings[$this->field_name_map['type']['options']][$this->type]) ? $this->type : $app_list_strings[$this->field_name_map['type']['options']][$this->type]);
$the_array['RELEASE'] = $this->release_name;
$the_array['BUG_NUMBER'] = $this->bug_number;
$the_array['ENCODED_NAME'] = $this->name;
return $the_array;
}
示例6:
function get_list_view_data()
{
$this->conversion_rate = format_number($this->conversion_rate, 10, 10);
$data = parent::get_list_view_data();
return $data;
}
示例7:
function get_list_view_data()
{
global $app_strings, $mod_strings;
global $app_list_strings;
global $current_user;
$temp_array = parent::get_list_view_data();
$temp_array['NAME'] = $this->name == "" ? "<em>blank</em>" : $this->name;
$temp_array['TYPE'] = $app_list_strings['wflow_type_dom'][$this->type];
$temp_array['BASE_MODULE'] = $app_list_strings['moduleList'][$this->base_module];
$temp_array['LIST_ORDER'] = $this->list_order_y;
$temp_array['HREF_DELETE'] = "index.php?action=Delete&module=WorkFlow&record=" . $this->id . "";
if (empty($this->status)) {
$this->status = "Inactive";
}
if ($this->status == 1 || $this->status == "checked") {
$this->status = "Active";
}
$temp_array['STATUS'] = $app_list_strings['oc_status_dom'][$this->status];
return $temp_array;
}
示例8:
function get_list_view_data()
{
global $app_strings, $mod_strings;
global $app_list_strings;
global $current_user;
if (empty($this->exportable)) {
$this->exportable = "0";
}
$temp_array = parent::get_list_view_data();
$temp_array['NAME'] = $this->name == "" ? "<em>blank</em>" : $this->name;
$temp_array['OUTPUT_DEFAULT'] = $app_list_strings['dataset_output_default_dom'][$this->output_default];
$temp_array['LIST_ORDER_Y'] = $this->list_order_y;
$temp_array['EXPORTABLE'] = $this->exportable;
$temp_array['HEADER'] = $this->header;
$temp_array['QUERY_NAME'] = $this->query_name;
$temp_array['REPORT_NAME'] = $this->report_name;
return $temp_array;
}
示例9:
function get_list_view_data()
{
global $timedate;
global $app_strings, $mod_strings;
global $app_list_strings;
global $current_user;
if (empty($this->published)) {
$this->published = "0";
}
$temp_array = parent::get_list_view_data();
$temp_array['NAME'] = $this->name == "" ? "<em>blank</em>" : $this->name;
$temp_array['ID'] = $this->id;
//report scheduling
if (isset($this->schedule_id) && $this->active == 1) {
$is_scheduled_img = SugarThemeRegistry::current()->getImage('scheduled_inline.png', 'border="0" align="absmiddle"', null, null, '.gif', $mod_strings['LBL_SCHEDULE_EMAIL']);
$is_scheduled = $timedate->to_display_date_time($this->next_run);
} else {
$is_scheduled_img = SugarThemeRegistry::current()->getImage('unscheduled_inline.png', 'border="0" align="absmiddle"', null, null, '.gif', $mod_strings['LBL_SCHEDULE_EMAIL']);
$is_scheduled = $mod_strings['LBL_NONE'];
}
$temp_array['IS_SCHEDULED'] = $is_scheduled;
$temp_array['IS_SCHEDULED_IMG'] = $is_scheduled_img;
return $temp_array;
}
示例10: array
function get_list_view_data()
{
global $app_strings, $mod_strings;
global $app_list_strings;
global $current_user;
global $focus;
if (empty($this->exportable)) {
$this->exportable = "0";
}
$temp_array = parent::get_list_view_data();
$temp_array['NAME'] = $this->name == "" ? "<em>blank</em>" : $this->name;
$temp_array['OUTPUT_DEFAULT'] = $app_list_strings['dataset_output_default_dom'][isset($this->output_default) && !empty($this->output_default) ? $this->output_default : 'table'];
$temp_array['LIST_ORDER_Y'] = $this->list_order_y;
$temp_array['EXPORTABLE'] = $this->exportable;
$temp_array['HEADER'] = $this->header;
$temp_array['QUERY_NAME'] = $this->query_name;
$temp_array['REPORT_NAME'] = $this->report_name;
if (SugarACL::checkAccess('DataSets', 'edit')) {
$temp_array['UP_BUTTON'] = $this->getButton('uparrow_inline', 'LNK_UP', array('module' => 'DataSets', 'action' => 'Save', 'data_set_id' => $this->id, 'direction' => 'Up'), $focus);
$temp_array['DOWN_BUTTON'] = $this->getButton('downarrow_inline', 'LNK_DOWN', array('module' => 'DataSets', 'action' => 'Save', 'data_set_id' => $this->id, 'direction' => 'Up'), $focus);
$temp_array['EDIT_BUTTON'] = $this->getButton('edit_inline', 'LNK_EDIT', array('module' => 'DataSets', 'action' => 'EditView', 'record' => $this->id), $focus);
}
return $temp_array;
}
示例11:
function get_list_view_data()
{
global $app_list_strings;
$temp_array = parent::get_list_view_data();
$temp_array['NAME'] = $this->name == "" ? "<em>blank</em>" : $this->name;
$temp_array['STATUS'] = !empty($this->status) ? $app_list_strings['product_template_status_dom'][$this->status] : "";
$temp_array['TAX_CLASS_NAME'] = !empty($this->tax_class) ? $app_list_strings['tax_class_dom'][$this->tax_class] : "";
$temp_array['PRICING_FORMULA_NAME'] = !empty($this->pricing_formula) ? $app_list_strings['pricing_formula_dom'][$this->pricing_formula] : "";
$temp_array['ENCODED_NAME'] = $this->name;
$temp_array['URL'] = $this->website;
$temp_array['CATEGORY'] = $this->category_id;
$temp_array['CATEGORY_NAME'] = $this->category_name;
$temp_array['TYPE_NAME'] = $this->type_name;
$temp_array['QTY_IN_STOCK'] = $this->qty_in_stock;
return $temp_array;
}
示例12: ProcessView
function get_list_view_data()
{
global $app_strings, $mod_strings;
global $app_list_strings;
global $current_module_strings;
global $current_user;
include 'modules/WorkFlowAlerts/MetaArray.php';
$temp_array = parent::get_list_view_data();
//Grab event
include_once 'include/ListView/ProcessView.php';
$workflow_object = $this->get_workflow_object();
$workflow_object = $workflow_object->get_parent_object();
$ProcessView = new ProcessView($workflow_object, $this);
$ProcessView->local_strings = $current_module_strings;
$prev_display_text = $ProcessView->get_prev_text("AlertsCreateStep1", $this->user_type);
if ($prev_display_text === false) {
if (empty($this->hasError)) {
$this->hasError = true;
echo '<p class="error"><b>' . translate('LBL_ALERT_ERRORS') . '</b></p>';
}
$prev_display_text = '<span class="error">' . translate('LBL_RECIPIENT_ERROR') . '</span>';
}
unset($ProcessView);
$temp_array['STATEMENT'] = "<i>" . $current_module_strings['LBL_LIST_STATEMENT_CONTENT'] . "</i>";
$temp_array['STATEMENT2'] = "<b>" . $prev_display_text . "</b>";
if ($this->user_type == "specific_user" || $this->user_type == "specific_team" || $this->user_type == "specific_role" || $this->user_type == "login_user") {
$temp_array['ACTION'] = 'CreateStep1';
} else {
$temp_array['ACTION'] = 'CreateStep2';
}
$temp_array['FIELD_VALUE'] = $this->field_value;
return $temp_array;
}