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


PHP ViewEdit::preDisplay方法代码示例

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


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

示例1: preDisplay

 /**
  * @see SugarView::preDisplay()
  *
  * Override preDisplay to check for presence of 'status' in $_REQUEST
  * This is to support the "Close And Create New" operation.
  */
 public function preDisplay()
 {
     if (!empty($_REQUEST['status']) && $_REQUEST['status'] == 'Held') {
         $this->bean->status = 'Held';
     }
     parent::preDisplay();
 }
开发者ID:aldridged,项目名称:gtg-sugar,代码行数:13,代码来源:view.edit.php

示例2: preDisplay

 public function preDisplay()
 {
     global $current_user;
     parent::preDisplay();
     $this->bean->author = $current_user->name;
     $this->bean->user_id_c = $current_user->id;
 }
开发者ID:sacredwebsite,项目名称:SuiteCRM,代码行数:7,代码来源:view.edit.php

示例3: preDisplay

 public function preDisplay()
 {
     global $app_list_strings;
     echo "<style type='text/css'>";
     //readfile('modules/AOR_Reports/css/edit.css');
     readfile('modules/AOR_Reports/js/jqtree/jqtree.css');
     echo "</style>";
     if (!is_file('cache/jsLanguage/AOR_Fields/' . $GLOBALS['current_language'] . '.js')) {
         require_once 'include/language/jsLanguage.php';
         jsLanguage::createModuleStringsCache('AOR_Fields', $GLOBALS['current_language']);
     }
     echo '<script src="cache/jsLanguage/AOR_Fields/' . $GLOBALS['current_language'] . '.js"></script>';
     if (!is_file('cache/jsLanguage/AOR_Conditions/' . $GLOBALS['current_language'] . '.js')) {
         require_once 'include/language/jsLanguage.php';
         jsLanguage::createModuleStringsCache('AOR_Conditions', $GLOBALS['current_language']);
     }
     echo '<script src="cache/jsLanguage/AOR_Conditions/' . $GLOBALS['current_language'] . '.js"></script>';
     echo '<script src="include/javascript/yui3/build/yui/yui-min.js"></script>';
     echo "<script>";
     echo "sort_by_values = \"" . trim(preg_replace('/\\s+/', ' ', get_select_options_with_id($app_list_strings['aor_sort_operator'], ''))) . "\";";
     echo "total_values = \"" . trim(preg_replace('/\\s+/', ' ', get_select_options_with_id($app_list_strings['aor_total_options'], ''))) . "\";";
     echo "format_values = \"" . trim(preg_replace('/\\s+/', ' ', get_select_options_with_id($app_list_strings['aor_format_options'], ''))) . "\";";
     echo "</script>";
     $fields = $this->getFieldLines();
     echo "<script>var fieldLines = " . json_encode($fields) . "</script>";
     $conditions = $this->getConditionLines();
     echo "<script>var conditionLines = " . json_encode($conditions) . "</script>";
     $charts = $this->getChartLines();
     echo "<script>var chartLines = " . json_encode($charts) . ";</script>";
     parent::preDisplay();
 }
开发者ID:switcode,项目名称:SuiteCRM,代码行数:31,代码来源:view.edit.php

示例4: preDisplay

 function preDisplay()
 {
     if (file_exists("cache/modules/OfficeReportsVariables/EditView.tpl")) {
         unlink("cache/modules/OfficeReportsVariables/EditView.tpl");
     }
     parent::preDisplay();
 }
开发者ID:omusico,项目名称:sugar_work,代码行数:7,代码来源:view.edit.php

示例5: preDisplay

 /**
  * @see SugarView::preDisplay()
  */
 public function preDisplay()
 {
     if ($_REQUEST['module'] != 'Calls' && isset($_REQUEST['status']) && empty($_REQUEST['status'])) {
         $this->bean->status = '';
     }
     //if
     if (!empty($_REQUEST['status']) && $_REQUEST['status'] == 'Held') {
         $this->bean->status = 'Held';
     }
     parent::preDisplay();
 }
开发者ID:rgauss,项目名称:sugarcrm_dev,代码行数:14,代码来源:view.edit.php

示例6: preDisplay

 /**
  * preDisplay
  * Override preDisplay to check for presence of 'status' in $_REQUEST
  * This is to support the "Close And Create New" operation.
  */
 function preDisplay()
 {
     if (isset($_REQUEST['status']) && empty($_REQUEST['status'])) {
         $this->bean->status = '';
     }
     //if
     if (!empty($_REQUEST['status']) && $_REQUEST['status'] == 'Held') {
         $this->bean->status = 'Held';
     }
     parent::preDisplay();
 }
开发者ID:klr2003,项目名称:sourceread,代码行数:16,代码来源:view.edit.php

示例7: preDisplay

 /**
  * preDisplay
  * Override preDisplay to check for presence of 'status' in $_REQUEST
  * This is to support the "Close And Create New" operation.
  */
 function preDisplay()
 {
     if ($_REQUEST['module'] != 'Tasks' && isset($_REQUEST['status']) && empty($_REQUEST['status'])) {
         $this->bean->status = '';
     }
     //if
     if (!empty($_REQUEST['status']) && $_REQUEST['status'] == 'Completed') {
         $this->bean->status = 'Completed';
     }
     parent::preDisplay();
 }
开发者ID:klr2003,项目名称:sourceread,代码行数:16,代码来源:view.edit.php

示例8: testdisplay

 public function testdisplay()
 {
     //execute the method with essential parameters set. it should return some html.
     $view = new ViewEdit();
     $view->module = 'Users';
     $view->bean = new User();
     $view->preDisplay();
     $view->ev->ss = new Sugar_Smarty();
     ob_start();
     $view->display();
     $renderedContent = ob_get_contents();
     ob_end_clean();
     $this->assertGreaterThan(0, strlen($renderedContent));
 }
开发者ID:sacredwebsite,项目名称:SuiteCRM,代码行数:14,代码来源:view.editTest.php

示例9: preDisplay

    public function preDisplay(){

        if ($GLOBALS['current_user']->employee_duty_c == "106")
        {
            $this->bean->jrmis_departments_id_c = $GLOBALS['current_user']->jrmis_departments_id_c;
            $GLOBALS['log']->debug("employee.edit.view.preDisplay, 
            bean.jrmis_departments_id_c:" . $this->bean->jrmis_departments_id_c);
            $GLOBALS['log']->debug("employee.edit.view.preDisplay, 
            bean: " . print_r($this->bean, TRUE));
        }

        parent::preDisplay();

    }
开发者ID:jeffcao,项目名称:fzglsys_v5,代码行数:14,代码来源:view.edit.php

示例10: preDisplay

 function preDisplay()
 {
     $this->fieldHelper = UserViewHelper::create($this->ss, $this->bean, 'EditView');
     $this->fieldHelper->setupAdditionalFields();
     parent::preDisplay();
 }
开发者ID:jglaine,项目名称:sugar761-ent,代码行数:6,代码来源:view.edit.php

示例11: preDisplay

 public function preDisplay()
 {
     parent::preDisplay();
 }
开发者ID:sysraj86,项目名称:carnivalcrm,代码行数:4,代码来源:view.edit.php


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