本文整理汇总了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'));
}
示例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();
}
示例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();
}
示例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();
}
示例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();
}
示例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();
}
示例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();
}
示例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'));
}
示例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'));
}
示例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();
}
示例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();
}
示例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;
}
}
示例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();
}
示例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();
}
示例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;
}