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


PHP ViewControlsContainer::getControl方法代码示例

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


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

示例1: GoodFieldName

		$rowclose["1" . GoodFieldName($arr['name']) . "_grval"] = $groupvalue[$arr['name']];
		$rowclose["group" . GoodFieldName($arr['name']) . "_total_cnt"] = $grouptotals_count[$arr['name']];
		$arr_group_close[$i]["name"] = GoodFieldName($arr['name']);
		$arr_group_close[$i]["group_order"] = $arr['group_order'];
		$arr_group_close[$i]["int_type"] = $arr['int_type'];
		$arr_group_close[$i]["ss"] = $arr['ss'];
		$arr_group_close[$i]["color1"] = $arr['color1'];
		$arr_group_close[$i]["color2"] = $arr['color2'];
		$arr_group_close[$i]["endgroup"] = true;
		$arr_group_close[$i]["grval"] = $groupvalue[$arr['name']];
		$arr_group_close[$i]["total_cnt"] = $grouptotals_count[$arr['name']];

		foreach ($rpt_array['totals'] as $fld){
		    if ($fld['show'] && $fld['sum']) {
			$sum = array(fldname($fld) => $grouptotals_sum[$arr['name']][fldname($fld)]);
			$sval = $viewControls->getControl(fldname($fld), $fld['view_format'])->showDBValue($sum, "");
			$rowclose["group" . GoodFieldName($arr['name']) . "_total" . GoodFieldName(fldname($fld)) . "_sum"] = $sval;
			$arr_group_close[$i]["group_total_sum"]["data"][0][fldname($fld)] = $sval;
		    }
		}

		if (testAgr($rpt_array['totals'], "avg", "min", "max", "") > 0) {
		    if ($grouptotals_count[$arr['name']]) {
			foreach ($rpt_array['totals'] as $fld){
			    if ($fld['show']) {
				if ($fld['avg']) {
				    $avg = array(fldname($fld) => $grouptotals_sum[$arr['name']][fldname($fld)] / $grouptotals_count[$arr['name']]);
				    $aval = $viewControls->getControl(fldname($fld), $fld['view_format'])->showDBValue($avg, "");
				    $rowclose["group" . GoodFieldName($arr['name']) . "_total" . GoodFieldName(fldname($fld)) . "_avg"] = $aval;
				    $arr_group_close[$i]["group_total_avg"]["data"][0][fldname($fld)] = $aval;
				}
开发者ID:helbertfurbino,项目名称:sgmofinanceiro,代码行数:31,代码来源:dreport.php

示例2: printJSON

    echo printJSON($returnJSON);
    return;
}
$fieldValue = $data[$field];
$sessionPrefix = $pSet->getOriginalTableName();
if ($mode == LIST_DASHBOARD) {
    //set the session prefix for the dashboard list page
    $sessionPrefix = "Dashboard_" . $pSet->getOriginalTableName();
}
if ($lookup) {
    //set the session prefix for the lookup list page
    $sessionPrefix = $pSet->getOriginalTableName() . "_lookup_" . $mainTable . '_' . $mainField;
}
$searchClauseObj = SearchClause::UnserializeObject($_SESSION[$sessionPrefix . "_advsearch"]);
$container = new ViewControlsContainer($pSet, PAGE_LIST, null);
$cViewControl = $container->getControl($field);
if ($cViewControl->localControlsContainer && !$cViewControl->linkAndDisplaySame) {
    $cViewControl->localControlsContainer->fullText = true;
} else {
    $cViewControl->container->fullText = true;
}
if ($searchClauseObj) {
    if ($searchClauseObj->bIsUsedSrch || $useViewControl) {
        $cViewControl->searchClauseObj = $searchClauseObj;
        $cViewControl->searchHighlight = true;
    }
}
$htmlEncodedValue = $cViewControl->showDBValue($data, "");
$returnJSON = array("success" => true, "textCont" => nl2br($htmlEncodedValue));
echo printJSON($returnJSON);
return;
开发者ID:sdev1,项目名称:CloudStockEnquiry,代码行数:31,代码来源:fulltext.php

示例3: Format

 /**
  * User API function
  * @param Array data
  * @param String field
  * @param String table		The datasource table name
  */
 public static function Format($data, $field, $table)
 {
     $pSet = new ProjectSettings($table);
     include_once getabspath("classes/controls/ViewControlsContainer.php");
     $viewControls = new ViewControlsContainer($pSet, PAGE_VIEW);
     return $viewControls->getControl($field)->getTextValue($data);
 }
开发者ID:kcallow,项目名称:MatchMe,代码行数:13,代码来源:ViewControl.php


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