/** * Static Helper Method to Create using QueryString arguments * * @param mixed $objParentObject QForm or QPanel which will be using this EventSignupFormMetaControl * @param QMetaControlCreateType $intCreateType rules governing EventSignupForm object creation - defaults to CreateOrEdit * @return EventSignupFormMetaControl */ public static function CreateFromQueryString($objParentObject, $intCreateType = QMetaControlCreateType::CreateOrEdit) { $intSignupFormId = QApplication::QueryString('intSignupFormId'); return EventSignupFormMetaControl::Create($objParentObject, $intSignupFormId, $intCreateType); }
protected function SetupLabelsForEvent() { if (null != $this->mctSignupForm->SignupForm->EventSignupForm) { $mctEventSignupForm = new EventSignupFormMetaControl($this, $this->mctSignupForm->SignupForm->EventSignupForm); $this->lblDateStart = $mctEventSignupForm->lblDateStart_Create(); $this->lblDateEnd = $mctEventSignupForm->lblDateEnd_Create(); $this->lblLocation = $mctEventSignupForm->lblLocation_Create(); if (!strlen(trim($this->lblDateStart->Text))) { $this->lblDateStart->Visible = false; } if (!strlen(trim($this->lblDateEnd->Text))) { $this->lblDateEnd->Visible = false; } if (!strlen(trim($this->lblLocation->Text))) { $this->lblLocation->Visible = false; } } }