Overview

Packages

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

Classes

  • AbstractControl_CodeGenerator
  • AjaxTimingForm
  • BasicForm
  • BasicOrmTests
  • BBCodeParser
  • CacheTests
  • CalculatorForm
  • CalculatorWidget
  • ComplexColumn
  • DataRepeaterExample
  • Event
  • ExampleCheckColumn1
  • ExampleCheckColumn2
  • ExampleForm
  • Examples
  • ExampleService
  • ExamplesForm
  • ExampleSingleForm
  • ExpandAsArrayTests
  • HtmlJqDoc
  • InjectForm
  • JavaScriptHelper
  • JqAttributes
  • JqControlGen
  • JqDoc
  • JqIcon
  • Method
  • ModelConnectorTests
  • MyControl
  • MyQSlider_ChangeEvent
  • NavPanel
  • NestedTabForm
  • Option
  • Order
  • PaginatorForm
  • ParamsForm
  • PersistentExampleForm
  • PersonEditPanel
  • PluginEditForm
  • PluginManagerForm
  • Project
  • ProjectEditPanel
  • ProjectListForm
  • ProjectPickerListBox
  • ProjectViewPanel
  • QAbstractCacheProvider
  • QAbstractHtmlTableColumn
  • QAbstractHtmlTableDataColumn
  • QAccordion
  • QAccordion_ActivateEvent
  • QAccordion_BeforeActivateEvent
  • QAccordion_CreateEvent
  • QAccordionBase
  • QAccordionGen
  • QAction
  • QActionControl
  • QAjaxAction
  • QAjaxControlAction
  • QAjaxResponse
  • QAlertAction
  • QApplication
  • QApplicationBase
  • QArchive
  • QAutocomplete
  • QAutocomplete_ChangeEvent
  • QAutocomplete_CloseEvent
  • QAutocomplete_CodeGenerator
  • QAutocomplete_CreateEvent
  • QAutocomplete_FocusEvent
  • QAutocomplete_OpenEvent
  • QAutocomplete_ResponseEvent
  • QAutocomplete_SearchEvent
  • QAutocomplete_SelectEvent
  • QAutocomplete_SourceEvent
  • QAutocompleteBase
  • QAutocompleteBase_CodeGenerator
  • QAutocompleteGen
  • QAutocompleteListItem
  • QBackspaceKeyEvent
  • QBaseClass
  • QBlockControl
  • QBlurControlAction
  • QBlurEvent
  • QBorderCollapse
  • QBorderStyle
  • QBrowserType
  • QButton
  • QButtonBase
  • QCache
  • QCacheDeleteAction
  • QCacheDeleteAllAction
  • QCacheProviderAPC
  • QCacheProviderLocalMemory
  • QCacheProviderLocalMemoryTest
  • QCacheProviderMemcache
  • QCacheProviderNoCache
  • QCacheProviderProxy
  • QCacheSetAction
  • QCalendar
  • QCalendarType
  • QCallType
  • QCausesValidation
  • QCellClickEvent
  • QChangeEvent
  • QCheckBox
  • QCheckBox_CodeGenerator
  • QCheckBoxBase_CodeGenerator
  • QCheckBoxLegacyColumn
  • QCheckBoxList
  • QCheckBoxList_CodeGenerator
  • QCheckBoxListBase_CodeGenerator
  • QClickEvent
  • QCodeGen
  • QCodeGenBase
  • QConfirmAction
  • QContextMenuEvent
  • QControl
  • QControl_CodeGenerator
  • QControlBase
  • QControlBase_CodeGenerator
  • QControlBaseTests
  • QControlCategoryType
  • QControlGrouping
  • QControlLabel
  • QControlProxy
  • QConvertNotation
  • QConvertNotationBase
  • QCrossScripting
  • QCryptography
  • QCss
  • QCssAction
  • QCssClassAction
  • QCssTests
  • QCsvTextBox
  • QCursor
  • QDatabaseBase
  • QDatabaseCodeGen
  • QDatabaseFieldBase
  • QDatabaseFieldType
  • QDatabaseForeignKey
  • QDatabaseIndex
  • QDatabaseResultBase
  • QDatabaseRowBase
  • QDatabaseTests
  • QDataGrid
  • QDataGrid_CheckBoxColumn
  • QDataGrid_CodeGenerator
  • QDataGrid_SortEvent
  • QDataGridBase
  • QDataGridBase_CodeGenerator
  • QDataGridLegacy
  • QDataGridLegacyBase
  • QDataGridLegacyColumn
  • QDataGridLegacyRow
  • QDataGridLegacyRowStyle
  • QDataRepeater
  • QDatepicker
  • QDatepicker_BeforeShowDayEvent
  • QDatepicker_BeforeShowEvent
  • QDatepicker_CalculateWeekEvent
  • QDatepicker_ChangeMonthYearEvent
  • QDatepicker_CloseEvent
  • QDatepicker_SelectEvent
  • QDatepicker_SelectEvent2
  • QDatepickerBase
  • QDatepickerBox
  • QDatepickerBox_BeforeShowDayEvent
  • QDatepickerBox_BeforeShowEvent
  • QDatepickerBox_CalculateWeekEvent
  • QDatepickerBox_ChangeMonthYearEvent
  • QDatepickerBox_CloseEvent
  • QDatepickerBox_CodeGenerator
  • QDatepickerBox_SelectEvent
  • QDatepickerBoxBase
  • QDatepickerBoxBase_CodeGenerator
  • QDatepickerBoxGen
  • QDatepickerGen
  • QDateTime
  • QDateTimePicker
  • QDateTimePicker_CodeGenerator
  • QDateTimePickerBase_CodeGenerator
  • QDateTimePickerFormat
  • QDateTimePickerType
  • QDateTimeSpan
  • QDateTimeTests
  • QDateTimeTextBox
  • QDbBackedFormStateHandler
  • QDbBackedSessionHandler
  • QDialog
  • QDialog_BeforeCloseEvent
  • QDialog_ButtonEvent
  • QDialog_CloseEvent
  • QDialog_CreateEvent
  • QDialog_DragEvent
  • QDialog_DragStartEvent
  • QDialog_DragStopEvent
  • QDialog_FocusEvent
  • QDialog_OpenEvent
  • QDialog_ResizeEvent
  • QDialog_ResizeStartEvent
  • QDialog_ResizeStopEvent
  • QDialogBase
  • QDialogBox
  • QDialogGen
  • QDisplayStyle
  • QDoubleClickEvent
  • QDownArrowKeyEvent
  • QDragDropEvent
  • QDraggable
  • QDraggable_CreateEvent
  • QDraggable_DragEvent
  • QDraggable_StartEvent
  • QDraggable_StopEvent
  • QDraggableBase
  • QDraggableGen
  • QDroppable
  • QDroppable_ActivateEvent
  • QDroppable_CreateEvent
  • QDroppable_DeactivateEvent
  • QDroppable_DropEvent
  • QDroppable_OutEvent
  • QDroppable_OverEvent
  • QDroppableBase
  • QDroppableGen
  • QDropZoneGrouping
  • QEmailAttachment
  • QEmailMessage
  • QEmailServer
  • QEmailStringAttachment
  • QEmailTextBox
  • QEnterKeyEvent
  • QErrorAttribute
  • QEscapeKeyEvent
  • QEvent
  • QFieldset
  • QFile
  • QFileAsset
  • QFileAssetBase
  • QFileAssetDialog
  • QFileAssetType
  • QFileControl
  • QFileFormStateHandler
  • QFilterType
  • QFloatTextBox
  • QFloatTextBox_CodeGenerator
  • QFloatTextBoxBase_CodeGenerator
  • QFocusControlAction
  • QFocusEvent
  • QFocusInEvent
  • QFocusOutEvent
  • QFolder
  • QFontFamily
  • QForm
  • QFormBase
  • QFormGen
  • QFormStateHandler
  • QGridLines
  • QHideCalendarAction
  • QHideDialog
  • QHideDialogBox
  • QHListControl
  • QHListItem
  • QHorizontalAlign
  • QHtml
  • QHtmlAttributeManager
  • QHtmlAttributeManagerBase
  • QHtmlReporter
  • QHtmlTable
  • QHtmlTable_CodeGenerator
  • QHtmlTableBase
  • QHtmlTableCallableColumn
  • QHtmlTableCheckBoxColumn
  • QHtmlTableCheckBoxColumn_ClickEvent
  • QHtmlTableIndexedColumn
  • QHtmlTableLinkColumn
  • QHtmlTableNodeColumn
  • QHtmlTablePropertyColumn
  • QI18n
  • QI18nTests
  • QImageBase
  • QImageBrowser
  • QImageBrowserBase
  • QImageBrowserNav
  • QImageBrowserThumbnails
  • QImageButton
  • QImageControl
  • QImageControlBase
  • QImageFileAsset
  • QImageLabel
  • QImageLabelBase
  • QImageRollover
  • QImageType
  • QIndex
  • QInformixPdoDatabase
  • QInformixPdoDatabaseField
  • QInformixPdoDatabaseResult
  • QInformixPdoDatabaseRow
  • QInputEvent
  • QInstallationValidationResult
  • QInstallationValidator
  • QIntegerTextBox
  • QIntegerTextBox_CodeGenerator
  • QIntegerTextBoxBase_CodeGenerator
  • QJavaScriptAction
  • QJQAction
  • QJQBounceAction
  • QJqButton
  • QJqButton_CreateEvent
  • QJqButtonBase
  • QJqButtonGen
  • QJqCheckBox
  • QJqCheckBox_CreateEvent
  • QJqCheckBoxBase
  • QJqCheckBoxGen
  • QJQHideAction
  • QJQHideEffectAction
  • QJQHighlightAction
  • QJQPulsateAction
  • QJqRadioButton
  • QJqRadioButton_CreateEvent
  • QJqRadioButtonBase
  • QJqRadioButtonGen
  • QJQShakeAction
  • QJQShowAction
  • QJQShowEffectAction
  • QJQSizeAction
  • QJQToggleAction
  • QJQToggleEffectAction
  • QJQTransferAction
  • QJqUiEvent
  • QJqUiPropertyEvent
  • QJsClosure
  • QJsFunction
  • QJsNoQuoteKey
  • QJsParameterList
  • QJsPriority
  • QJsTimer
  • QJsTimerBase
  • QJsVarName
  • QKeyDownEvent
  • QKeyPressEvent
  • QKeyUpEvent
  • QLabel
  • QLabel_CodeGenerator
  • QLabelBase_CodeGenerator
  • QLexer
  • QLinkButton
  • QListBox
  • QListBox_CodeGenerator
  • QListBoxBase
  • QListBoxBase_CodeGenerator
  • QListControl
  • QListControl_CodeGenerator
  • QListControlBase_CodeGenerator
  • QListItem
  • QListItemBase
  • QListItemStyle
  • QManyToManyReference
  • QMenu
  • QMenu_BlurEvent
  • QMenu_CreateEvent
  • QMenu_FocusEvent
  • QMenu_SelectEvent
  • QMenuBase
  • QMenuGen
  • QMimeType
  • QModelConnectorArgumentType
  • QModelConnectorCreateType
  • QModelConnectorEditDlg
  • QModelConnectorOptions
  • QModelConnectorParam
  • QMouseDownEvent
  • QMouseEnterEvent
  • QMouseLeaveEvent
  • QMouseMoveEvent
  • QMouseOutEvent
  • QMouseOverEvent
  • QMouseUpEvent
  • QMultiLevelCacheProvider
  • QMySqlDatabase
  • QMySqlDatabaseField
  • QMySqlDatabaseResult
  • QMySqli5ClusterDatabase
  • QMySqli5Database
  • QMySqli5DatabaseField
  • QMySqli5DatabaseResult
  • QMySqliDatabase
  • QMySqliDatabaseField
  • QMySqliDatabaseResult
  • QMySqliDatabaseRow
  • QNoScriptAjaxAction
  • QNumericTextBox
  • QOnEvent
  • QOracleDatabase
  • QOracleDatabaseField
  • QOracleDatabaseResult
  • QOracleDatabaseRow
  • QOrderedListType
  • QOverflow
  • QPaginatedControl
  • QPaginator
  • QPaginatorBase
  • QPanel
  • QPartialQueryBuilder
  • QPdoDatabase
  • QPdoDatabaseResult
  • QPgConditionILike
  • QPgConditionJsonContains
  • QPgQ
  • QPosition
  • QPostgreSqlDatabase
  • QPostgreSqlDatabaseField
  • QPostgreSqlDatabaseResult
  • QPostgreSqlDatabaseRow
  • QPostgreSqlPdoDatabase
  • QPostgreSqlPdoDatabaseField
  • QPostgreSqlPdoDatabaseResult
  • QPostgreSqlPdoDatabaseRow
  • QProgressbar
  • QProgressbar_ChangeEvent
  • QProgressbar_CompleteEvent
  • QProgressbar_CreateEvent
  • QProgressbarBase
  • QProgressbarGen
  • QQ
  • QQAggregationClause
  • QQAliasTests
  • 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
  • QQFuncTests
  • QQFunctionNode
  • QQGroupBy
  • QQHavingClause
  • QQLimitInfo
  • QQMathNode
  • QQMathOpTests
  • QQMaximum
  • QQMinimum
  • QQNamedValue
  • QQNode
  • QQNoParentNode
  • QQOrderBy
  • QQReverseReferenceNode
  • QQSelect
  • QQSubQueryCountNode
  • QQSubQueryNode
  • QQSubQuerySqlNode
  • QQSum
  • QQTableNode
  • QQuery
  • QQueryBuilder
  • QQueryExpansion
  • QQVirtualNode
  • QRadioButton
  • QRadioButtonList
  • QRadioButtonList_CodeGenerator
  • QRadioButtonListBase_CodeGenerator
  • QRedirectAction
  • QReference
  • QRegex
  • QRegisterClickPositionAction
  • QRepeatDirection
  • QRequestMode
  • QResetTimerAction
  • QResizable
  • QResizable_CreateEvent
  • QResizable_ResizeEvent
  • QResizable_StartEvent
  • QResizable_StopEvent
  • QResizableBase
  • QResizableGen
  • QResizeHandleDirection
  • QRestServiceCodeGen
  • QReverseReference
  • QRssCategory
  • QRssFeed
  • QRssImage
  • QRssItem
  • QSampleControl
  • QSampleTranslation
  • QSelectable
  • QSelectable_CreateEvent
  • QSelectable_SelectedEvent
  • QSelectable_SelectingEvent
  • QSelectable_StartEvent
  • QSelectable_StopEvent
  • QSelectable_UnselectedEvent
  • QSelectable_UnselectingEvent
  • QSelectableBase
  • QSelectableGen
  • QSelectControlAction
  • QSelectEvent
  • QSelectionMode
  • QSelectMenu
  • QSelectMenu_ChangeEvent
  • QSelectMenu_CloseEvent
  • QSelectMenu_CreateEvent
  • QSelectMenu_FocusEvent
  • QSelectMenu_OpenEvent
  • QSelectMenu_SelectEvent
  • QSelectMenuBase
  • QSelectMenuGen
  • QServerAction
  • QServerControlAction
  • QSessionFormStateHandler
  • QSetValueAction
  • QShowCalendarAction
  • QShowDialog
  • QShowDialogBox
  • QSlider
  • QSlider_ChangeEvent
  • QSlider_CodeGenerator
  • QSlider_CreateEvent
  • QSlider_SlideEvent
  • QSlider_StartEvent
  • QSlider_StopEvent
  • QSliderBase
  • QSliderBase_CodeGenerator
  • QSliderGen
  • QSoapMethod
  • QSoapParameter
  • QSoapService
  • QSortable
  • 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
  • QSortableBase
  • QSortableGen
  • QSpinner
  • QSpinner_ChangeEvent
  • QSpinner_CreateEvent
  • QSpinner_SpinEvent
  • QSpinner_StartEvent
  • QSpinner_StopEvent
  • QSpinnerBase
  • QSpinnerGen
  • QSqlColumn
  • QSqLite3PdoDatabase
  • QSqLite3PdoDatabaseField
  • QSqLite3PdoDatabaseResult
  • QSqLite3PdoDatabaseRow
  • QSqlServer2005Database
  • QSqlServer2005DatabaseField
  • QSqlServer2005DatabaseResult
  • QSqlServer2005DatabaseRow
  • QSqlServerDatabase
  • QSqlServerDatabaseField
  • QSqlServerDatabaseResult
  • QSqlServerDatabaseRow
  • QSqlTable
  • QStack
  • QStopPropagationAction
  • QString
  • QStringTest
  • QTabKeyEvent
  • QTabs
  • QTabs_ActivateEvent
  • QTabs_BeforeActivateEvent
  • QTabs_BeforeLoadEvent
  • QTabs_CreateEvent
  • QTabs_LoadEvent
  • QTabsBase
  • QTabsGen
  • QTag
  • QTagStyler
  • QTerminateAction
  • QTestControl
  • QTestForm
  • QTextAlign
  • QTextBox
  • QTextBox_CodeGenerator
  • QTextBoxBase
  • QTextBoxBase_CodeGenerator
  • QTextMode
  • QTimer
  • QTimerExpiredEvent
  • QTimerTests
  • QToggleCssClassAction
  • QToggleDisplayAction
  • QToggleEnableAction
  • QTranslationPoParser
  • QTreeNav
  • QTreeNavItem
  • QType
  • QTypeTable
  • QTypeTests
  • QUnitTestCaseBase
  • QUnorderedListStyle
  • QUpArrowKeyEvent
  • QUrlTextBox
  • QVerticalAlign
  • QVirtualAttributeColumn
  • QWaitIcon
  • QWatcher
  • QWatcherBase
  • QWatcherCache
  • QWatcherDB
  • QWatcherNone
  • QWriteBox
  • RecordsSummary
  • RefreshForm
  • SampleComposite
  • SampleForm
  • SelectableLabel
  • SelectForm
  • SpeedForm
  • TestImageBrowser
  • UrlForm

Interfaces

  • ICacheAction
  • QDataList_CodeGenerator_Interface
  • QTranslationBase

Traits

  • QDataBinder
  • QListItemManager
  • QModelTrait

Exceptions

  • QCallerException
  • QCrossScriptingException
  • QCryptographyException
  • QDatabaseExceptionBase
  • QDataBindException
  • QDateTimeNullException
  • QEmailException
  • QIndexOutOfRangeException
  • QInformixPdoDatabaseException
  • QInvalidCastException
  • QInvalidFormStateException
  • QMySqliDatabaseException
  • QOptimisticLockingException
  • QOracleDatabaseException
  • QPdoDatabaseException
  • QPoParserException
  • QPostgreSqlDatabaseException
  • QPostgreSqlPdoDatabaseException
  • QRemoteAdminDeniedException
  • QSqLite3PdoDatabaseException
  • QSqlServer2005DatabaseException
  • QSqlServerDatabaseException
  • QUndefinedMethodException
  • QUndefinedPrimaryKeyException
  • QUndefinedPropertyException

Functions

  • __database_check_error
  • __QForm_EvaluateTemplate_ObHandler
  • _b
  • _indent
  • _nl
  • _p
  • _r
  • _t
  • _tp
  • _tr
  • array_trim
  • beginsWith
  • CamelCaseFromDash
  • CastToInt
  • DataGridEvalHandleError
  • 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
  1: <?php
  2:     /**
  3:      * This is the main exception to be thrown by any
  4:      * method to indicate that the CALLER is responsible for
  5:      * causing the exception.  This works in conjunction with QCubed's
  6:      * error handling/reporting, so that the correct file/line-number is
  7:      * displayed to the user.
  8:      *
  9:      * So for example, for a class that contains the method GetItemAtIndex($intIndex),
 10:      * it is conceivable that the caller could call GetItemAtIndex(15), where 15 does not exist.
 11:      * GetItemAtIndex would then thrown an IndexOutOfRangeException (which extends CallerException).
 12:      * If the CallerException is not caught, then the Exception will be reported to the user.  The CALLER
 13:      * (the script who CALLED GetItemAtIndex) would have that line highlighted as being responsible
 14:      * for calling the error.
 15:      *
 16:      * The PHP default for exeception reporting would normally say that the "throw Exception" line in GetItemAtIndex
 17:      * is responsible for throwing the exception.  While this is technically true, in reality, it was the line that
 18:      * CALLED GetItemAtIndex which is responsible.  In short, this allows for much cleaner exception reporting.
 19:      *
 20:      * On a more in-depth note, in general, suppose a method OuterMethod takes in parameters, and ends up passing those
 21:      * paremeters into ANOTHER method InnerMethod which could throw a CallerException.  OuterMethod is responsible
 22:      * for catching and rethrowing the caller exception.  And when this is done, IncrementOffset() MUST be called on
 23:      * the exception object, to indicate that OuterMethod's CALLER is responsible for the exception.
 24:      *
 25:      * So the code snippet to call InnerMethod by OuterMethod should look like:
 26:      * <code>
 27:      *  function OuterMethod($mixValue) {
 28:      *      try {
 29:      *          InnerMethod($mixValue);
 30:      *      } catch (CallerException $objExc) {
 31:      *          $objExc->IncrementOffset();
 32:      *          throw $objExc;
 33:      *      }
 34:      *      // Do Other Stuff
 35:      *  }
 36:      * </code>
 37:      * Again, this will assure the user that the line of code responsible for the excpetion is properly being reported
 38:      * by the QCubed error reporting/handler.
 39:      * @property-read int $Offset The exception offset.
 40:      * @property-read string $BackTrace The exception backtrace.
 41:      * @property-read string $TraceArray The exception backtrace in a form of an array.
 42:      */
 43:     class QCallerException extends Exception {
 44:         /**
 45:          * @var int Exception offset
 46:          *          The element in the stack trace array indicated by this index is marked
 47:          *          as the point which caused the exception
 48:          */
 49:         private $intOffset;
 50:         /** @var array The stack trace array as caputred by debug_backtrace() */
 51:         private $strTraceArray;
 52: 
 53:         /**
 54:          * Set message for the exception
 55:          *
 56:          * @param string $strMessage
 57:          */
 58:         public function setMessage($strMessage) {
 59:             $this->message = $strMessage;
 60:         }
 61: 
 62:         /**
 63:          * The constructor of CallerExceptions.  Takes in a message string
 64:          * as well as an optional Offset parameter (defaults to 1).
 65:          * The Offset specifiies how many calls up the call stack is responsible
 66:          * for the exception.  By definition, when a CallerException is called,
 67:          * at the very least the Caller of the most immediate function, which is
 68:          * 1 up the call stack, is responsible.  So therefore, by default, intOffset
 69:          * is set to 1.
 70:          * 
 71:          * It is rare for intOffset to be set to an integer other than 1.
 72:          *
 73:          * Normally, the Offset would be altered by calls to IncrementOffset
 74:          * at every step the CallerException is caught/rethrown up the call stack.
 75:          *
 76:          * @param string  $strMessage the Message of the exception
 77:          * @param integer $intOffset  the optional Offset value (currently defaulted to 1)
 78:          */
 79:         public function __construct($strMessage, $intOffset = 1) {
 80:             parent::__construct($strMessage);
 81:             $this->intOffset = $intOffset;
 82:             $this->strTraceArray = debug_backtrace();
 83: 
 84:             if (isset($this->strTraceArray[$this->intOffset]['file'])) {
 85:                 $this->file = $this->strTraceArray[$this->intOffset]['file'];
 86:                 $this->line = $this->strTraceArray[$this->intOffset]['line'];
 87:             }
 88:         }
 89: 
 90:         public function IncrementOffset() {
 91:             $this->intOffset++;
 92:             if (array_key_exists('file', $this->strTraceArray[$this->intOffset]))
 93:                 $this->file = $this->strTraceArray[$this->intOffset]['file'];
 94:             else
 95:                 $this->file = '';
 96:             if (array_key_exists('line', $this->strTraceArray[$this->intOffset]))
 97:                 $this->line = $this->strTraceArray[$this->intOffset]['line'];
 98:             else
 99:                 $this->line = '';
100:         }
101: 
102:         public function DecrementOffset() {
103:             $this->intOffset--;
104:             if (array_key_exists('file', $this->strTraceArray[$this->intOffset]))
105:                 $this->file = $this->strTraceArray[$this->intOffset]['file'];
106:             else
107:                 $this->file = '';
108:             if (array_key_exists('line', $this->strTraceArray[$this->intOffset]))
109:                 $this->line = $this->strTraceArray[$this->intOffset]['line'];
110:             else
111:                 $this->line = '';
112:         }
113: 
114:         /**
115:          * PHP magic method
116:          * @param $strName
117:          *
118:          * @return array|int|mixed
119:          */
120:         public function __get($strName) {
121:             if ($strName == "Offset")
122:                 return $this->intOffset;
123:             else if ($strName == "BackTrace") {
124:                 $objTraceArray = debug_backtrace();
125:                 return (var_export($objTraceArray, true));
126:             } else if ($strName == "TraceArray") {
127:                 return $this->strTraceArray;
128:             }
129:         }
130:     }
131: 
132:     /**
133:      * Used when trying to access a table object which does not have a primary key defined on it
134:      */
135:     class QUndefinedPrimaryKeyException extends QCallerException {
136:         /**
137:          * Constructor method
138:          * @param string $strMessage
139:          */
140:         public function __construct($strMessage) {
141:             parent::__construct($strMessage, 2);
142:         }
143:     }
144: 
145:     /**
146:      * Thrown when trying to access an element in an array whose index does not exist
147:      * NOTE: this exception will not fire automatically for you unless you use it with the try-catch block
148:      */
149:     class QIndexOutOfRangeException extends QCallerException {
150:         /**
151:          * Constructor method
152:          * @param string $intIndex
153:          * @param int    $strMessage
154:          */
155:         public function __construct($intIndex, $strMessage) {
156:             if ($strMessage)
157:                 $strMessage = ": " . $strMessage;
158:             parent::__construct(sprintf(QApplication::Translate("Index (%s) is out of range%s"), $intIndex, $strMessage), 2);
159:         }
160:     }
161: 
162:     /**
163:      * Thrown when a particular property of class is not defined and we try to access it
164:      */
165:     class QUndefinedPropertyException extends QCallerException {
166:         /**
167:          * Constructor method
168:          * @param string $strType
169:          * @param int    $strClass
170:          * @param string $strProperty
171:          */
172:         public function __construct($strType, $strClass, $strProperty) {
173:             parent::__construct(sprintf(QApplication::Translate("Undefined %s property or variable in '%s' class: %s"), $strType, $strClass, $strProperty), 2);
174:         }
175:     }
176: 
177:     /**
178:      * Thrown when we try to call an undefined method. Helpful for codegen.
179:      */
180:     class QUndefinedMethodException extends QCallerException {
181:         public function __construct($strClass, $strMethod) {
182:             parent::__construct(sprintf(QApplication::Translate("Undefined method in '%s' class: %s"), $strClass, $strMethod), 2);
183:         }
184:     }
185: 
186:     /**
187:      * Thrown when optimistic locking (in ORM Save() method) detects that DB data was updated
188:      */
189:     class QOptimisticLockingException extends QCallerException {
190:         /**
191:          * Constructor method
192:          * @param string $strClass
193:          */
194:         public function __construct($strClass) {
195:             parent::__construct(sprintf(QApplication::Translate('Optimistic Locking constraint when trying to update %s object.  To update anyway, call ->Save() with $blnForceUpdate set to true'), $strClass, 2));
196:         }
197:     }
198: 
199:     /**
200:      * Thrown when the desired page is protected by ALLOW REMOTE ADMIN feature and the request does not qualify
201:      */
202:     class QRemoteAdminDeniedException extends QCallerException {
203:         /**
204:          * Constructor method
205:          */
206:         public function __construct() {
207:             parent::__construct(
208:                 sprintf(
209:                     QApplication::Translate('Remote access to "%s" has been disabled.' . "\n" .
210:                     'To allow remote access to this script, set the ALLOW_REMOTE_ADMIN constant to TRUE' . "\n" .
211:                     'or to "%s" in "configuration.inc.php".')
212:                     , QApplication::$RequestUri, $_SERVER['REMOTE_ADDR'])
213:                 , 2);
214:         }
215:     }
216: 
217:     /**
218:      * Thrown when formstate is not found
219:      */
220:     class QInvalidFormStateException extends QCallerException {
221:         /**
222:          * Constructor method
223:          * @param string $strFormId Form ID for which the state was not found
224:          */
225:         public function __construct($strFormId) {
226:             parent::__construct(sprintf(QApplication::Translate('Invalid Form State Data for "%s" object (session may have been lost)'), $strFormId), 2);
227:         }
228:     }
229: 
230:     /**
231:      * @property-read integer $Offset
232:      * @property-read mixed $BackTrace
233:      * @property-read string $Query
234:      */
235:     class QDataBindException extends Exception {
236:         private $intOffset;
237:         private $strTraceArray;
238:         private $strQuery;
239: 
240:         public function __construct(QCallerException $objExc) {
241:             parent::__construct($objExc->getMessage(), $objExc->getCode());
242:             $this->intOffset = $objExc->Offset;
243:             $this->strTraceArray = $objExc->TraceArray;
244: 
245:             if ($objExc instanceof QDatabaseExceptionBase)
246:                 $this->strQuery = $objExc->Query;
247: 
248:             $this->file = $this->strTraceArray[$this->intOffset]['file'];
249:             $this->line = $this->strTraceArray[$this->intOffset]['line'];
250:         }
251: 
252:         public function __get($strName) {
253:             switch($strName) {
254:                 case "Offset":
255:                     return $this->intOffset;
256: 
257:                 case "BackTrace":
258:                     $objTraceArray = debug_backtrace();
259:                     return (var_export($objTraceArray, true));
260: 
261:                 case "Query":
262:                     return $this->strQuery;
263:             }
264:         }
265:     }
API documentation generated by ApiGen