• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

PHP QDataGrid类代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

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



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

示例1: SetupPanel

 protected function SetupPanel()
 {
     if (!$this->objGroup->IsLoginCanView(QApplication::$Login)) {
         $this->ReturnTo('/groups/');
     }
     // Setup Group Array
     $this->objGroupArray = $this->objGroup->GetThisAndChildren();
     $this->intGroupIdArray = array();
     foreach ($this->objGroupArray as $objGroup) {
         $this->intGroupIdArray[] = $objGroup->Id;
     }
     $this->SetupViewControls(false, false);
     $this->dtgMembers->SetDataBinder('dtgMembers_Bind', $this);
     $this->dtgGroups = new QDataGrid($this);
     $this->dtgGroups->AddColumn(new QDataGridColumn('Group Name', '<?= $_CONTROL->ParentControl->RenderGroupName($_ITEM); ?>', 'HtmlEntities=false', 'Width=250px'));
     $this->dtgGroups->AddColumn(new QDataGridColumn('Type', '<?= $_ITEM->Type; ?>', 'Width=130px'));
     $this->dtgGroups->AddColumn(new QDataGridColumn('Email', '<?= $_ITEM->EmailTypeHtml ; ?>', 'HtmlEntities=false', 'Width=360px'));
     $this->dtgGroups->SetDataBinder('dtgGroups_Bind', $this);
     if ($this->objGroup->CountEmailMessageRoutes()) {
         $this->SetupEmailMessageControls();
     }
     $this->SetupSmsControls();
 }
开发者ID:alcf,项目名称:chms,代码行数:23,代码来源:CpGroup_ViewGroupCategory.class.php


示例2: __set

 public function __set($strName, $mixValue)
 {
     switch ($strName) {
         case 'Title':
             try {
                 $this->strLabelForNoneFound = '&nbsp;' . sprintf('<b>%s</b>: %s', $mixValue, QApplication::Translate('%s found nothing.'));
                 /**Translators: ignore %s */
                 $this->strLabelForOneFound = '&nbsp;' . sprintf('<b>%s</b>: %s', $mixValue, QApplication::Translate(' 1 %s found.'));
                 /**Translators: ignore %s */
                 $this->strLabelForMultipleFound = '&nbsp;' . sprintf('<b>%s</b>: %s', $mixValue, QApplication::Translate(' %d %s found.'));
                 /**Translators: ignore %s */
                 $this->strLabelForPaginated = '&nbsp;' . sprintf('<b>%s</b>: %s', $mixValue, QApplication::Translate('%s %d-%d of %d.'));
                 /**Translators: ignore %s */
                 $this->strNoun = '';
                 $this->strNounPlural = '';
                 break;
             } catch (QInvalidCastException $objExc) {
                 $objExc->IncrementOffset();
                 throw $objExc;
             }
         case 'AlwaysShowPaginator':
             try {
                 $this->blnAlwaysShowPaginator = QType::Cast($mixValue, QType::Boolean);
                 break;
             } catch (QInvalidCastException $objExc) {
                 $objExc->IncrementOffset();
                 throw $objExc;
             }
         default:
             try {
                 parent::__set($strName, $mixValue);
                 break;
             } catch (QCallerException $objExc) {
                 $objExc->IncrementOffset();
                 throw $objExc;
             }
     }
 }
开发者ID:Jobava,项目名称:narro,代码行数:38,代码来源:NarroDataGrid.class.php


示例3: __construct

 /**
  * Standard DataGrid constructor which also pre-configures the DataBinder
  * to its own BindAllRows method (which can obviousy be switched to something else).
  *
  * Also pre-configures UseAjax to true.
  *
  * @param mixed $objParentObject either a QPanel or QForm which would be this DataGrid's parent
  * @param string $strControlId optional explicitly-defined ControlId for this DataGrid
  */
 public function __construct($objParentObject, $strControlId = null)
 {
     parent::__construct($objParentObject, $strControlId);
     $this->SetDataBinder('BindAllRows', $this);
     $this->UseAjax = true;
 }
开发者ID:qcodo,项目名称:qcodo-website,代码行数:15,代码来源:CountryDataGridGen.class.php


示例4: __set

 /**
  * This will set the property $strName to be $mixValue
  *
  * @param string $strName Name of the property to set
  * @param string $mixValue New value of the property
  * @return mixed
  */
 public function __set($strName, $mixValue)
 {
     switch ($strName) {
         case 'AdditionalConditions':
             try {
                 return $this->conAdditionalConditions = QType::Cast($mixValue, 'QQCondition');
             } catch (QCallerException $objExc) {
                 $objExc->IncrementOffset();
                 throw $objExc;
             }
         case 'AdditionalClauses':
             try {
                 return $this->clsAdditionalClauses = QType::Cast($mixValue, QType::ArrayType);
             } catch (QCallerException $objExc) {
                 $objExc->IncrementOffset();
                 throw $objExc;
             }
         default:
             try {
                 parent::__set($strName, $mixValue);
                 break;
             } catch (QCallerException $objExc) {
                 $objExc->IncrementOffset();
                 throw $objExc;
             }
     }
 }
开发者ID:Jobava,项目名称:narro,代码行数:34,代码来源:NarroProjectDataGridGen.class.php


示例5: refreshGrid

 protected function refreshGrid()
 {
     $this->dtg->Refresh();
 }
开发者ID:vaibhav-kaushal,项目名称:qc-framework,代码行数:4,代码来源:ui_paginator.php



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


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
PHP QDataGridColumn类代码示例发布时间:2022-05-23
下一篇:
PHP QConvertNotation类代码示例发布时间:2022-05-23
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap