public static GreaterOrEqual ( QQNode $objQueryNode, $mixValue ) | ||
$objQueryNode | QQNode |
public function dtgItems_Bind() { $intYear = QApplication::PathInfo(0); $dttStart = new QDateTime($intYear . '-01-01'); $dttEnd = new QDateTime($dttStart); $dttEnd->Year += 1; $dttStart->SetTime(null, null, null); $dttEnd->SetTime(null, null, null); $objPersonCursor = Person::QueryCursor(QQ::AndCondition(QQ::GreaterOrEqual(QQN::Person()->StewardshipContribution->DateCredited, $dttStart), QQ::LessThan(QQN::Person()->StewardshipContribution->DateCredited, $dttEnd)), QQ::Clause(QQ::Distinct(), QQ::OrderBy(QQN::Person()->LastName, QQN::Person()->FirstName))); $strNameArray = array(); $strNameValueArray = array(); while ($objPerson = Person::InstantiateCursor($objPersonCursor)) { $strToken = strtolower($objPerson->FirstName . '|' . $objPerson->LastName); $strToken = str_replace(' ', '', $strToken); $strToken = str_replace('.', '', $strToken); $strToken = str_replace(',', '', $strToken); $strToken = str_replace('-', '', $strToken); $strToken = str_replace('_', '', $strToken); $strToken = str_replace('/', '', $strToken); if (array_key_exists($strToken, $strNameArray)) { $strNameValueArray[$strToken] = $objPerson->FirstName . ' ' . $objPerson->LastName; } $strNameArray[$strToken] = true; } $this->dtgItems->DataSource = $strNameValueArray; }
public function dtgItems_Bind() { $intYear = QApplication::PathInfo(0); $dttStart = new QDateTime($intYear . '-01-01'); $dttEnd = new QDateTime($dttStart); $dttEnd->Year += 1; $dttStart->SetTime(null, null, null); $dttEnd->SetTime(null, null, null); $this->dtgItems->DataSource = Person::QueryArray(QQ::AndCondition(QQ::GreaterOrEqual(QQN::Person()->StewardshipContribution->DateCredited, $dttStart), QQ::LessThan(QQN::Person()->StewardshipContribution->DateCredited, $dttEnd), QQ::IsNull(QQN::Person()->PrimaryAddressText), QQ::IsNull(QQN::Person()->StewardshipAddressId)), QQ::Clause(QQ::Distinct(), QQ::OrderBy(QQN::Person()->LastName, QQN::Person()->FirstName))); }
public function dtgPosts_Bind() { $objCondition = QQ::All(); if ($intId = $this->lstCategory->SelectedValue) { $objCondition = QQ::AndCondition($objCondition, QQ::Equal(QQN::ClassifiedPost()->ClassifiedCategoryId, $intId)); } if (!is_null($blnValue = $this->lstApproval->SelectedValue)) { $objCondition = QQ::AndCondition($objCondition, QQ::Equal(QQN::ClassifiedPost()->ApprovalFlag, $blnValue)); } if (!is_null($blnValue = $this->lstExpiration->SelectedValue)) { $objCondition = QQ::AndCondition($objCondition, $blnValue ? QQ::LessThan(QQN::ClassifiedPost()->DateExpired, QDateTime::Now()) : QQ::GreaterOrEqual(QQN::ClassifiedPost()->DateExpired, QDateTime::Now())); } if (strlen($strText = trim($this->txtTitle->Text))) { $objCondition = QQ::AndCondition($objCondition, QQ::Like(QQN::ClassifiedPost()->Title, '%' . $strText . '%')); } if (strlen($strText = trim($this->txtName->Text))) { $objCondition = QQ::AndCondition($objCondition, QQ::Like(QQN::ClassifiedPost()->Name, '%' . $strText . '%')); } $this->dtgPosts->MetaDataBinder($objCondition); }
protected function dtgPerson_Bind() { $dtAfterValue = new QDateTime($this->dtxAfterValue->Text); $dtBeforeValue = new QDateTime($this->dtxBeforeValue->Text); $objConditions = QQ::All(); $objConditions = QQ::AndCondition($objConditions, QQ::GreaterOrEqual(QQN::Person()->Comment->DatePosted, $dtAfterValue)); $objConditions = QQ::AndCondition($objConditions, QQ::LessOrEqual(QQN::Person()->Comment->DatePosted, $dtBeforeValue)); $objConditions = QQ::AndCondition($objConditions, QQ::Equal(QQN::Person()->Comment->CommentCategory->Name, "Pastoral")); $this->dtgPerson->TotalItemCount = count(Person::QueryArray($objConditions)); $objPersonArray = Person::QueryArray($objConditions, $this->dtgPerson->LimitClause); $this->dtgPerson->DataSource = $objPersonArray; }
/** * This will move all the transactions for a given year to be credited to another person * @param integer $intYear * @param Person $objPerson */ public function MoveStewardshipTransactions($intYear, Person $objPerson) { StewardshipContribution::GetDatabase()->TransactionBegin(); $objArray = StewardshipContribution::QueryArray(QQ::AndCondition(QQ::Equal(QQN::StewardshipContribution()->PersonId, $this->intId), QQ::GreaterOrEqual(QQN::StewardshipContribution()->DateCredited, new QDateTime($intYear . '-01-01')), QQ::LessThan(QQN::StewardshipContribution()->DateCredited, new QDateTime($intYear + 1 . '-01-01')))); foreach ($objArray as $objContribution) { $objContribution->Person = $objPerson; $objContribution->Save(); foreach ($objContribution->GetStewardshipPostLineItemArray() as $objLineItem) { $objLineItem->Person = $objPerson; $objLineItem->Save(); } } StewardshipContribution::GetDatabase()->TransactionCommit(); }
public static function LoadArrayByBudgetMinimum($fltBudgetMinimum, $objOptionalClauses = null) { return Project::QueryArray(QQ::GreaterOrEqual(QQN::Project()->Budget, $fltBudgetMinimum), $objOptionalClauses); }
if ($intYear < 1950 || $intYear > 2500) { exit(0); } // Setup Zend Framework load set_include_path(get_include_path() . ':' . __INCLUDES__); require_once 'Zend/Loader.php'; Zend_Loader::loadClass('Zend_Pdf'); print "Generating Statistics PDF for " . $intYear . "\r\n"; // Delete Old Files exec('rm -r -f ' . STATISTICS_PDF_PATH . '/StatisticsFor' . $intYear . '*.pdf'); // Create the PDF Object for the PDF $objStatisticPdf = new Zend_Pdf(); $dtxAfterValue = new QDateTime("1/1/" . $intYear); $dtxBeforeValue = new QDateTime("12/31/" . $intYear); // Get the Data $objContributionCursor = StewardshipContribution::QueryCursor(QQ::AndCondition(QQ::GreaterOrEqual(QQN::StewardshipContribution()->DateCredited, $dtxAfterValue), QQ::LessOrEqual(QQN::StewardshipContribution()->DateCredited, $dtxBeforeValue))); // Setup the data holders $fltTotalGifts = 0; $fltTotalAdditionalUniqueGivers = 0; $fltTotalGiftsOver1000 = 0; $fltTotalGiftsOver10000 = 0; $fltTotalAverageGiftSize = 0; $fltTotalGiftAmount = 0; $fltTotalGivers = 0; $objDataGridArray = array(); $objMonthlyTotal = array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0); $objMonthlyCount = array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0); $objOver1000 = array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0); $objOver10000 = array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0); $objUniqueGiver = array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0); $objGiverCount = array(array(), array(), array(), array(), array(), array(), array(), array(), array(), array(), array(), array());
/** * Retruns an array of groups containing this group and all its children and decendents * Uses Cached Hierarchy Data * @return Group[] */ public function GetThisAndChildren() { $objGroupArray = Group::QueryArray(QQ::AndCondition(QQ::Equal(QQN::Group()->MinistryId, $this->intMinistryId), QQ::GreaterOrEqual(QQN::Group()->HierarchyOrderNumber, $this->intHierarchyOrderNumber)), QQ::OrderBy(QQN::Group()->HierarchyOrderNumber)); //$objToReturn = array($objGroupArray[0]); $objToReturn = array(); for ($intIndex = 1; $intIndex < count($objGroupArray); $intIndex++) { if ($objGroupArray[$intIndex]->HierarchyLevel > $this->intHierarchyLevel) { if ($objGroupArray[$intIndex]->ActiveFlag == true) { $objToReturn[] = $objGroupArray[$intIndex]; } } else { return $objToReturn; } } return $objToReturn; }
/** * Determine if a transaction has been conducted after the current AssetTransaction * @return object AssetTransaction */ public function NewerTransaction() { $objNewerAssetTransaction = AssetTransaction::QuerySingle(QQ::AndCondition(QQ::Equal(QQN::AssetTransaction()->AssetId, $this->AssetId), QQ::GreaterOrEqual(QQN::AssetTransaction()->CreationDate, $this->CreationDate), QQ::NotEqual(QQN::AssetTransaction()->AssetTransactionId, $this->AssetTransactionId))); return $objNewerAssetTransaction; }
public function __construct($strDate, $objParentObject, NarroProject $objProject = null, $strControlId = null) { // Call the Parent try { parent::__construct($objParentObject, $strControlId); } catch (QCallerException $objExc) { $objExc->IncrementOffset(); throw $objExc; } $this->strTemplate = dirname(__FILE__) . '/' . __CLASS__ . '.tpl.php'; $this->blnAutoRenderChildren = true; // Tabs $this->tabTop = new QTabs($this); $pnlTranslators = new NarroUserDataGrid($this->tabTop); $pnlTranslators->CssClass = 'datagrid'; $colUsername = $pnlTranslators->MetaAddColumn(QQN::NarroUser()->Username); $colUsername->HtmlEntities = false; $colUsername->Html = '<?=NarroLink::UserProfile($_ITEM->UserId, $_ITEM->Username)?>'; $colCnt = new QDataGridColumn(t('Translations')); $colCnt->Html = '<?=$_ITEM->GetVirtualAttribute("suggestion_cnt")?>'; $pnlTranslators->SortColumnIndex = 1; $pnlTranslators->ShowHeader = false; $pnlTranslators->SortDirection = 1; $pnlTranslators->AddColumn($colCnt); $pnlTranslators->AdditionalConditions = QQ::AndCondition(QQ::GreaterOrEqual(QQN::NarroUser()->NarroSuggestionAsUser->Created, $strDate), QQ::Equal(QQN::NarroUser()->NarroSuggestionAsUser->LanguageId, QApplication::GetLanguageId()), QQ::NotEqual(QQN::NarroUser()->UserId, NarroUser::ANONYMOUS_USER_ID), $objProject ? QQ::Equal(QQN::NarroUser()->NarroSuggestionAsUser->Text->NarroContextAsText->ProjectId, $objProject->ProjectId) : QQ::All()); $pnlTranslators->AdditionalClauses = array(QQ::Count(QQN::NarroUser()->NarroSuggestionAsUser->SuggestionId, 'suggestion_cnt'), QQ::GroupBy(QQN::NarroUser()->UserId)); $pnlReviewers = new NarroUserDataGrid($this->tabTop); $pnlReviewers->CssClass = 'datagrid'; $colUsername = $pnlReviewers->MetaAddColumn(QQN::NarroUser()->Username); $colUsername->HtmlEntities = false; $colUsername->Html = '<?=NarroLink::UserProfile($_ITEM->UserId, $_ITEM->Username)?>'; $colCnt = new QDataGridColumn(t('Reviewers')); $colCnt->Html = '<?=$_ITEM->GetVirtualAttribute("suggestion_cnt")?>'; $pnlReviewers->SortColumnIndex = 1; $pnlReviewers->ShowHeader = false; $pnlReviewers->SortDirection = 1; $pnlReviewers->AddColumn($colCnt); $pnlReviewers->AdditionalConditions = QQ::AndCondition(QQ::GreaterOrEqual(QQN::NarroUser()->NarroContextInfoAsValidatorUser->Modified, $strDate), QQ::Equal(QQN::NarroUser()->NarroContextInfoAsValidatorUser->LanguageId, QApplication::GetLanguageId()), QQ::NotEqual(QQN::NarroUser()->UserId, NarroUser::ANONYMOUS_USER_ID), $objProject ? QQ::Equal(QQN::NarroUser()->NarroContextInfoAsValidatorUser->Context->ProjectId, $objProject->ProjectId) : QQ::All()); $pnlReviewers->AdditionalClauses = array(QQ::Count(QQN::NarroUser()->NarroContextInfoAsValidatorUser->ValidSuggestionId, 'suggestion_cnt'), QQ::GroupBy(QQN::NarroUser()->UserId)); $pnlVoters = new NarroUserDataGrid($this->tabTop); $pnlVoters->CssClass = 'datagrid'; $colUsername = $pnlVoters->MetaAddColumn(QQN::NarroUser()->Username); $colUsername->HtmlEntities = false; $colUsername->Html = '<?=NarroLink::UserProfile($_ITEM->UserId, $_ITEM->Username)?>'; $colCnt = new QDataGridColumn(t('Reviewers')); $colCnt->Html = '<?=$_ITEM->GetVirtualAttribute("suggestion_cnt")?>'; $pnlVoters->SortColumnIndex = 1; $pnlVoters->ShowHeader = false; $pnlVoters->SortDirection = 1; $pnlVoters->AddColumn($colCnt); $pnlVoters->AdditionalConditions = QQ::AndCondition(QQ::GreaterOrEqual(QQN::NarroUser()->NarroSuggestionVoteAsUser->Created, $strDate), QQ::Equal(QQN::NarroUser()->NarroSuggestionVoteAsUser->Suggestion->LanguageId, QApplication::GetLanguageId()), QQ::NotEqual(QQN::NarroUser()->UserId, NarroUser::ANONYMOUS_USER_ID), $objProject ? QQ::Equal(QQN::NarroUser()->NarroSuggestionVoteAsUser->Suggestion->Text->NarroContextAsText->ProjectId, $objProject->ProjectId) : QQ::All()); $pnlVoters->AdditionalClauses = array(QQ::Count(QQN::NarroUser()->NarroSuggestionVoteAsUser->SuggestionId, 'suggestion_cnt'), QQ::GroupBy(QQN::NarroUser()->UserId)); $pnlComments = new NarroUserDataGrid($this->tabTop); $pnlComments->CssClass = 'datagrid'; $colUsername = $pnlComments->MetaAddColumn(QQN::NarroUser()->Username); $colUsername->HtmlEntities = false; $colUsername->Html = '<?=NarroLink::UserProfile($_ITEM->UserId, $_ITEM->Username)?>'; $colCnt = new QDataGridColumn(t('Reviewers')); $colCnt->Html = '<?=$_ITEM->GetVirtualAttribute("suggestion_cnt")?>'; $pnlComments->SortColumnIndex = 1; $pnlComments->ShowHeader = false; $pnlComments->SortDirection = 1; $pnlComments->AddColumn($colCnt); $pnlComments->AdditionalConditions = QQ::AndCondition(QQ::GreaterOrEqual(QQN::NarroUser()->NarroTextCommentAsUser->Created, $strDate), QQ::Equal(QQN::NarroUser()->NarroTextCommentAsUser->LanguageId, QApplication::GetLanguageId()), QQ::NotEqual(QQN::NarroUser()->UserId, NarroUser::ANONYMOUS_USER_ID)); $pnlComments->AdditionalClauses = array(QQ::Count(QQN::NarroUser()->NarroTextCommentAsUser->TextCommentId, 'suggestion_cnt'), QQ::GroupBy(QQN::NarroUser()->UserId)); $this->tabTop->Headers = array(t('Translators'), t('Reviewers'), t('Voters'), t('Comments')); }
<?php QCryptography::$Key = CRYPTO_KEY; $objCrypto = new QCryptography(null, false); // iterate through all recurring payments within the time period. $objRecurringPaymentCursor = RecurringPayments::QueryCursor(QQ::AndCondition(QQ::LessOrEqual(QQN::RecurringPayments()->StartDate, date('Y-m-d')), QQ::GreaterOrEqual(QQN::RecurringPayments()->EndDate, date('Y-m-d')))); while ($objRecurringPayment = RecurringPayments::InstantiateCursor($objRecurringPaymentCursor)) { // display information.. print sprintf("Payment of: %s within time period: %s - %s\n", $objRecurringPayment->Amount, $objRecurringPayment->StartDate, $objRecurringPayment->EndDate); print sprintf("name : %s\nAddress: %s %s\n City: %s\nState: %s\nZip: %s\n", $objCrypto->Decrypt($objRecurringPayment->CardHolderName), $objCrypto->Decrypt($objRecurringPayment->Address1), $objCrypto->Decrypt($objRecurringPayment->Address2), $objCrypto->Decrypt($objRecurringPayment->City), $objRecurringPayment->State, $objCrypto->Decrypt($objRecurringPayment->Zip)); print sprintf("Account Number: %s\nExpiration Date: %s\nSecurity code: %s\n", $objCrypto->Decrypt($objRecurringPayment->AccountNumber), $objRecurringPayment->ExpirationDate, $objCrypto->Decrypt($objRecurringPayment->SecurityCode)); print sprintf("CreditCard Type: %d\n", $objRecurringPayment->CreditCardTypeId); // identify if any are due today $startDate = $objRecurringPayment->StartDate; $timePeriod = 0; switch ($objRecurringPayment->PaymentPeriod->Id) { case 1: // weekly $timePeriod = 7 * 24 * 60 * 60; break; case 2: // bi-weekly $timePeriod = 2 * 7 * 24 * 60 * 60; break; case 3: // monthly $timePeriod = 30 * 24 * 60 * 60; break; case 4: // quarterly $timePeriod = 4 * 30 * 24 * 60 * 60;
public function testSub() { $objTest = new TypeTest(); $objTest->TestFloat = 2.0; $objTest->Save(); $objTest2 = new TypeTest(); $objTest2->TestFloat = 4.0; $objTest2->Save(); $objResArray = TypeTest::QueryArray(QQ::GreaterOrEqual(QQ::Sub(QQN::TypeTest()->TestFloat, 1.0), 3.0)); $this->assertEquals(1, count($objResArray)); if (count($objResArray) > 0) { $objRes = $objResArray[0]; $this->assertNotNull($objRes); if ($objRes) { $this->assertEquals(4.0, $objRes->TestFloat); } } $objTest->Delete(); $objTest2->Delete(); }
protected function CalculateQuery(&$objCondition, &$objClauses, &$blnQueried) { $objCondition = QQ::All(); $objClauses = array(); $blnQueried = false; if ($strName = trim($this->txtName->Text)) { Person::PrepareQqForSearch($strName, $objCondition, $objClauses, QQN::StewardshipContribution()->Person); $blnQueried = true; } if ($intFundId = $this->lstFund->SelectedValue) { $blnQueried = true; $objCondition = QQ::AndCondition($objCondition, QQ::Equal(QQN::StewardshipContribution()->StewardshipContributionAmount->StewardshipFundId, $intFundId)); } if (strlen($strText = trim($this->txtAmount->Text))) { $blnQueried = true; $objCondition = QQ::AndCondition($objCondition, QQ::Equal(QQN::StewardshipContribution()->TotalAmount, $strText)); } if (strlen($strText = trim($this->txtCheckNumber->Text))) { $blnQueried = true; $objCondition = QQ::AndCondition($objCondition, QQ::Like(QQN::StewardshipContribution()->CheckNumber, '%' . $strText . '%')); } if (strlen($strText = trim($this->txtAuthorizationNumber->Text))) { $blnQueried = true; $objCondition = QQ::AndCondition($objCondition, QQ::Like(QQN::StewardshipContribution()->AuthorizationNumber, '%' . $strText . '%')); } $dttStart = $this->txtDateCreditedStart->DateTime; $dttEnd = $this->txtDateCreditedEnd->DateTime; if ($dttStart || $dttEnd) { $blnQueried = true; if ($dttStart && $dttEnd) { $objCondition = QQ::AndCondition($objCondition, QQ::GreaterOrEqual(QQN::StewardshipContribution()->DateCredited, $dttStart), QQ::LessOrEqual(QQN::StewardshipContribution()->DateCredited, $dttEnd)); } else { if ($dttStart) { $objCondition = QQ::AndCondition($objCondition, QQ::Equal(QQN::StewardshipContribution()->DateCredited, $dttStart)); } else { $objCondition = QQ::AndCondition($objCondition, QQ::LessOrEqual(QQN::StewardshipContribution()->DateCredited, $dttEnd)); } } } $dttStart = $this->txtDateEnteredStart->DateTime; $dttEnd = $this->txtDateEnteredEnd->DateTime; if ($dttStart || $dttEnd) { $blnQueried = true; if ($dttStart && $dttEnd) { $objCondition = QQ::AndCondition($objCondition, QQ::GreaterOrEqual(QQN::StewardshipContribution()->StewardshipBatch->DateEntered, $dttStart), QQ::LessOrEqual(QQN::StewardshipContribution()->StewardshipBatch->DateEntered, $dttEnd)); } else { if ($dttStart) { $objCondition = QQ::AndCondition($objCondition, QQ::Equal(QQN::StewardshipContribution()->StewardshipBatch->DateEntered, $dttStart)); } else { $objCondition = QQ::AndCondition($objCondition, QQ::LessOrEqual(QQN::StewardshipContribution()->StewardshipBatch->DateEntered, $dttEnd)); } } } }
public static function LoadArrayByDateRange($dttAfter, $dttBefore, $objOptionalClauses = null) { // This will return an array of StewardshipContribution objects return StewardshipContribution::QueryArray(QQ::AndCondition(QQ::GreaterOrEqual(QQN::StewardshipContribution()->DateCredited, $dttAfter), QQ::LessOrEqual(QQN::StewardshipContribution()->DateCredited, $dttBefore)), $objOptionalClauses); }
public function dtgStewardshipContributionAmount_Bind() { $this->fltTotal = 0; if ($this->chkCombined && $this->chkCombined->Checked) { $intPersonIdArray = array(); foreach ($this->objForm->objHousehold->GetHouseholdParticipationArray() as $objParticipation) { $intPersonIdArray[] = $objParticipation->PersonId; } $objCondition = QQ::In(QQN::StewardshipContributionAmount()->StewardshipContribution->PersonId, $intPersonIdArray); } else { $objCondition = QQ::Equal(QQN::StewardshipContributionAmount()->StewardshipContribution->PersonId, $this->objPerson->Id); } if ($this->lstYear->SelectedValue) { $objCondition = QQ::AndCondition($objCondition, QQ::GreaterOrEqual(QQN::StewardshipContributionAmount()->StewardshipContribution->DateCredited, new QDateTime($this->lstYear->SelectedValue . '-01-01 00:00:00')), QQ::LessOrEqual(QQN::StewardshipContributionAmount()->StewardshipContribution->DateCredited, new QDateTime($this->lstYear->SelectedValue . '-12-31 23:59:59'))); } if ($this->lstFund->SelectedValue) { $objCondition = QQ::AndCondition($objCondition, QQ::Equal(QQN::StewardshipContributionAmount()->StewardshipFundId, $this->lstFund->SelectedValue)); } $this->dtgStewardshipContributionAmount->MetaDataBinder($objCondition); // Add 'Totals' Row $objDataSource = $this->dtgStewardshipContributionAmount->DataSource; $objDataSource[] = new StewardshipContributionAmount(); $this->dtgStewardshipContributionAmount->DataSource = $objDataSource; }
public static function LoadArrayByEndDateRange($dttAfterDateStart, $dttBeforeDateStart, $objCondition = null, $objOptionalClauses = null) { // This will return an array of Membership objects $objCondition = QQ::AndCondition($objCondition, QQ::AndCondition(QQ::GreaterOrEqual(QQN::Membership()->DateEnd, $dttAfterDateStart), QQ::LessOrEqual(QQN::Membership()->DateEnd, $dttBeforeDateStart))); return Membership::QueryArray($objCondition, $objOptionalClauses); }
public static function _(QQNode $objQueryNode, $strSymbol, $mixValue, $mixValueTwo = null) { try { switch (strtolower(trim($strSymbol))) { case '=': return QQ::Equal($objQueryNode, $mixValue); case '!=': return QQ::NotEqual($objQueryNode, $mixValue); case '>': return QQ::GreaterThan($objQueryNode, $mixValue); case '<': return QQ::LessThan($objQueryNode, $mixValue); case '>=': return QQ::GreaterOrEqual($objQueryNode, $mixValue); case '<=': return QQ::LessOrEqual($objQueryNode, $mixValue); case 'in': return QQ::In($objQueryNode, $mixValue); case 'not in': return QQ::NotIn($objQueryNode, $mixValue); case 'like': return QQ::Like($objQueryNode, $mixValue); case 'not like': return QQ::NotLike($objQueryNode, $mixValue); case 'is null': return QQ::IsNull($objQueryNode, $mixValue); case 'is not null': return QQ::IsNotNull($objQueryNode, $mixValue); case 'between': return QQ::Between($objQueryNode, $mixValue, $mixValueTwo); case 'not between': return QQ::NotBetween($objQueryNode, $mixValue, $mixValueTwo); default: throw new QCallerException('Unknown Query Comparison Operation: ' . $strSymbol, 0); } } catch (QCallerException $objExc) { $objExc->IncrementOffset(); throw $objExc; } }
public function dtgPosts_Bind() { $this->dtgPosts->MetaDataBinder(QQ::AndCondition(QQ::Equal(QQN::ClassifiedPost()->ApprovalFlag, true), QQ::Equal(QQN::ClassifiedPost()->ClassifiedCategoryId, $this->objCategory->Id), QQ::GreaterOrEqual(QQN::ClassifiedPost()->DateExpired, QDateTime::Now()))); }