本文整理汇总了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();
}
示例2: preDisplay
public function preDisplay()
{
global $current_user;
parent::preDisplay();
$this->bean->author = $current_user->name;
$this->bean->user_id_c = $current_user->id;
}
示例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();
}
示例4: preDisplay
function preDisplay()
{
if (file_exists("cache/modules/OfficeReportsVariables/EditView.tpl")) {
unlink("cache/modules/OfficeReportsVariables/EditView.tpl");
}
parent::preDisplay();
}
示例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();
}
示例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();
}
示例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();
}
示例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));
}
示例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();
}
示例10: preDisplay
function preDisplay()
{
$this->fieldHelper = UserViewHelper::create($this->ss, $this->bean, 'EditView');
$this->fieldHelper->setupAdditionalFields();
parent::preDisplay();
}
示例11: preDisplay
public function preDisplay()
{
parent::preDisplay();
}