Overview

Packages

  • Actions
  • Codegen
  • Controls
    • Base
  • DatabaseAdapters
  • Events
  • None
  • Sessions
  • Tests

Classes

  • AbstractControl_CodeGenerator
  • AjaxTimingForm
  • BBCodeParser
  • CalculatorForm
  • ComplexColumn
  • Event
  • ExampleForm
  • Examples
  • ExampleService
  • ExamplesForm
  • HtmlJqDoc
  • InjectForm
  • JavaScriptHelper
  • JqAttributes
  • JqDoc
  • JqIcon
  • Method
  • MyControl
  • MyQSlider_ChangeEvent
  • NavPanel
  • Option
  • Order
  • Project
  • ProjectPickerListBox
  • QAbstractCacheProvider
  • QAbstractHtmlTableColumn
  • QAbstractHtmlTableDataColumn
  • QAccordion_ActivateEvent
  • QAccordion_BeforeActivateEvent
  • QAccordion_CreateEvent
  • QAjaxResponse
  • QApplication
  • QApplicationBase
  • QArchive
  • QAutocomplete_ChangeEvent
  • QAutocomplete_CloseEvent
  • QAutocomplete_CodeGenerator
  • QAutocomplete_CreateEvent
  • QAutocomplete_FocusEvent
  • QAutocomplete_OpenEvent
  • QAutocomplete_ResponseEvent
  • QAutocomplete_SearchEvent
  • QAutocomplete_SelectEvent
  • QAutocomplete_SourceEvent
  • QAutocompleteBase_CodeGenerator
  • QAutocompleteListItem
  • QBaseClass
  • QBorderCollapse
  • QBorderStyle
  • QBrowserType
  • QCache
  • QCacheDeleteAction
  • QCacheDeleteAllAction
  • QCacheProviderAPC
  • QCacheProviderLocalMemory
  • QCacheProviderMemcache
  • QCacheProviderNoCache
  • QCacheProviderProxy
  • QCacheSetAction
  • QCalendarType
  • QCallType
  • QCausesValidation
  • QCheckBox_CodeGenerator
  • QCheckBoxBase_CodeGenerator
  • QCheckBoxList_CodeGenerator
  • QCheckBoxListBase_CodeGenerator
  • QControl_CodeGenerator
  • QControlBase_CodeGenerator
  • QControlCategoryType
  • QControlProxy
  • QCrossScripting
  • QCryptography
  • QCss
  • QCursor
  • QDatabaseFieldBase
  • QDatabaseResultBase
  • QDataGrid_CodeGenerator
  • QDataGridBase_CodeGenerator
  • QDatepicker_BeforeShowDayEvent
  • QDatepicker_BeforeShowEvent
  • QDatepicker_CalculateWeekEvent
  • QDatepicker_ChangeMonthYearEvent
  • QDatepicker_CloseEvent
  • QDatepicker_SelectEvent
  • QDatepicker_SelectEvent2
  • QDatepickerBox_BeforeShowDayEvent
  • QDatepickerBox_BeforeShowEvent
  • QDatepickerBox_CalculateWeekEvent
  • QDatepickerBox_ChangeMonthYearEvent
  • QDatepickerBox_CloseEvent
  • QDatepickerBox_CodeGenerator
  • QDatepickerBox_SelectEvent
  • QDatepickerBoxBase_CodeGenerator
  • QDateTime
  • QDateTimePicker_CodeGenerator
  • QDateTimePickerBase_CodeGenerator
  • QDateTimePickerFormat
  • QDateTimePickerType
  • QDateTimeSpan
  • QDbBackedFormStateHandler
  • QDialog_BeforeCloseEvent
  • QDialog_ButtonEvent
  • QDialog_CloseEvent
  • QDialog_CreateEvent
  • QDialog_DragEvent
  • QDialog_DragStartEvent
  • QDialog_DragStopEvent
  • QDialog_FocusEvent
  • QDialog_OpenEvent
  • QDialog_ResizeEvent
  • QDialog_ResizeStartEvent
  • QDialog_ResizeStopEvent
  • QDisplayStyle
  • QDraggable_CreateEvent
  • QDraggable_DragEvent
  • QDraggable_StartEvent
  • QDraggable_StopEvent
  • QDroppable_ActivateEvent
  • QDroppable_CreateEvent
  • QDroppable_DeactivateEvent
  • QDroppable_DropEvent
  • QDroppable_OutEvent
  • QDroppable_OverEvent
  • QEmailAttachment
  • QEmailMessage
  • QEmailServer
  • QEmailStringAttachment
  • QErrorAttribute
  • QFile
  • QFileAssetType
  • QFileFormStateHandler
  • QFloatTextBox_CodeGenerator
  • QFloatTextBoxBase_CodeGenerator
  • QFolder
  • QFormGen
  • QFormStateHandler
  • QGridLines
  • QHListControl
  • QHorizontalAlign
  • QHtml
  • QHtmlReporter
  • QHtmlTable_CodeGenerator
  • QHtmlTableCallableColumn
  • QHtmlTableCheckBoxColumn
  • QHtmlTableCheckBoxColumn_ClickEvent
  • QHtmlTableIndexedColumn
  • QHtmlTableLinkColumn
  • QHtmlTableNodeColumn
  • QHtmlTablePropertyColumn
  • QI18n
  • QImageType
  • QInformixPdoDatabaseField
  • QInformixPdoDatabaseResult
  • QInformixPdoDatabaseRow
  • QInstallationValidationResult
  • QInstallationValidator
  • QIntegerTextBox_CodeGenerator
  • QIntegerTextBoxBase_CodeGenerator
  • QJqButton_CreateEvent
  • QJqCheckBox_CreateEvent
  • QJqRadioButton_CreateEvent
  • QJsClosure
  • QJsFunction
  • QJsNoQuoteKey
  • QJsParameterList
  • QJsPriority
  • QJsVarName
  • QLabel_CodeGenerator
  • QLabelBase_CodeGenerator
  • QLexer
  • QListBox_CodeGenerator
  • QListBoxBase_CodeGenerator
  • QListControl_CodeGenerator
  • QListControlBase_CodeGenerator
  • QMenu
  • QMenu_BlurEvent
  • QMenu_CreateEvent
  • QMenu_FocusEvent
  • QMenu_SelectEvent
  • QMimeType
  • QModelConnectorArgumentType
  • QModelConnectorCreateType
  • QModelConnectorEditDlg
  • QModelConnectorOptions
  • QModelConnectorParam
  • QMultiLevelCacheProvider
  • QMySqlDatabaseResult
  • QNoScriptAjaxAction
  • QOracleDatabaseField
  • QOracleDatabaseResult
  • QOrderedListType
  • QOverflow
  • QPartialQueryBuilder
  • QPdoDatabaseResult
  • QPgConditionILike
  • QPgConditionJsonContains
  • QPgQ
  • QPosition
  • QPostgreSqlPdoDatabaseField
  • QPostgreSqlPdoDatabaseResult
  • QPostgreSqlPdoDatabaseRow
  • QProgressbar_ChangeEvent
  • QProgressbar_CompleteEvent
  • QProgressbar_CreateEvent
  • QQ
  • QQAggregationClause
  • QQAssociationNode
  • QQAverage
  • QQClause
  • QQColumnNode
  • QQCondition
  • QQConditionAll
  • QQConditionAnd
  • QQConditionBetween
  • QQConditionComparison
  • QQConditionEqual
  • QQConditionExists
  • QQConditionGreaterOrEqual
  • QQConditionGreaterThan
  • QQConditionIn
  • QQConditionIsNotNull
  • QQConditionIsNull
  • QQConditionLessOrEqual
  • QQConditionLessThan
  • QQConditionLike
  • QQConditionLogical
  • QQConditionNone
  • QQConditionNot
  • QQConditionNotBetween
  • QQConditionNotEqual
  • QQConditionNotExists
  • QQConditionNotIn
  • QQConditionNotLike
  • QQConditionOr
  • QQCount
  • QQDistinct
  • QQExpand
  • QQExpandAsArray
  • QQExpandVirtualNode
  • QQFunctionNode
  • QQGroupBy
  • QQHavingClause
  • QQLimitInfo
  • QQMathNode
  • QQMaximum
  • QQMinimum
  • QQNamedValue
  • QQNode
  • QQNoParentNode
  • QQOrderBy
  • QQReverseReferenceNode
  • QQSelect
  • QQSubQueryCountNode
  • QQSubQueryNode
  • QQSubQuerySqlNode
  • QQSum
  • QQTableNode
  • QQuery
  • QQueryBuilder
  • QQueryExpansion
  • QQVirtualNode
  • QRadioButtonList_CodeGenerator
  • QRadioButtonListBase_CodeGenerator
  • QRegex
  • QRepeatDirection
  • QRequestMode
  • QResizable_CreateEvent
  • QResizable_ResizeEvent
  • QResizable_StartEvent
  • QResizable_StopEvent
  • QResizeHandleDirection
  • QRssCategory
  • QRssFeed
  • QRssImage
  • QRssItem
  • QSampleTranslation
  • QSelectable_CreateEvent
  • QSelectable_SelectedEvent
  • QSelectable_SelectingEvent
  • QSelectable_StartEvent
  • QSelectable_StopEvent
  • QSelectable_UnselectedEvent
  • QSelectable_UnselectingEvent
  • QSelectionMode
  • QSelectMenu_ChangeEvent
  • QSelectMenu_CloseEvent
  • QSelectMenu_CreateEvent
  • QSelectMenu_FocusEvent
  • QSelectMenu_OpenEvent
  • QSelectMenu_SelectEvent
  • QSessionFormStateHandler
  • QSlider_ChangeEvent
  • QSlider_CodeGenerator
  • QSlider_CreateEvent
  • QSlider_SlideEvent
  • QSlider_StartEvent
  • QSlider_StopEvent
  • QSliderBase_CodeGenerator
  • QSoapMethod
  • QSoapParameter
  • QSoapService
  • QSortable_ActivateEvent
  • QSortable_BeforeStopEvent
  • QSortable_ChangeEvent
  • QSortable_CreateEvent
  • QSortable_DeactivateEvent
  • QSortable_OutEvent
  • QSortable_OverEvent
  • QSortable_ReceiveEvent
  • QSortable_RemoveEvent
  • QSortable_SortEvent
  • QSortable_StartEvent
  • QSortable_StopEvent
  • QSortable_UpdateEvent
  • QSpinner
  • QSpinner_ChangeEvent
  • QSpinner_CreateEvent
  • QSpinner_SpinEvent
  • QSpinner_StartEvent
  • QSpinner_StopEvent
  • QSqLite3PdoDatabaseField
  • QSqLite3PdoDatabaseResult
  • QSqLite3PdoDatabaseRow
  • QStack
  • QString
  • QTabs_ActivateEvent
  • QTabs_BeforeActivateEvent
  • QTabs_BeforeLoadEvent
  • QTabs_CreateEvent
  • QTabs_LoadEvent
  • QTag
  • QTestForm
  • QTextAlign
  • QTextBox_CodeGenerator
  • QTextBoxBase_CodeGenerator
  • QTextMode
  • QTimer
  • QTranslationPoParser
  • QType
  • QUnorderedListStyle
  • QVerticalAlign
  • QVirtualAttributeColumn
  • QWatcher
  • QWatcherBase
  • QWatcherCache
  • QWatcherDB
  • QWatcherNone
  • SampleComposite
  • SelectForm

Interfaces

  • ICacheAction
  • QDataList_CodeGenerator_Interface
  • QTranslationBase

Traits

  • QDataBinder
  • QModelTrait

Exceptions

  • QCallerException
  • QCryptographyException
  • QDataBindException
  • QDateTimeNullException
  • QEmailException
  • QIndexOutOfRangeException
  • QInformixPdoDatabaseException
  • QInvalidCastException
  • QInvalidFormStateException
  • QOptimisticLockingException
  • QPdoDatabaseException
  • QPoParserException
  • QPostgreSqlPdoDatabaseException
  • QRemoteAdminDeniedException
  • QSqLite3PdoDatabaseException
  • QUndefinedMethodException
  • QUndefinedPrimaryKeyException
  • QUndefinedPropertyException

Functions

  • __database_check_error
  • _b
  • _indent
  • _nl
  • _p
  • _r
  • _t
  • _tp
  • _tr
  • array_trim
  • beginsWith
  • CamelCaseFromDash
  • CastToInt
  • DisplayMonospacedText
  • endsWith
  • GO_BACK
  • jq_anytime_gen
  • jq_control_gen
  • jq_inc_gen
  • jq_indent
  • PrintExplainStatement
  • PrintInstructions
  • QcubedHandleCodeGenParseError
  • QcubedHandleError
  • QcubedHandleException
  • QCubedShutdown
  • QDateTimeErrorHandler
  • trimOffEnd
  • trimOffFront
  • Overview
  • Package
  • Class

Class QQ

Direct known subclasses

QPgQ, QQuery
Located at includes/framework/QQuery.class.php
Methods summary
public static
# All( )
public static
# None( )
public static
# OrCondition( )
public static
# AndCondition( )
public static
# Not( QQCondition $objCondition )
public static
# Equal( QQColumnNode $objQueryNode, $mixValue )
public static
# NotEqual( QQColumnNode $objQueryNode, $mixValue )
public static
# GreaterThan( QQColumnNode $objQueryNode, $mixValue )
public static
# GreaterOrEqual( QQColumnNode $objQueryNode, $mixValue )
public static
# LessThan( QQColumnNode $objQueryNode, $mixValue )
public static
# LessOrEqual( QQColumnNode $objQueryNode, $mixValue )
public static
# IsNull( QQColumnNode $objQueryNode )
public static
# IsNotNull( QQColumnNode $objQueryNode )
public static
# In( QQColumnNode $objQueryNode, $mixValuesArray )
public static
# NotIn( QQColumnNode $objQueryNode, $mixValuesArray )
public static
# Like( QQColumnNode $objQueryNode, $strValue )
public static
# NotLike( QQColumnNode $objQueryNode, $strValue )
public static
# Between( QQColumnNode $objQueryNode, $mixMinValue, $mixMaxValue )
public static
# NotBetween( QQColumnNode $objQueryNode, $strMinValue, $strMaxValue )
public static
# Exists( QQSubQuerySqlNode $objQueryNode )
public static
# NotExists( QQSubQuerySqlNode $objQueryNode )
public static QQCondition
# _( QQColumnNode $objQueryNode, $strSymbol, mixed|null $mixValue = null, mixed|null $mixValueTwo = null )

Parameters

$objQueryNode
$strSymbol
$mixValue
$mixValueTwo

Returns

QQCondition

Throws

Exception
QCallerException
public static QQSubQuerySqlNode
# SubSql( string $strSql, null|QQNode[] $objParentQueryNodes = null )

Parameters

$strSql
Sql string. Use {1}, {2}, etc. to represent nodes inside of the sql string.
$objParentQueryNodes
Array of nodes to specify replacement value in the sql.

Returns

QQSubQuerySqlNode
public static
# Virtual( $strName, QQSubQueryNode $objSubQueryDefinition = null )
public static mixed|string
# GetVirtualAlias( $strName )

Converts a virtual attribute name to an alias used in the query. The name is converted to an identifier that will work on any SQL database. In the query itself, the name will have two underscores in front of the alias name to prevent conflicts with column names.

Converts a virtual attribute name to an alias used in the query. The name is converted to an identifier that will work on any SQL database. In the query itself, the name will have two underscores in front of the alias name to prevent conflicts with column names.

Parameters

$strName

Returns

mixed|string
public static
# Clause( )
public static
# OrderBy( )
public static
# GroupBy( )
public static
# Having( QQSubQuerySqlNode $objNode )
public static
# Count( QQColumnNode $objNode, $strAttributeName )
public static
# Sum( QQColumnNode $objNode, $strAttributeName )
public static
# Minimum( QQColumnNode $objNode, $strAttributeName )
public static
# Maximum( QQColumnNode $objNode, $strAttributeName )
public static
# Average( QQColumnNode $objNode, $strAttributeName )
public static
# Expand( QQNode $objNode, QQCondition $objJoinCondition = null, QQSelect $objSelect = null )
public static
# ExpandAsArray( QQNode $objNode, $objCondition = null, QQSelect $objSelect = null )
public static
# Select( )
public static
# LimitInfo( $intMaxRowCount, $intOffset = 0 )
public static
# Distinct( )
public static QQSelect
# ExtractSelectClause( QQClause[]|QQClause|null $objClauses )

Searches for all the QQSelect clauses and merges them into one clause and returns that clause. Returns null if none found.

Searches for all the QQSelect clauses and merges them into one clause and returns that clause. Returns null if none found.

Parameters

$objClauses
QQClause object or array of QQClause objects

Returns

QQSelect

QQSelect clause containing all the nodes from all the QQSelect clauses from $objClauses, or null if $objClauses contains no QQSelect clauses

public static mixed
# Alias( QQNode $objNode, string $strAlias )

Returns the supplied node object, after setting its alias to the value supplied

Returns the supplied node object, after setting its alias to the value supplied

Parameters

$objNode
The node object to set alias on
$strAlias
The alias to set

Returns

mixed
The same node that was passed in, but with the alias set
public static
# NamedValue( $strName )
public static QQFunctionNode
# Func( $strName, QQNode|mixed $param1 )

Apply an arbitrary scalar function using the given parameters. See below for functions that let you apply common SQL functions. The list below only includes sql operations that are generic to all supported versions of SQL. However, you can call Func directly with any named function that works in your current SQL version, knowing that it might not be cross platform compatible if you ever change SQL engines.

Apply an arbitrary scalar function using the given parameters. See below for functions that let you apply common SQL functions. The list below only includes sql operations that are generic to all supported versions of SQL. However, you can call Func directly with any named function that works in your current SQL version, knowing that it might not be cross platform compatible if you ever change SQL engines.

Parameters

$strName
function name, like ABS or POWER
$param1
The function parameter. Can be a qq node or a number.

Returns

QQFunctionNode
The resulting wrapper node
public static QQFunctionNode
# Abs( QQNode $param )

Return the absolute value

Return the absolute value

Parameters

$param
The qq node to apply the function to.

Returns

QQFunctionNode
The resulting wrapper node
public static QQFunctionNode
# Ceil( QQNode $param )

Return the smallest integer value not less than the argument

Return the smallest integer value not less than the argument

Parameters

$param
The qq node to apply the function to.

Returns

QQFunctionNode
The resulting wrapper node
public static QQFunctionNode
# Floor( QQNode $param )

Return the largest integer value not greater than the argument

Return the largest integer value not greater than the argument

Parameters

$param
The qq node to apply the function to.

Returns

QQFunctionNode
The resulting wrapper node
public static QQFunctionNode
# Mod( QQNode $dividend, $divider )

Return the remainder

Return the remainder

Parameters

$dividend
$param The qq node to apply the function to.
$divider

Returns

QQFunctionNode
The resulting wrapper node
public static QQFunctionNode
# Power( QQNode $base, $exponent )

Return the argument raised to the specified power

Return the argument raised to the specified power

Parameters

$base
$param The qq node to apply the function to.
$exponent

Returns

QQFunctionNode
The resulting wrapper node
public static QQFunctionNode
# Sqrt( QQNode $param )

Return the square root of the argument

Return the square root of the argument

Parameters

$param
The qq node to apply the function to.

Returns

QQFunctionNode
The resulting wrapper node
public static QQMathNode
# MathOp( $strOperation, QQNode|mixed $param1 )

Apply an arbitrary math operation to 2 or more operands. Operands can be scalar values, or column nodes.

Apply an arbitrary math operation to 2 or more operands. Operands can be scalar values, or column nodes.

Parameters

$strOperation
operation symbol, like + or *
$param1
The first parameter

Returns

QQMathNode
The resulting wrapper node
public static QQMathNode
# Mul( QQNode|mixed $op1, QQNode|mixed $op2 )

The multiplication operation

The multiplication operation

Parameters

$op1
The first operand
$op2
The second operand

Returns

QQMathNode
The resulting wrapper node
public static QQMathNode
# Div( QQNode|mixed $op1, QQNode|mixed $op2 )

The division operation

The division operation

Parameters

$op1
The first operand
$op2
The second operand

Returns

QQMathNode
The resulting wrapper node
public static QQMathNode
# Sub( QQNode|mixed $op1, QQNode|mixed $op2 )

The subtraction operation

The subtraction operation

Parameters

$op1
The first operand
$op2
The second operand

Returns

QQMathNode
The resulting wrapper node
public static QQMathNode
# Add( QQNode|mixed $op1, QQNode|mixed $op2 )

The addition operation

The addition operation

Parameters

$op1
The first operand
$op2
The second operand

Returns

QQMathNode
The resulting wrapper node
public static QQMathNode
# Neg( QQNode|mixed $op1 )

The negation unary operation

The negation unary operation

Parameters

$op1
The first operand

Returns

QQMathNode
The resulting wrapper node
API documentation generated by ApiGen