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


PHP QQN::CommunicationList方法代码示例

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


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

示例1: Form_Create

 protected function Form_Create()
 {
     $this->strInitialToken = QApplication::PathInfo(0);
     if ($this->strInitialToken) {
         $this->objList = CommunicationList::LoadByToken($this->strInitialToken);
     }
     $this->chkBtnListArray = array();
     foreach (CommunicationList::LoadArrayBySubscribable(true, QQ::OrderBy(QQN::CommunicationList()->Token)) as $objEmailList) {
         $objItemList = new QCheckBox($this);
         $objItemList->Name = $objEmailList->Token;
         $objItemList->Text = $objEmailList->Name . ' - ' . $objEmailList->Description . "\n";
         if ($objEmailList->Token == $this->strInitialToken) {
             $objItemList->Checked = true;
         }
         $this->chkBtnListArray[] = $objItemList;
     }
     $this->txtEmail = new QTextBox($this);
     $this->txtEmail->Name = 'Email: ';
     $this->txtEmail->Visible = true;
     $this->txtFirstName = new QTextBox($this);
     $this->txtFirstName->Name = 'First Name: ';
     $this->txtFirstName->Visible = true;
     $this->txtLastName = new QTextBox($this);
     $this->txtLastName->Name = 'Last Name';
     $this->txtLastName->Visible = true;
     $this->btnSubscribe = new QButton($this);
     $this->btnSubscribe->Name = 'Subscribe';
     $this->btnSubscribe->Text = 'Subscribe';
     $this->btnSubscribe->CssClass = 'primary';
     $this->btnSubscribe->Visible = true;
     $this->btnSubscribe->AddAction(new QClickEvent(), new QAjaxAction('btnSubscribe_Click'));
     $this->lblMessage = new QLabel($this);
     $this->lblMessage->FontBold = true;
     $this->lblMessage->Visible = false;
 }
开发者ID:alcf,项目名称:chms,代码行数:35,代码来源:index.php

示例2: dtgCommLists_Bind

 public function dtgCommLists_Bind()
 {
     if ($this->intMinistryId) {
         $this->dtgCommLists->MetaDataBinder(QQ::Equal(QQN::CommunicationList()->MinistryId, $this->intMinistryId));
         $this->dtgCommLists->Visible = true;
     } else {
         $this->dtgCommLists->DataSource = null;
         $this->dtgCommLists->Visible = false;
     }
     $this->lblStartText->Visible = !$this->dtgCommLists->Visible;
 }
开发者ID:alcf,项目名称:chms,代码行数:11,代码来源:index.php

示例3: SetupPanel

 protected function SetupPanel()
 {
     $objExistingLists = array();
     foreach ($this->objPerson->GetCommunicationListArray() as $objList) {
         $objExistingLists[$objList->Id] = true;
     }
     $this->lstCommunicationLists = new QListBox($this);
     $this->lstCommunicationLists->Name = 'Communication List';
     $this->lstCommunicationLists->AddItem('- Select One -');
     $this->lstCommunicationLists->Required = true;
     foreach (CommunicationList::LoadAll(QQ::OrderBy(QQN::CommunicationList()->Name)) as $objList) {
         if (!array_key_exists($objList->Id, $objExistingLists)) {
             $this->lstCommunicationLists->AddItem($objList->Name, $objList->Id);
         }
     }
     $this->btnSave->Text = 'Add';
 }
开发者ID:alcf,项目名称:chms,代码行数:17,代码来源:Vicp_Groups_AddList.class.php

示例4: IsPersonAssociated

 /**
  * Checks to see if an association exists with a specific Person
  * @param Person $objPerson
  * @return bool
  */
 public function IsPersonAssociated(Person $objPerson)
 {
     if (is_null($this->intId)) {
         throw new QUndefinedPrimaryKeyException('Unable to call IsPersonAssociated on this unsaved CommunicationList.');
     }
     if (is_null($objPerson->Id)) {
         throw new QUndefinedPrimaryKeyException('Unable to call IsPersonAssociated on this CommunicationList with an unsaved Person.');
     }
     $intRowCount = CommunicationList::QueryCount(QQ::AndCondition(QQ::Equal(QQN::CommunicationList()->Id, $this->intId), QQ::Equal(QQN::CommunicationList()->Person->PersonId, $objPerson->Id)));
     return $intRowCount > 0;
 }
开发者ID:alcf,项目名称:chms,代码行数:16,代码来源:CommunicationListGen.class.php

示例5: dtgCommunicationLists_Bind

 public function dtgCommunicationLists_Bind()
 {
     $this->dtgCommunicationLists->DataSource = $this->objPerson->GetCommunicationListArray(QQ::OrderBy(QQN::CommunicationList()->Name));
 }
开发者ID:alcf,项目名称:chms,代码行数:4,代码来源:Vicp_Groups.class.php

示例6: ResolveContentItem

 /**
  * Used internally by the Meta-based Add Column tools.
  *
  * Given a QQNode or a Text String, this will return a CommunicationList-based QQNode.
  * It will also verify that it is a proper CommunicationList-based QQNode, and will throw an exception otherwise.
  *
  * @param mixed $mixContent
  * @return QQNode
  */
 protected function ResolveContentItem($mixContent)
 {
     if ($mixContent instanceof QQNode) {
         if (!$mixContent->_ParentNode) {
             throw new QCallerException('Content QQNode cannot be a Top Level Node');
         }
         if ($mixContent->_RootTableName == 'communication_list') {
             if ($mixContent instanceof QQReverseReferenceNode && !$mixContent->_PropertyName) {
                 throw new QCallerException('Content QQNode cannot go through any "To Many" association nodes.');
             }
             $objCurrentNode = $mixContent;
             while ($objCurrentNode = $objCurrentNode->_ParentNode) {
                 if (!$objCurrentNode instanceof QQNode) {
                     throw new QCallerException('Content QQNode cannot go through any "To Many" association nodes.');
                 }
                 if ($objCurrentNode instanceof QQReverseReferenceNode && !$objCurrentNode->_PropertyName) {
                     throw new QCallerException('Content QQNode cannot go through any "To Many" association nodes.');
                 }
             }
             return $mixContent;
         } else {
             throw new QCallerException('Content QQNode has a root table of "' . $mixContent->_RootTableName . '". Must be a root of "communication_list".');
         }
     } else {
         if (is_string($mixContent)) {
             switch ($mixContent) {
                 case 'Id':
                     return QQN::CommunicationList()->Id;
                 case 'EmailBroadcastTypeId':
                     return QQN::CommunicationList()->EmailBroadcastTypeId;
                 case 'MinistryId':
                     return QQN::CommunicationList()->MinistryId;
                 case 'Ministry':
                     return QQN::CommunicationList()->Ministry;
                 case 'Name':
                     return QQN::CommunicationList()->Name;
                 case 'Token':
                     return QQN::CommunicationList()->Token;
                 case 'Description':
                     return QQN::CommunicationList()->Description;
                 case 'Subscribable':
                     return QQN::CommunicationList()->Subscribable;
                 default:
                     throw new QCallerException('Simple Property not found in CommunicationListDataGrid content: ' . $mixContent);
             }
         } else {
             if ($mixContent instanceof QQAssociationNode) {
                 throw new QCallerException('Content QQNode cannot go through any "To Many" association nodes.');
             } else {
                 throw new QCallerException('Invalid Content type');
             }
         }
     }
 }
开发者ID:alcf,项目名称:chms,代码行数:63,代码来源:CommunicationListDataGridGen.class.php


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