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


PHP Authorization::LoadAll方法代码示例

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


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

示例1: dtgAuthorization_Bind

 protected function dtgAuthorization_Bind()
 {
     // Because we want to enable pagination AND sorting, we need to setup the $objClauses array to send to LoadAll()
     // Remember!  We need to first set the TotalItemCount, which will affect the calcuation of LimitClause below
     $this->dtgAuthorization->TotalItemCount = Authorization::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->dtgAuthorization->OrderByClause) {
         array_push($objClauses, $objClause);
     }
     // Add the LimitClause information, as well
     if ($objClause = $this->dtgAuthorization->LimitClause) {
         array_push($objClauses, $objClause);
     }
     // Set the DataSource to be the array of all Authorization objects, given the clauses above
     $this->dtgAuthorization->DataSource = Authorization::LoadAll($objClauses);
 }
开发者ID:heshuai64,项目名称:einv2,代码行数:19,代码来源:AuthorizationListFormBase.class.php

示例2: Refresh

 /**
  * Refresh this MetaControl with Data from the local RoleModuleAuthorization object.
  * @param boolean $blnReload reload RoleModuleAuthorization from the database
  * @return void
  */
 public function Refresh($blnReload = false)
 {
     if ($blnReload) {
         $this->objRoleModuleAuthorization->Reload();
     }
     if ($this->lblRoleModuleAuthorizationId) {
         if ($this->blnEditMode) {
             $this->lblRoleModuleAuthorizationId->Text = $this->objRoleModuleAuthorization->RoleModuleAuthorizationId;
         }
     }
     if ($this->lstRoleModule) {
         $this->lstRoleModule->RemoveAllItems();
         $this->lstRoleModule->AddItem(QApplication::Translate('- Select One -'), null);
         $objRoleModuleArray = RoleModule::LoadAll();
         if ($objRoleModuleArray) {
             foreach ($objRoleModuleArray as $objRoleModule) {
                 $objListItem = new QListItem($objRoleModule->__toString(), $objRoleModule->RoleModuleId);
                 if ($this->objRoleModuleAuthorization->RoleModule && $this->objRoleModuleAuthorization->RoleModule->RoleModuleId == $objRoleModule->RoleModuleId) {
                     $objListItem->Selected = true;
                 }
                 $this->lstRoleModule->AddItem($objListItem);
             }
         }
     }
     if ($this->lblRoleModuleId) {
         $this->lblRoleModuleId->Text = $this->objRoleModuleAuthorization->RoleModule ? $this->objRoleModuleAuthorization->RoleModule->__toString() : null;
     }
     if ($this->lstAuthorization) {
         $this->lstAuthorization->RemoveAllItems();
         $this->lstAuthorization->AddItem(QApplication::Translate('- Select One -'), null);
         $objAuthorizationArray = Authorization::LoadAll();
         if ($objAuthorizationArray) {
             foreach ($objAuthorizationArray as $objAuthorization) {
                 $objListItem = new QListItem($objAuthorization->__toString(), $objAuthorization->AuthorizationId);
                 if ($this->objRoleModuleAuthorization->Authorization && $this->objRoleModuleAuthorization->Authorization->AuthorizationId == $objAuthorization->AuthorizationId) {
                     $objListItem->Selected = true;
                 }
                 $this->lstAuthorization->AddItem($objListItem);
             }
         }
     }
     if ($this->lblAuthorizationId) {
         $this->lblAuthorizationId->Text = $this->objRoleModuleAuthorization->Authorization ? $this->objRoleModuleAuthorization->Authorization->__toString() : null;
     }
     if ($this->lstAuthorizationLevel) {
         $this->lstAuthorizationLevel->RemoveAllItems();
         $this->lstAuthorizationLevel->AddItem(QApplication::Translate('- Select One -'), null);
         $objAuthorizationLevelArray = AuthorizationLevel::LoadAll();
         if ($objAuthorizationLevelArray) {
             foreach ($objAuthorizationLevelArray as $objAuthorizationLevel) {
                 $objListItem = new QListItem($objAuthorizationLevel->__toString(), $objAuthorizationLevel->AuthorizationLevelId);
                 if ($this->objRoleModuleAuthorization->AuthorizationLevel && $this->objRoleModuleAuthorization->AuthorizationLevel->AuthorizationLevelId == $objAuthorizationLevel->AuthorizationLevelId) {
                     $objListItem->Selected = true;
                 }
                 $this->lstAuthorizationLevel->AddItem($objListItem);
             }
         }
     }
     if ($this->lblAuthorizationLevelId) {
         $this->lblAuthorizationLevelId->Text = $this->objRoleModuleAuthorization->AuthorizationLevel ? $this->objRoleModuleAuthorization->AuthorizationLevel->__toString() : null;
     }
     if ($this->lstCreatedByObject) {
         $this->lstCreatedByObject->RemoveAllItems();
         $this->lstCreatedByObject->AddItem(QApplication::Translate('- Select One -'), null);
         $objCreatedByObjectArray = UserAccount::LoadAll();
         if ($objCreatedByObjectArray) {
             foreach ($objCreatedByObjectArray as $objCreatedByObject) {
                 $objListItem = new QListItem($objCreatedByObject->__toString(), $objCreatedByObject->UserAccountId);
                 if ($this->objRoleModuleAuthorization->CreatedByObject && $this->objRoleModuleAuthorization->CreatedByObject->UserAccountId == $objCreatedByObject->UserAccountId) {
                     $objListItem->Selected = true;
                 }
                 $this->lstCreatedByObject->AddItem($objListItem);
             }
         }
     }
     if ($this->lblCreatedBy) {
         $this->lblCreatedBy->Text = $this->objRoleModuleAuthorization->CreatedByObject ? $this->objRoleModuleAuthorization->CreatedByObject->__toString() : null;
     }
     if ($this->calCreationDate) {
         $this->calCreationDate->DateTime = $this->objRoleModuleAuthorization->CreationDate;
     }
     if ($this->lblCreationDate) {
         $this->lblCreationDate->Text = sprintf($this->objRoleModuleAuthorization->CreationDate) ? $this->objRoleModuleAuthorization->__toString($this->strCreationDateDateTimeFormat) : null;
     }
     if ($this->lstModifiedByObject) {
         $this->lstModifiedByObject->RemoveAllItems();
         $this->lstModifiedByObject->AddItem(QApplication::Translate('- Select One -'), null);
         $objModifiedByObjectArray = UserAccount::LoadAll();
         if ($objModifiedByObjectArray) {
             foreach ($objModifiedByObjectArray as $objModifiedByObject) {
                 $objListItem = new QListItem($objModifiedByObject->__toString(), $objModifiedByObject->UserAccountId);
                 if ($this->objRoleModuleAuthorization->ModifiedByObject && $this->objRoleModuleAuthorization->ModifiedByObject->UserAccountId == $objModifiedByObject->UserAccountId) {
                     $objListItem->Selected = true;
                 }
                 $this->lstModifiedByObject->AddItem($objListItem);
//.........这里部分代码省略.........
开发者ID:proxymoron,项目名称:tracmor,代码行数:101,代码来源:RoleModuleAuthorizationMetaControlGen.class.php

示例3: Form_Create

 protected function Form_Create()
 {
     //QApplication::$Database[1]->EnableProfiling();
     // Call SetupRole to either Load/Edit Existing or Create New
     $this->SetupRole();
     // Create the Header Menu
     $this->ctlHeaderMenu_Create();
     // Create/Setup Controls for Role's Data Fields
     $this->txtShortDescription_Create();
     $this->txtLongDescription_Create();
     $this->lblHeaderRole_Create();
     // Load an array of all modules
     //$this->objModuleArray = Module::LoadAll();
     $this->objModuleArray = Module::LoadAllButHome();
     // Load an array of all Authorization types
     $this->objAuthorizationArray = Authorization::LoadAll();
     // Create/Setup Controls for Authorizations
     $this->arrControls_Create();
     // Create/Setup Button Action controls
     $this->btnSave_Create();
     $this->btnCancel_Create();
     $this->btnDelete_Create();
     // Create/Setup Panel controls
     //Each Entity will have it's own Feld Level Authorization Grid.
     // The Field Level Authorization Grid will be a composite control instantiated 8 times.
     // The param is ModuleId
     $this->pnlAssets_Create(2);
     $this->pnlAssetModel_Create(2);
     $this->pnlInventory_Create(3);
     $this->pnlContact_Create(4);
     $this->pnlCompany_Create(4);
     $this->pnlAddress_Create(4);
     $this->pnlShipping_Create(5);
     $this->pnlReceiving_Create(6);
     //creation of advance labels
     $this->lblAssetsAdvanced_Create();
     $this->lblInventoryAdvanced_Create();
     $this->lblContactsAdvanced_Create();
     $this->lblShippingAdvanced_Create();
     $this->lblReceivingAdvanced_Create();
 }
开发者ID:brustj,项目名称:tracmor,代码行数:41,代码来源:role_edit.php

示例4: lstAuthorization_Create

 protected function lstAuthorization_Create()
 {
     $this->lstAuthorization = new QListBox($this);
     $this->lstAuthorization->Name = QApplication::Translate('Authorization');
     $this->lstAuthorization->AddItem(QApplication::Translate('- Select One -'), null);
     $objAuthorizationArray = Authorization::LoadAll();
     if ($objAuthorizationArray) {
         foreach ($objAuthorizationArray as $objAuthorization) {
             $objListItem = new QListItem($objAuthorization->__toString(), $objAuthorization->AuthorizationId);
             if ($this->objRoleModuleAuthorization->Authorization && $this->objRoleModuleAuthorization->Authorization->AuthorizationId == $objAuthorization->AuthorizationId) {
                 $objListItem->Selected = true;
             }
             $this->lstAuthorization->AddItem($objListItem);
         }
     }
 }
开发者ID:heshuai64,项目名称:einv2,代码行数:16,代码来源:RoleModuleAuthorizationEditPanelBase.class.php

示例5: dtgAuthorization_Bind

 public function dtgAuthorization_Bind()
 {
     // Get Total Count b/c of Pagination
     $this->dtgAuthorization->TotalItemCount = Authorization::CountAll();
     $objClauses = array();
     if ($objClause = $this->dtgAuthorization->OrderByClause) {
         array_push($objClauses, $objClause);
     }
     if ($objClause = $this->dtgAuthorization->LimitClause) {
         array_push($objClauses, $objClause);
     }
     $this->dtgAuthorization->DataSource = Authorization::LoadAll($objClauses);
 }
开发者ID:heshuai64,项目名称:einv2,代码行数:13,代码来源:AuthorizationListPanelBase.class.php

示例6: Refresh

 /**
  * Refresh this MetaControl with Data from the local RoleEntityQtypeCustomFieldAuthorization object.
  * @param boolean $blnReload reload RoleEntityQtypeCustomFieldAuthorization from the database
  * @return void
  */
 public function Refresh($blnReload = false)
 {
     if ($blnReload) {
         $this->objRoleEntityQtypeCustomFieldAuthorization->Reload();
     }
     if ($this->lblRoleEntityQtypeCustomFieldAuthorizationId) {
         if ($this->blnEditMode) {
             $this->lblRoleEntityQtypeCustomFieldAuthorizationId->Text = $this->objRoleEntityQtypeCustomFieldAuthorization->RoleEntityQtypeCustomFieldAuthorizationId;
         }
     }
     if ($this->lstRole) {
         $this->lstRole->RemoveAllItems();
         if (!$this->blnEditMode) {
             $this->lstRole->AddItem(QApplication::Translate('- Select One -'), null);
         }
         $objRoleArray = Role::LoadAll();
         if ($objRoleArray) {
             foreach ($objRoleArray as $objRole) {
                 $objListItem = new QListItem($objRole->__toString(), $objRole->RoleId);
                 if ($this->objRoleEntityQtypeCustomFieldAuthorization->Role && $this->objRoleEntityQtypeCustomFieldAuthorization->Role->RoleId == $objRole->RoleId) {
                     $objListItem->Selected = true;
                 }
                 $this->lstRole->AddItem($objListItem);
             }
         }
     }
     if ($this->lblRoleId) {
         $this->lblRoleId->Text = $this->objRoleEntityQtypeCustomFieldAuthorization->Role ? $this->objRoleEntityQtypeCustomFieldAuthorization->Role->__toString() : null;
     }
     if ($this->lstEntityQtypeCustomField) {
         $this->lstEntityQtypeCustomField->RemoveAllItems();
         if (!$this->blnEditMode) {
             $this->lstEntityQtypeCustomField->AddItem(QApplication::Translate('- Select One -'), null);
         }
         $objEntityQtypeCustomFieldArray = EntityQtypeCustomField::LoadAll();
         if ($objEntityQtypeCustomFieldArray) {
             foreach ($objEntityQtypeCustomFieldArray as $objEntityQtypeCustomField) {
                 $objListItem = new QListItem($objEntityQtypeCustomField->__toString(), $objEntityQtypeCustomField->EntityQtypeCustomFieldId);
                 if ($this->objRoleEntityQtypeCustomFieldAuthorization->EntityQtypeCustomField && $this->objRoleEntityQtypeCustomFieldAuthorization->EntityQtypeCustomField->EntityQtypeCustomFieldId == $objEntityQtypeCustomField->EntityQtypeCustomFieldId) {
                     $objListItem->Selected = true;
                 }
                 $this->lstEntityQtypeCustomField->AddItem($objListItem);
             }
         }
     }
     if ($this->lblEntityQtypeCustomFieldId) {
         $this->lblEntityQtypeCustomFieldId->Text = $this->objRoleEntityQtypeCustomFieldAuthorization->EntityQtypeCustomField ? $this->objRoleEntityQtypeCustomFieldAuthorization->EntityQtypeCustomField->__toString() : null;
     }
     if ($this->lstAuthorization) {
         $this->lstAuthorization->RemoveAllItems();
         if (!$this->blnEditMode) {
             $this->lstAuthorization->AddItem(QApplication::Translate('- Select One -'), null);
         }
         $objAuthorizationArray = Authorization::LoadAll();
         if ($objAuthorizationArray) {
             foreach ($objAuthorizationArray as $objAuthorization) {
                 $objListItem = new QListItem($objAuthorization->__toString(), $objAuthorization->AuthorizationId);
                 if ($this->objRoleEntityQtypeCustomFieldAuthorization->Authorization && $this->objRoleEntityQtypeCustomFieldAuthorization->Authorization->AuthorizationId == $objAuthorization->AuthorizationId) {
                     $objListItem->Selected = true;
                 }
                 $this->lstAuthorization->AddItem($objListItem);
             }
         }
     }
     if ($this->lblAuthorizationId) {
         $this->lblAuthorizationId->Text = $this->objRoleEntityQtypeCustomFieldAuthorization->Authorization ? $this->objRoleEntityQtypeCustomFieldAuthorization->Authorization->__toString() : null;
     }
     if ($this->chkAuthorizedFlag) {
         $this->chkAuthorizedFlag->Checked = $this->objRoleEntityQtypeCustomFieldAuthorization->AuthorizedFlag;
     }
     if ($this->lblAuthorizedFlag) {
         $this->lblAuthorizedFlag->Text = $this->objRoleEntityQtypeCustomFieldAuthorization->AuthorizedFlag ? QApplication::Translate('Yes') : QApplication::Translate('No');
     }
     if ($this->lstCreatedByObject) {
         $this->lstCreatedByObject->RemoveAllItems();
         $this->lstCreatedByObject->AddItem(QApplication::Translate('- Select One -'), null);
         $objCreatedByObjectArray = UserAccount::LoadAll();
         if ($objCreatedByObjectArray) {
             foreach ($objCreatedByObjectArray as $objCreatedByObject) {
                 $objListItem = new QListItem($objCreatedByObject->__toString(), $objCreatedByObject->UserAccountId);
                 if ($this->objRoleEntityQtypeCustomFieldAuthorization->CreatedByObject && $this->objRoleEntityQtypeCustomFieldAuthorization->CreatedByObject->UserAccountId == $objCreatedByObject->UserAccountId) {
                     $objListItem->Selected = true;
                 }
                 $this->lstCreatedByObject->AddItem($objListItem);
             }
         }
     }
     if ($this->lblCreatedBy) {
         $this->lblCreatedBy->Text = $this->objRoleEntityQtypeCustomFieldAuthorization->CreatedByObject ? $this->objRoleEntityQtypeCustomFieldAuthorization->CreatedByObject->__toString() : null;
     }
     if ($this->calCreationDate) {
         $this->calCreationDate->DateTime = $this->objRoleEntityQtypeCustomFieldAuthorization->CreationDate;
     }
     if ($this->lblCreationDate) {
         $this->lblCreationDate->Text = sprintf($this->objRoleEntityQtypeCustomFieldAuthorization->CreationDate) ? $this->objRoleEntityQtypeCustomFieldAuthorization->__toString($this->strCreationDateDateTimeFormat) : null;
//.........这里部分代码省略.........
开发者ID:proxymoron,项目名称:tracmor,代码行数:101,代码来源:RoleEntityQtypeCustomFieldAuthorizationMetaControlGen.class.php

示例7: Refresh

 /**
  * Refresh this MetaControl with Data from the local Shortcut object.
  * @param boolean $blnReload reload Shortcut from the database
  * @return void
  */
 public function Refresh($blnReload = false)
 {
     if ($blnReload) {
         $this->objShortcut->Reload();
     }
     if ($this->lblShortcutId) {
         if ($this->blnEditMode) {
             $this->lblShortcutId->Text = $this->objShortcut->ShortcutId;
         }
     }
     if ($this->lstModule) {
         $this->lstModule->RemoveAllItems();
         if (!$this->blnEditMode) {
             $this->lstModule->AddItem(QApplication::Translate('- Select One -'), null);
         }
         $objModuleArray = Module::LoadAll();
         if ($objModuleArray) {
             foreach ($objModuleArray as $objModule) {
                 $objListItem = new QListItem($objModule->__toString(), $objModule->ModuleId);
                 if ($this->objShortcut->Module && $this->objShortcut->Module->ModuleId == $objModule->ModuleId) {
                     $objListItem->Selected = true;
                 }
                 $this->lstModule->AddItem($objListItem);
             }
         }
     }
     if ($this->lblModuleId) {
         $this->lblModuleId->Text = $this->objShortcut->Module ? $this->objShortcut->Module->__toString() : null;
     }
     if ($this->lstAuthorization) {
         $this->lstAuthorization->RemoveAllItems();
         $this->lstAuthorization->AddItem(QApplication::Translate('- Select One -'), null);
         $objAuthorizationArray = Authorization::LoadAll();
         if ($objAuthorizationArray) {
             foreach ($objAuthorizationArray as $objAuthorization) {
                 $objListItem = new QListItem($objAuthorization->__toString(), $objAuthorization->AuthorizationId);
                 if ($this->objShortcut->Authorization && $this->objShortcut->Authorization->AuthorizationId == $objAuthorization->AuthorizationId) {
                     $objListItem->Selected = true;
                 }
                 $this->lstAuthorization->AddItem($objListItem);
             }
         }
     }
     if ($this->lblAuthorizationId) {
         $this->lblAuthorizationId->Text = $this->objShortcut->Authorization ? $this->objShortcut->Authorization->__toString() : null;
     }
     if ($this->lstTransactionType) {
         $this->lstTransactionType->RemoveAllItems();
         $this->lstTransactionType->AddItem(QApplication::Translate('- Select One -'), null);
         $objTransactionTypeArray = TransactionType::LoadAll();
         if ($objTransactionTypeArray) {
             foreach ($objTransactionTypeArray as $objTransactionType) {
                 $objListItem = new QListItem($objTransactionType->__toString(), $objTransactionType->TransactionTypeId);
                 if ($this->objShortcut->TransactionType && $this->objShortcut->TransactionType->TransactionTypeId == $objTransactionType->TransactionTypeId) {
                     $objListItem->Selected = true;
                 }
                 $this->lstTransactionType->AddItem($objListItem);
             }
         }
     }
     if ($this->lblTransactionTypeId) {
         $this->lblTransactionTypeId->Text = $this->objShortcut->TransactionType ? $this->objShortcut->TransactionType->__toString() : null;
     }
     if ($this->txtShortDescription) {
         $this->txtShortDescription->Text = $this->objShortcut->ShortDescription;
     }
     if ($this->lblShortDescription) {
         $this->lblShortDescription->Text = $this->objShortcut->ShortDescription;
     }
     if ($this->txtLink) {
         $this->txtLink->Text = $this->objShortcut->Link;
     }
     if ($this->lblLink) {
         $this->lblLink->Text = $this->objShortcut->Link;
     }
     if ($this->txtImagePath) {
         $this->txtImagePath->Text = $this->objShortcut->ImagePath;
     }
     if ($this->lblImagePath) {
         $this->lblImagePath->Text = $this->objShortcut->ImagePath;
     }
     if ($this->lstEntityQtype) {
         $this->lstEntityQtype->SelectedValue = $this->objShortcut->EntityQtypeId;
     }
     if ($this->lblEntityQtypeId) {
         $this->lblEntityQtypeId->Text = $this->objShortcut->EntityQtypeId ? EntityQtype::$NameArray[$this->objShortcut->EntityQtypeId] : null;
     }
     if ($this->chkCreateFlag) {
         $this->chkCreateFlag->Checked = $this->objShortcut->CreateFlag;
     }
     if ($this->lblCreateFlag) {
         $this->lblCreateFlag->Text = $this->objShortcut->CreateFlag ? QApplication::Translate('Yes') : QApplication::Translate('No');
     }
 }
开发者ID:proxymoron,项目名称:tracmor,代码行数:99,代码来源:ShortcutMetaControlGen.class.php


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