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


PHP Issue::LoadAll方法代码示例

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


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

示例1: Refresh

 /**
  * Refresh this MetaControl with Data from the local IssueFieldValue object.
  * @param boolean $blnReload reload IssueFieldValue from the database
  * @return void
  */
 public function Refresh($blnReload = false)
 {
     if ($blnReload) {
         $this->objIssueFieldValue->Reload();
     }
     if ($this->lblId) {
         if ($this->blnEditMode) {
             $this->lblId->Text = $this->objIssueFieldValue->Id;
         }
     }
     if ($this->lstIssue) {
         $this->lstIssue->RemoveAllItems();
         if (!$this->blnEditMode) {
             $this->lstIssue->AddItem(QApplication::Translate('- Select One -'), null);
         }
         $objIssueArray = Issue::LoadAll();
         if ($objIssueArray) {
             foreach ($objIssueArray as $objIssue) {
                 $objListItem = new QListItem($objIssue->__toString(), $objIssue->Id);
                 if ($this->objIssueFieldValue->Issue && $this->objIssueFieldValue->Issue->Id == $objIssue->Id) {
                     $objListItem->Selected = true;
                 }
                 $this->lstIssue->AddItem($objListItem);
             }
         }
     }
     if ($this->lblIssueId) {
         $this->lblIssueId->Text = $this->objIssueFieldValue->Issue ? $this->objIssueFieldValue->Issue->__toString() : null;
     }
     if ($this->lstIssueField) {
         $this->lstIssueField->RemoveAllItems();
         if (!$this->blnEditMode) {
             $this->lstIssueField->AddItem(QApplication::Translate('- Select One -'), null);
         }
         $objIssueFieldArray = IssueField::LoadAll();
         if ($objIssueFieldArray) {
             foreach ($objIssueFieldArray as $objIssueField) {
                 $objListItem = new QListItem($objIssueField->__toString(), $objIssueField->Id);
                 if ($this->objIssueFieldValue->IssueField && $this->objIssueFieldValue->IssueField->Id == $objIssueField->Id) {
                     $objListItem->Selected = true;
                 }
                 $this->lstIssueField->AddItem($objListItem);
             }
         }
     }
     if ($this->lblIssueFieldId) {
         $this->lblIssueFieldId->Text = $this->objIssueFieldValue->IssueField ? $this->objIssueFieldValue->IssueField->__toString() : null;
     }
     if ($this->lstIssueFieldOption) {
         $this->lstIssueFieldOption->RemoveAllItems();
         if (!$this->blnEditMode) {
             $this->lstIssueFieldOption->AddItem(QApplication::Translate('- Select One -'), null);
         }
         $objIssueFieldOptionArray = IssueFieldOption::LoadAll();
         if ($objIssueFieldOptionArray) {
             foreach ($objIssueFieldOptionArray as $objIssueFieldOption) {
                 $objListItem = new QListItem($objIssueFieldOption->__toString(), $objIssueFieldOption->Id);
                 if ($this->objIssueFieldValue->IssueFieldOption && $this->objIssueFieldValue->IssueFieldOption->Id == $objIssueFieldOption->Id) {
                     $objListItem->Selected = true;
                 }
                 $this->lstIssueFieldOption->AddItem($objListItem);
             }
         }
     }
     if ($this->lblIssueFieldOptionId) {
         $this->lblIssueFieldOptionId->Text = $this->objIssueFieldValue->IssueFieldOption ? $this->objIssueFieldValue->IssueFieldOption->__toString() : null;
     }
 }
开发者ID:qcodo,项目名称:qcodo-website,代码行数:73,代码来源:IssueFieldValueMetaControlGen.class.php

示例2: Refresh

 /**
  * Refresh this MetaControl with Data from the local TopicLink object.
  * @param boolean $blnReload reload TopicLink from the database
  * @return void
  */
 public function Refresh($blnReload = false)
 {
     if ($blnReload) {
         $this->objTopicLink->Reload();
     }
     if ($this->lblId) {
         if ($this->blnEditMode) {
             $this->lblId->Text = $this->objTopicLink->Id;
         }
     }
     if ($this->lstTopicLinkType) {
         $this->lstTopicLinkType->SelectedValue = $this->objTopicLink->TopicLinkTypeId;
     }
     if ($this->lblTopicLinkTypeId) {
         $this->lblTopicLinkTypeId->Text = $this->objTopicLink->TopicLinkTypeId ? TopicLinkType::$NameArray[$this->objTopicLink->TopicLinkTypeId] : null;
     }
     if ($this->txtTopicCount) {
         $this->txtTopicCount->Text = $this->objTopicLink->TopicCount;
     }
     if ($this->lblTopicCount) {
         $this->lblTopicCount->Text = $this->objTopicLink->TopicCount;
     }
     if ($this->txtMessageCount) {
         $this->txtMessageCount->Text = $this->objTopicLink->MessageCount;
     }
     if ($this->lblMessageCount) {
         $this->lblMessageCount->Text = $this->objTopicLink->MessageCount;
     }
     if ($this->calLastPostDate) {
         $this->calLastPostDate->DateTime = $this->objTopicLink->LastPostDate;
     }
     if ($this->lblLastPostDate) {
         $this->lblLastPostDate->Text = sprintf($this->objTopicLink->LastPostDate) ? $this->objTopicLink->__toString($this->strLastPostDateDateTimeFormat) : null;
     }
     if ($this->lstForum) {
         $this->lstForum->RemoveAllItems();
         $this->lstForum->AddItem(QApplication::Translate('- Select One -'), null);
         $objForumArray = Forum::LoadAll();
         if ($objForumArray) {
             foreach ($objForumArray as $objForum) {
                 $objListItem = new QListItem($objForum->__toString(), $objForum->Id);
                 if ($this->objTopicLink->Forum && $this->objTopicLink->Forum->Id == $objForum->Id) {
                     $objListItem->Selected = true;
                 }
                 $this->lstForum->AddItem($objListItem);
             }
         }
     }
     if ($this->lblForumId) {
         $this->lblForumId->Text = $this->objTopicLink->Forum ? $this->objTopicLink->Forum->__toString() : null;
     }
     if ($this->lstIssue) {
         $this->lstIssue->RemoveAllItems();
         $this->lstIssue->AddItem(QApplication::Translate('- Select One -'), null);
         $objIssueArray = Issue::LoadAll();
         if ($objIssueArray) {
             foreach ($objIssueArray as $objIssue) {
                 $objListItem = new QListItem($objIssue->__toString(), $objIssue->Id);
                 if ($this->objTopicLink->Issue && $this->objTopicLink->Issue->Id == $objIssue->Id) {
                     $objListItem->Selected = true;
                 }
                 $this->lstIssue->AddItem($objListItem);
             }
         }
     }
     if ($this->lblIssueId) {
         $this->lblIssueId->Text = $this->objTopicLink->Issue ? $this->objTopicLink->Issue->__toString() : null;
     }
     if ($this->lstWikiItem) {
         $this->lstWikiItem->RemoveAllItems();
         $this->lstWikiItem->AddItem(QApplication::Translate('- Select One -'), null);
         $objWikiItemArray = WikiItem::LoadAll();
         if ($objWikiItemArray) {
             foreach ($objWikiItemArray as $objWikiItem) {
                 $objListItem = new QListItem($objWikiItem->__toString(), $objWikiItem->Id);
                 if ($this->objTopicLink->WikiItem && $this->objTopicLink->WikiItem->Id == $objWikiItem->Id) {
                     $objListItem->Selected = true;
                 }
                 $this->lstWikiItem->AddItem($objListItem);
             }
         }
     }
     if ($this->lblWikiItemId) {
         $this->lblWikiItemId->Text = $this->objTopicLink->WikiItem ? $this->objTopicLink->WikiItem->__toString() : null;
     }
     if ($this->lstPackage) {
         $this->lstPackage->RemoveAllItems();
         $this->lstPackage->AddItem(QApplication::Translate('- Select One -'), null);
         $objPackageArray = Package::LoadAll();
         if ($objPackageArray) {
             foreach ($objPackageArray as $objPackage) {
                 $objListItem = new QListItem($objPackage->__toString(), $objPackage->Id);
                 if ($this->objTopicLink->Package && $this->objTopicLink->Package->Id == $objPackage->Id) {
                     $objListItem->Selected = true;
                 }
//.........这里部分代码省略.........
开发者ID:klucznik,项目名称:qcodo-website,代码行数:101,代码来源:TopicLinkMetaControlGen.class.php

示例3: MetaDataBinder

 /**
  * Default / simple DataBinder for this Meta DataGrid.  This can easily be overridden
  * by calling SetDataBinder() on this DataGrid with another DataBinder of your choice.
  *
  * If a paginator is set on this DataBinder, it will use it.  If not, then no pagination will be used.
  * It will also perform any sorting (if applicable).
  */
 public function MetaDataBinder()
 {
     // Remember!  We need to first set the TotalItemCount, which will affect the calcuation of LimitClause below
     if ($this->Paginator) {
         $this->TotalItemCount = Issue::CountAll();
     }
     // Setup the $objClauses Array
     $objClauses = array();
     // If a column is selected to be sorted, and if that column has a OrderByClause set on it, then let's add
     // the OrderByClause to the $objClauses array
     if ($objClause = $this->OrderByClause) {
         array_push($objClauses, $objClause);
     }
     // Add the LimitClause information, as well
     if ($objClause = $this->LimitClause) {
         array_push($objClauses, $objClause);
     }
     // Set the DataSource to be a Query result from Issue, given the clauses above
     $this->DataSource = Issue::LoadAll($objClauses);
 }
开发者ID:klucznik,项目名称:qcodo-website,代码行数:27,代码来源:IssueDataGridGen.class.php

示例4: Refresh

 /**
  * Refresh this MetaControl with Data from the local IssueVote object.
  * @param boolean $blnReload reload IssueVote from the database
  * @return void
  */
 public function Refresh($blnReload = false)
 {
     if ($blnReload) {
         $this->objIssueVote->Reload();
     }
     if ($this->lblId) {
         if ($this->blnEditMode) {
             $this->lblId->Text = $this->objIssueVote->Id;
         }
     }
     if ($this->lstIssue) {
         $this->lstIssue->RemoveAllItems();
         if (!$this->blnEditMode) {
             $this->lstIssue->AddItem(QApplication::Translate('- Select One -'), null);
         }
         $objIssueArray = Issue::LoadAll();
         if ($objIssueArray) {
             foreach ($objIssueArray as $objIssue) {
                 $objListItem = new QListItem($objIssue->__toString(), $objIssue->Id);
                 if ($this->objIssueVote->Issue && $this->objIssueVote->Issue->Id == $objIssue->Id) {
                     $objListItem->Selected = true;
                 }
                 $this->lstIssue->AddItem($objListItem);
             }
         }
     }
     if ($this->lblIssueId) {
         $this->lblIssueId->Text = $this->objIssueVote->Issue ? $this->objIssueVote->Issue->__toString() : null;
     }
     if ($this->lstPerson) {
         $this->lstPerson->RemoveAllItems();
         if (!$this->blnEditMode) {
             $this->lstPerson->AddItem(QApplication::Translate('- Select One -'), null);
         }
         $objPersonArray = Person::LoadAll();
         if ($objPersonArray) {
             foreach ($objPersonArray as $objPerson) {
                 $objListItem = new QListItem($objPerson->__toString(), $objPerson->Id);
                 if ($this->objIssueVote->Person && $this->objIssueVote->Person->Id == $objPerson->Id) {
                     $objListItem->Selected = true;
                 }
                 $this->lstPerson->AddItem($objListItem);
             }
         }
     }
     if ($this->lblPersonId) {
         $this->lblPersonId->Text = $this->objIssueVote->Person ? $this->objIssueVote->Person->__toString() : null;
     }
     if ($this->calVoteDate) {
         $this->calVoteDate->DateTime = $this->objIssueVote->VoteDate;
     }
     if ($this->lblVoteDate) {
         $this->lblVoteDate->Text = sprintf($this->objIssueVote->VoteDate) ? $this->objIssueVote->__toString($this->strVoteDateDateTimeFormat) : null;
     }
 }
开发者ID:qcodo,项目名称:qcodo-website,代码行数:60,代码来源:IssueVoteMetaControlGen.class.php

示例5: round

    if (rand(0, 1)) {
        $intCount = round($intCount / 2);
    }
    if (rand(0, 1)) {
        $intCount = round($intCount / 2);
    }
    for ($intIndex = 0; $intIndex < $intCount; $intIndex++) {
        $objRandomPerson = Person::Load(rand(1, $intMaxPersonId));
        if (!$objTopic->IsPersonAsEmailAssociated($objRandomPerson)) {
            $objTopic->AssociatePersonAsEmail($objRandomPerson);
        }
    }
}
// Generate Messages for Issues
QDataGen::DisplayForEachTaskStart($strTitle = 'Generating Messages for Issues', Issue::CountAll());
foreach (Issue::LoadAll() as $objIssue) {
    QDataGen::DisplayForEachTaskNext($strTitle);
    $intCount = rand(1, GENERATE_MESSAGES_PER_ISSUE_UBOUND);
    if (rand(0, 1)) {
        $intCount = round($intCount / 2);
    }
    if (rand(0, 1)) {
        $intCount = round($intCount / 2);
    }
    if (rand(0, 1)) {
        $intCount = round($intCount / 2);
    }
    if (rand(0, 1)) {
        $intCount = round($intCount / 2);
    }
    if (rand(0, 1)) {
开发者ID:qcodo,项目名称:qcodo-website,代码行数:31,代码来源:data-loader.cli.php


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