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


PHP QPanel::__construct方法代码示例

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


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

示例1: __construct

 public function __construct($objParentObject, $strControlId = null)
 {
     // Call the Parent
     try {
         parent::__construct($objParentObject, $strControlId);
     } catch (QCallerException $objExc) {
         $objExc->IncrementOffset();
         throw $objExc;
     }
     $this->strTemplate = __NARRO_INCLUDES__ . '/narro/panel/NarroUserRegisterPanel.tpl.php';
     $this->lblMessage = new QLabel($this);
     $this->lblMessage->HtmlEntities = false;
     $this->txtUsername = new QTextBox($this, 'username');
     $this->txtUsername->Required = true;
     $this->txtRealname = new QTextBox($this, 'name');
     $this->txtRealname->Required = false;
     $this->txtEmail = new QTextBox($this, 'email');
     $this->txtEmail->Required = true;
     $this->txtPassword = new QTextBox($this, 'password');
     $this->txtPassword->TextMode = QTextMode::Password;
     $this->btnRegister = new QButton($this);
     $this->btnRegister->Text = t('Register');
     $this->btnRegister->PrimaryButton = true;
     $this->btnRegister->CausesValidation = true;
     $this->btnRegister->AddAction(new QClickEvent(), new QServerControlAction($this, 'btnRegister_Click'));
 }
开发者ID:Jobava,项目名称:narro,代码行数:26,代码来源:NarroUserRegisterPanel.class.php

示例2: __construct

 public function __construct($objParentObject, $strClosePanelMethod, $objInventoryTransaction = null, $strControlId = null)
 {
     // Call the Parent
     try {
         parent::__construct($objParentObject, $strControlId);
     } catch (QCallerException $objExc) {
         $objExc->IncrementOffset();
         throw $objExc;
     }
     // Call SetupInventoryTransaction to either Load/Edit Existing or Create New
     $this->SetupInventoryTransaction($objInventoryTransaction);
     $this->strClosePanelMethod = $strClosePanelMethod;
     // Create/Setup Controls for InventoryTransaction's Data Fields
     $this->lblInventoryTransactionId_Create();
     $this->lstInventoryLocation_Create();
     $this->lstTransaction_Create();
     $this->txtQuantity_Create();
     $this->lstSourceLocation_Create();
     $this->lstDestinationLocation_Create();
     $this->lstCreatedByObject_Create();
     $this->calCreationDate_Create();
     $this->lstModifiedByObject_Create();
     $this->lblModifiedDate_Create();
     // Create/Setup ListBoxes (if applicable) via Unique ReverseReferences and ManyToMany References
     // Create/Setup Button Action controls
     $this->btnSave_Create();
     $this->btnCancel_Create();
     $this->btnDelete_Create();
 }
开发者ID:heshuai64,项目名称:einv2,代码行数:29,代码来源:InventoryTransactionEditPanelBase.class.php

示例3: __construct

 public function __construct($objParentObject, $objNarroLanguage = null, $strControlId = null)
 {
     // Call the Parent
     try {
         parent::__construct($objParentObject, $strControlId);
     } catch (QCallerException $objExc) {
         $objExc->IncrementOffset();
         throw $objExc;
     }
     $this->strTemplate = __NARRO_INCLUDES__ . '/narro/panel/NarroLanguageEditPanel.tpl.php';
     // Call SetupNarroLanguage to either Load/Edit Existing or Create New
     $this->SetupNarroLanguage($objNarroLanguage);
     // Create/Setup Controls for NarroLanguage's Data Fields
     $this->txtLanguageName_Create();
     $this->txtLanguageCode_Create();
     $this->txtCountryCode_Create();
     $this->txtDialectCode_Create();
     $this->txtEncoding_Create();
     $this->lstTextDirection_Create();
     $this->txtSpecialCharacters_Create();
     $this->txtPluralForm_Create();
     $this->chkActive_Create();
     // Create/Setup ListBoxes (if applicable) via Unique ReverseReferences and ManyToMany References
     // Create/Setup Button Action controls
     $this->btnSave_Create();
     $this->btnCancel_Create();
     $this->btnDelete_Create();
 }
开发者ID:Jobava,项目名称:narro,代码行数:28,代码来源:NarroLanguageEditPanel.class.php

示例4: __construct

 public function __construct($objParentObject, $strClosePanelMethod, $objPerson = null, $strControlId = null)
 {
     // Call the Parent
     try {
         parent::__construct($objParentObject, $strControlId);
     } catch (QCallerException $objExc) {
         $objExc->IncrementOffset();
         throw $objExc;
     }
     // Call SetupPerson to either Load/Edit Existing or Create New
     $this->SetupPerson($objPerson);
     $this->strClosePanelMethod = $strClosePanelMethod;
     // Create/Setup Controls for Person's Data Fields
     $this->lblId_Create();
     $this->lstPersonType_Create();
     $this->txtUsername_Create();
     $this->txtPassword_Create();
     $this->txtFirstName_Create();
     $this->txtLastName_Create();
     $this->txtEmail_Create();
     $this->chkDisplayRealNameFlag_Create();
     $this->chkDisplayEmailFlag_Create();
     $this->chkOptInFlag_Create();
     $this->chkDonatedFlag_Create();
     $this->txtLocation_Create();
     $this->txtCountryId_Create();
     $this->txtUrl_Create();
     $this->calRegistrationDate_Create();
     // Create/Setup ListBoxes (if applicable) via Unique ReverseReferences and ManyToMany References
     // Create/Setup Button Action controls
     $this->btnSave_Create();
     $this->btnCancel_Create();
     $this->btnDelete_Create();
 }
开发者ID:qcodo,项目名称:qcodo-api,代码行数:34,代码来源:PersonEditPanelBase.class.php

示例5: __construct

 public function __construct($objParentObject, $strClosePanelMethod, $objAddress = null, $strControlId = null)
 {
     // Call the Parent
     try {
         parent::__construct($objParentObject, $strControlId);
     } catch (QCallerException $objExc) {
         $objExc->IncrementOffset();
         throw $objExc;
     }
     // Call SetupAddress to either Load/Edit Existing or Create New
     $this->SetupAddress($objAddress);
     $this->strClosePanelMethod = $strClosePanelMethod;
     // Create/Setup Controls for Address's Data Fields
     $this->lblAddressId_Create();
     $this->lstCompany_Create();
     $this->txtShortDescription_Create();
     $this->lstCountry_Create();
     $this->txtAddress1_Create();
     $this->txtAddress2_Create();
     $this->txtCity_Create();
     $this->lstStateProvince_Create();
     $this->txtPostalCode_Create();
     $this->lstCreatedByObject_Create();
     $this->calCreationDate_Create();
     $this->lstModifiedByObject_Create();
     $this->lblModifiedDate_Create();
     // Create/Setup ListBoxes (if applicable) via Unique ReverseReferences and ManyToMany References
     $this->lstAddressCustomFieldHelper_Create();
     // Create/Setup Button Action controls
     $this->btnSave_Create();
     $this->btnCancel_Create();
     $this->btnDelete_Create();
 }
开发者ID:brustj,项目名称:tracmor,代码行数:33,代码来源:AddressEditPanelBase.class.php

示例6: __construct

 public function __construct($objParentObject, $strClosePanelMethod, $objContact = null, $strControlId = null)
 {
     // Call the Parent
     try {
         parent::__construct($objParentObject, $strControlId);
     } catch (QCallerException $objExc) {
         $objExc->IncrementOffset();
         throw $objExc;
     }
     // Call SetupContact to either Load/Edit Existing or Create New
     $this->SetupContact($objContact);
     $this->strClosePanelMethod = $strClosePanelMethod;
     // Create/Setup Controls for Contact's Data Fields
     $this->lblContactId_Create();
     $this->lstCompany_Create();
     $this->lstAddress_Create();
     $this->txtFirstName_Create();
     $this->txtLastName_Create();
     $this->txtTitle_Create();
     $this->txtEmail_Create();
     $this->txtPhoneOffice_Create();
     $this->txtPhoneHome_Create();
     $this->txtPhoneMobile_Create();
     $this->txtFax_Create();
     $this->txtDescription_Create();
     $this->lstCreatedByObject_Create();
     $this->calCreationDate_Create();
     $this->lstModifiedByObject_Create();
     $this->lblModifiedDate_Create();
     // Create/Setup ListBoxes (if applicable) via Unique ReverseReferences and ManyToMany References
     // Create/Setup Button Action controls
     $this->btnSave_Create();
     $this->btnCancel_Create();
     $this->btnDelete_Create();
 }
开发者ID:heshuai64,项目名称:einv2,代码行数:35,代码来源:ContactEditPanelBase.class.php

示例7: __construct

 public function __construct($objParentObject, $strClosePanelMethod, $objAuditScan = null, $strControlId = null)
 {
     // Call the Parent
     try {
         parent::__construct($objParentObject, $strControlId);
     } catch (QCallerException $objExc) {
         $objExc->IncrementOffset();
         throw $objExc;
     }
     // Call SetupAuditScan to either Load/Edit Existing or Create New
     $this->SetupAuditScan($objAuditScan);
     $this->strClosePanelMethod = $strClosePanelMethod;
     // Create/Setup Controls for AuditScan's Data Fields
     $this->lblAuditScanId_Create();
     $this->lstAudit_Create();
     $this->lstLocation_Create();
     $this->txtEntityId_Create();
     $this->txtCount_Create();
     $this->txtSystemCount_Create();
     // Create/Setup ListBoxes (if applicable) via Unique ReverseReferences and ManyToMany References
     // Create/Setup Button Action controls
     $this->btnSave_Create();
     $this->btnCancel_Create();
     $this->btnDelete_Create();
 }
开发者ID:heshuai64,项目名称:einv2,代码行数:25,代码来源:AuditScanEditPanelBase.class.php

示例8: __construct

 public function __construct(NarroProject $objProject, NarroLanguage $objLanguage, $objParentObject, $strControlId = null)
 {
     // Call the Parent
     try {
         parent::__construct($objParentObject, $strControlId);
     } catch (QCallerException $objExc) {
         $objExc->IncrementOffset();
         throw $objExc;
     }
     $this->objProject = $objProject;
     $this->objLanguage = $objLanguage;
     $this->pnlTranslationSource = new QTabs($this);
     $objDirectoryPanel = new NarroDirectorySourcePanel($objProject, $objLanguage, $this->pnlTranslationSource);
     $objDirectoryPanel->Directory = $this->objProject->DefaultTranslationPath;
     new NarroUploadSourcePanel($objProject, $objLanguage, $this->pnlTranslationSource);
     new NarroWebSourcePanel($objProject, $objLanguage, $this->pnlTranslationSource);
     new NarroProjectSourcePanel($objProject, $objLanguage, $this->pnlTranslationSource);
     new NarroLanguageSourcePanel($objProject, $objLanguage, $this->pnlTranslationSource);
     if (NarroUtils::CanExec('/usr/bin/hg --help')) {
         new NarroMercurialSourcePanel($objProject, $objLanguage, $this->pnlTranslationSource);
     }
     if (NarroUtils::CanExec('/usr/bin/svn --help')) {
         new NarroSvnSourcePanel($objProject, $objLanguage, $this->pnlTranslationSource);
     }
     $this->pnlTranslationSource->Headers = array(t('On this server'), t('On my computer'), t('On the web'), t('Another project'), t('Another language'), t('Mercurial'), t('SVN'));
 }
开发者ID:Jobava,项目名称:narro,代码行数:26,代码来源:NarroProjectTranslationSourcePanel.class.php

示例9: __construct

 public function __construct($objParentObject, $objProject, $strMethodCallBack, $strControlId = null)
 {
     // First, let's call the Parent's __constructor
     try {
         parent::__construct($objParentObject, $strControlId);
     } catch (QCallerException $objExc) {
         $objExc->IncrementOffset();
         throw $objExc;
     }
     // Next, we set the local project object
     $this->objProject = $objProject;
     // Let's record the reference to the form's MethodCallBack
     // See note in ProjectViewPanel for more on this.
     $this->strMethodCallBack = $strMethodCallBack;
     // Let's set up the other local child control
     // Notice that we define the child controls' parents to be "this", which is this ProjectEditPanel object.
     $this->txtName = new QTextBox($this, 'txtProjectName');
     $this->txtName->Text = $objProject->Name;
     $this->txtName->Name = 'Project Name';
     $this->txtName->Required = true;
     $this->txtName->CausesValidation = true;
     // We need to add some Enter and Esc key Events on the Textbox
     $this->txtName->AddAction(new QEnterKeyEvent(), new QAjaxControlAction($this, 'btnSave_Click'));
     $this->txtName->AddAction(new QEnterKeyEvent(), new QTerminateAction());
     $this->txtName->AddAction(new QEscapeKeyEvent(), new QAjaxControlAction($this, 'btnCancel_Click'));
     $this->txtName->AddAction(new QEscapeKeyEvent(), new QTerminateAction());
     $this->btnSave = new QButton($this);
     $this->btnSave->Text = 'Save';
     $this->btnSave->AddAction(new QClickEvent(), new QAjaxControlAction($this, 'btnSave_Click'));
     $this->btnSave->CausesValidation = true;
     $this->btnCancel = new QButton($this);
     $this->btnCancel->Text = 'Cancel';
     $this->btnCancel->AddAction(new QClickEvent(), new QAjaxControlAction($this, 'btnCancel_Click'));
 }
开发者ID:tomVertuoz,项目名称:framework,代码行数:34,代码来源:ProjectEditPanel.class.php

示例10: __construct

 public function __construct($objParentObject, $strClosePanelMethod, $objFile = null, $strControlId = null)
 {
     // Call the Parent
     try {
         parent::__construct($objParentObject, $strControlId);
     } catch (QCallerException $objExc) {
         $objExc->IncrementOffset();
         throw $objExc;
     }
     // Call SetupFile to either Load/Edit Existing or Create New
     $this->SetupFile($objFile);
     $this->strClosePanelMethod = $strClosePanelMethod;
     // Create/Setup Controls for File's Data Fields
     $this->lblId_Create();
     $this->lstDirectory_Create();
     $this->txtPath_Create();
     $this->txtDeprecatedMajorVersion_Create();
     $this->txtDeprecatedMinorVersion_Create();
     $this->txtDeprecatedBuild_Create();
     // Create/Setup ListBoxes (if applicable) via Unique ReverseReferences and ManyToMany References
     // Create/Setup Button Action controls
     $this->btnSave_Create();
     $this->btnCancel_Create();
     $this->btnDelete_Create();
 }
开发者ID:qcodo,项目名称:qcodo-api,代码行数:25,代码来源:FileEditPanelBase.class.php

示例11: __construct

 public function __construct($objParentObject, $strClosePanelMethod, $objCompany = null, $strControlId = null)
 {
     // Call the Parent
     try {
         parent::__construct($objParentObject, $strControlId);
     } catch (QCallerException $objExc) {
         $objExc->IncrementOffset();
         throw $objExc;
     }
     // Call SetupCompany to either Load/Edit Existing or Create New
     $this->SetupCompany($objCompany);
     $this->strClosePanelMethod = $strClosePanelMethod;
     // Create/Setup Controls for Company's Data Fields
     $this->lblCompanyId_Create();
     $this->lstAddress_Create();
     $this->txtShortDescription_Create();
     $this->txtWebsite_Create();
     $this->txtTelephone_Create();
     $this->txtFax_Create();
     $this->txtEmail_Create();
     $this->txtLongDescription_Create();
     $this->lstCreatedByObject_Create();
     $this->calCreationDate_Create();
     $this->lstModifiedByObject_Create();
     $this->lblModifiedDate_Create();
     // Create/Setup ListBoxes (if applicable) via Unique ReverseReferences and ManyToMany References
     $this->lstCompanyCustomFieldHelper_Create();
     // Create/Setup Button Action controls
     $this->btnSave_Create();
     $this->btnCancel_Create();
     $this->btnDelete_Create();
 }
开发者ID:brustj,项目名称:tracmor,代码行数:32,代码来源:CompanyEditPanelBase.class.php

示例12: __construct

 public function __construct($objParentObject, Project $objProject, $strControlId = null)
 {
     try {
         parent::__construct($objParentObject, $strControlId);
         // Watch out for template later gonna talk about it,
         // need a trick to look good
         // (insert the child content as row in table already present for Master
         //   close colums -insert row - insert child - close row - open column
         //  </td> <tr><td> render content of this child </td> </tr> <td> )
         $this->Template = 'records.summary.tpl.php';
         // Setting local the Msster QDataGrid to refresh on
         // Saves on the Child DataGrid..
         $this->objParentObject = $objParentObject;
         $this->objProject = $objProject;
         // Create the child DataGrid as a normal QDataGrid
         $this->dtgRecordsSummary = new QDataGrid($this);
         // pagination
         $this->dtgRecordsSummary->Paginator = new QPaginator($this->dtgRecordsSummary);
         $this->dtgRecordsSummary->ItemsPerPage = 5;
         $this->dtgRecordsSummary->SetDataBinder('dtgRecordsSummary_Bind', $this);
         // Add some data to show...
         $this->dtgRecordsSummary->CreateCallableColumn('Person', [$this, 'render_PersonColumn']);
         $col = $this->dtgRecordsSummary->CreateNodeColumn('Id', QQN::Person()->Id);
         $col->CellStyler->Width = 120;
     } catch (QCallerException $objExc) {
         $objExc->IncrementOffset();
         throw $objExc;
     }
 }
开发者ID:vaibhav-kaushal,项目名称:qc-framework,代码行数:29,代码来源:records.summary.php

示例13: __construct

 public function __construct($objParentObject, $strClosePanelMethod, $objAttachment = null, $strControlId = null)
 {
     // Call the Parent
     try {
         parent::__construct($objParentObject, $strControlId);
     } catch (QCallerException $objExc) {
         $objExc->IncrementOffset();
         throw $objExc;
     }
     // Call SetupAttachment to either Load/Edit Existing or Create New
     $this->SetupAttachment($objAttachment);
     $this->strClosePanelMethod = $strClosePanelMethod;
     // Create/Setup Controls for Attachment's Data Fields
     $this->lblAttachmentId_Create();
     $this->lstEntityQtype_Create();
     $this->txtEntityId_Create();
     $this->txtFilename_Create();
     $this->txtTmpFilename_Create();
     $this->txtFileType_Create();
     $this->txtPath_Create();
     $this->txtSize_Create();
     $this->lstCreatedByObject_Create();
     $this->calCreationDate_Create();
     // Create/Setup ListBoxes (if applicable) via Unique ReverseReferences and ManyToMany References
     // Create/Setup Button Action controls
     $this->btnSave_Create();
     $this->btnCancel_Create();
     $this->btnDelete_Create();
 }
开发者ID:heshuai64,项目名称:einv2,代码行数:29,代码来源:AttachmentEditPanelBase.class.php

示例14: __construct

 public function __construct($objParentObject, $strClosePanelMethod, $objCustomField = null, $strControlId = null)
 {
     // Call the Parent
     try {
         parent::__construct($objParentObject, $strControlId);
     } catch (QCallerException $objExc) {
         $objExc->IncrementOffset();
         throw $objExc;
     }
     // Call SetupCustomField to either Load/Edit Existing or Create New
     $this->SetupCustomField($objCustomField);
     $this->strClosePanelMethod = $strClosePanelMethod;
     // Create/Setup Controls for CustomField's Data Fields
     $this->lblCustomFieldId_Create();
     $this->lstCustomFieldQtype_Create();
     $this->lstDefaultCustomFieldValue_Create();
     $this->txtShortDescription_Create();
     $this->chkActiveFlag_Create();
     $this->chkRequiredFlag_Create();
     $this->lstCreatedByObject_Create();
     $this->calCreationDate_Create();
     $this->lstModifiedByObject_Create();
     $this->lblModifiedDate_Create();
     // Create/Setup ListBoxes (if applicable) via Unique ReverseReferences and ManyToMany References
     // Create/Setup Button Action controls
     $this->btnSave_Create();
     $this->btnCancel_Create();
     $this->btnDelete_Create();
 }
开发者ID:heshuai64,项目名称:einv2,代码行数:29,代码来源:CustomFieldEditPanelBase.class.php

示例15: __construct

 public function __construct($objNarroUser, $objParentObject, $strControlId = null)
 {
     // Call the Parent
     try {
         parent::__construct($objParentObject, $strControlId);
     } catch (QCallerException $objExc) {
         $objExc->IncrementOffset();
         throw $objExc;
     }
     $this->strTemplate = __NARRO_INCLUDES__ . '/narro/panel/NarroUserEditPanel.tpl.php';
     $this->objNarroUser = $objNarroUser;
     // Create/Setup Controls for NarroUser's Data Fields
     $this->txtUsername_Create();
     $this->txtPassword_Create();
     $this->txtEmail_Create();
     $this->txtRealname_Create();
     // Create/Setup ListBoxes (if applicable) via Unique ReverseReferences and ManyToMany References
     // Create/Setup Button Action controls
     $this->btnSave_Create();
     $this->btnCancel_Create();
     $this->btnDelete_Create();
     $this->lblMessage = new QLabel($this);
     $this->lblMessage->DisplayStyle = QDisplayStyle::Block;
     $this->lblMessage->Visible = false;
 }
开发者ID:Jobava,项目名称:narro,代码行数:25,代码来源:NarroUserEditPanel.class.php


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