/** * Create and setup QListBox lstSignupPayment * @param string $strControlId optional ControlId to use * @param QQCondition $objConditions override the default condition of QQ::All() to the query, itself * @param QQClause[] $objOptionalClauses additional optional QQClause object or array of QQClause objects for the query * @return QListBox */ public function lstSignupPayment_Create($strControlId = null, QQCondition $objCondition = null, $objOptionalClauses = null) { $this->lstSignupPayment = new QListBox($this->objParentObject, $strControlId); $this->lstSignupPayment->Name = QApplication::Translate('Signup Payment'); $this->lstSignupPayment->AddItem(QApplication::Translate('- Select One -'), null); // Setup and perform the Query if (is_null($objCondition)) { $objCondition = QQ::All(); } $objSignupPaymentCursor = SignupPayment::QueryCursor($objCondition, $objOptionalClauses); // Iterate through the Cursor while ($objSignupPayment = SignupPayment::InstantiateCursor($objSignupPaymentCursor)) { $objListItem = new QListItem($objSignupPayment->__toString(), $objSignupPayment->Id); if ($objSignupPayment->CreditCardPaymentId == $this->objCreditCardPayment->Id) { $objListItem->Selected = true; } $this->lstSignupPayment->AddItem($objListItem); } // Return the QListBox return $this->lstSignupPayment; }