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:     /**
  4:      * A helper class used by the QCubed Code Generator to describe a table's column
  5:      *
  6:      * @package Codegen
  7:      * @property QSqlTable|QTypeTable $OwnerTable             Table in which this column exists
  8:      * @property boolean           $PrimaryKey             Is the column a (part of) primary key
  9:      * @property string            $Name                   Column name
 10:      * @property string            $PropertyName           Corresponding property name for the table
 11:      * @property string            $VariableName           Corresponding variable name (in ORM class and elsewhere)
 12:      * @property string            $VariableType           Type of data this column is supposed to store (constant from QType class)
 13:      * @property string            $VariableTypeAsConstant Variable type expressed as QType casted string (integer column would have this value as: "QType::Integer")
 14:      * @property string            $DbType                 Type in the database
 15:      * @property int               $Length                 If applicable, the length of data to be stored (useful for varchar data types)
 16:      * @property mixed             $Default                Default value of the column
 17:      * @property boolean           $NotNull                Is this column a "NOT NULL" column?
 18:      * @property boolean           $Identity               Is this column an Identity column?
 19:      * @property boolean           $Indexed                Is there a single column index on this column?
 20:      * @property boolean           $Unique                 Does this column have a 'Unique' key defined on it?
 21:      * @property boolean           $Timestamp              Can this column contain a timestamp value?
 22:      * @property QReference        $Reference              Reference to another column (if this one is a foreign key)
 23:      * @property array             $Options                Options for codegen
 24:      * @property string            $Comment                Comment on the column
 25:      */
 26:     class QSqlColumn extends QBaseClass {
 27: 
 28:         /////////////////////////////
 29:         // Protected Member Variables
 30:         /////////////////////////////
 31: 
 32:         /**
 33:          * @var QSqlTable The table in which this column exists.
 34:          */
 35:         protected $objOwnerTable;
 36: 
 37:         /**
 38:          * Specifies whether or not the column is a Primary Key
 39:          * @var bool PrimaryKey
 40:          */
 41:         protected $blnPrimaryKey;
 42: 
 43:         /**
 44:          * Name of the column as defined in the database
 45:          * So for example, "first_name"
 46:          * @var string Name
 47:          */
 48:         protected $strName;
 49: 
 50:         /**
 51:          * Name of the column as an object Property
 52:          * So for "first_name", it would be FirstName
 53:          * @var string PropertyName
 54:          */
 55:         protected $strPropertyName;
 56: 
 57:         /**
 58:          * Name of the column as an object protected Member Variable
 59:          * So for "first_name VARCHAR(50)", it would be strFirstName
 60:          * @var string VariableName
 61:          */
 62:         protected $strVariableName;
 63: 
 64:         /**
 65:          * The type of the protected member variable (uses one of the string constants from the QType class)
 66:          * @var string VariableType
 67:          */
 68:         protected $strVariableType;
 69: 
 70:         /**
 71:          * The type of the protected member variable (uses the actual constant from the Type class)
 72:          * @var string VariableType
 73:          */
 74:         protected $strVariableTypeAsConstant;
 75: 
 76:         /**
 77:          * The actual type of the column in the database (uses one of the string constants from the DatabaseType class)
 78:          * @var string DbType
 79:          */
 80:         protected $strDbType;
 81: 
 82:         /**
 83:          * Length of the column as defined in the database
 84:          * @var int Length
 85:          */
 86:         protected $intLength;
 87: 
 88:         /**
 89:          * The default value for the column as defined in the database
 90:          * @var mixed Default
 91:          */
 92:         protected $mixDefault;
 93: 
 94:         /**
 95:          * Specifies whether or not the column is specified as "NOT NULL"
 96:          * @var bool NotNull
 97:          */
 98:         protected $blnNotNull;
 99: 
100:         /**
101:          * Specifies whether or not the column is an identiy column (like auto_increment)
102:          * @var bool Identity
103:          */
104:         protected $blnIdentity;
105: 
106:         /**
107:          * Specifies whether or not the column is a single-column Index
108:          * @var bool Indexed
109:          */
110:         protected $blnIndexed;
111: 
112:         /**
113:          * Specifies whether or not the column is a unique
114:          * @var bool Unique
115:          */
116:         protected $blnUnique;
117: 
118:         /**
119:          * Specifies whether or not the column is a system-updated "timestamp" column
120:          * @var bool Timestamp
121:          */
122:         protected $blnTimestamp;
123: 
124:         /**
125:          * If the table column is foreign keyed off another column, then this
126:          * Column instance would be a reference to another object
127:          * @var QReference Reference
128:          */
129:         protected $objReference;
130: 
131:         /**
132:          * The string value of the comment field in the database.
133:          * @var string Comment
134:          */
135:         protected $strComment;
136: 
137:         /**
138:          * Various overrides and options embedded in the comment for the column as a json object.
139:          * @var array Overrides
140:          */
141:         protected $options = array();
142: 
143:         /**
144:          * For Timestamp columns, will add to the sql code to set this field to NOW whenever there is a save
145:          * @var boolean
146:          */
147:         protected $blnAutoUpdate;
148: 
149: 
150:         ////////////////////
151:         // Public Overriders
152:         ////////////////////
153: 
154:         /**
155:          * Override method to perform a property "Get"
156:          * This will get the value of $strName
157:          *
158:          * @param string $strName Name of the property to get
159:          * @throws Exception
160:          * @throws QCallerException
161:          * @return mixed
162:          */
163:         public function __get($strName) {
164:             switch ($strName) {
165:                 case 'OwnerTable':
166:                     return $this->objOwnerTable;
167:                 case 'PrimaryKey':
168:                     return $this->blnPrimaryKey;
169:                 case 'Name':
170:                     return $this->strName;
171:                 case 'PropertyName':
172:                     return $this->strPropertyName;
173:                 case 'VariableName':
174:                     return $this->strVariableName;
175:                 case 'VariableType':
176:                     return $this->strVariableType;
177:                 case 'VariableTypeAsConstant':
178:                     return $this->strVariableTypeAsConstant;
179:                 case 'DbType':
180:                     return $this->strDbType;
181:                 case 'Length':
182:                     return $this->intLength;
183:                 case 'Default':
184:                     return $this->mixDefault;
185:                 case 'NotNull':
186:                     return $this->blnNotNull;
187:                 case 'Identity':
188:                     return $this->blnIdentity;
189:                 case 'Indexed':
190:                     return $this->blnIndexed;
191:                 case 'Unique':
192:                     return $this->blnUnique;
193:                 case 'Timestamp':
194:                     return $this->blnTimestamp;
195:                 case 'Reference':
196:                     return $this->objReference;
197:                 case 'Comment':
198:                     return $this->strComment;
199:                 case 'Options':
200:                     return $this->options;
201:                 case 'AutoUpdate':
202:                     return $this->blnAutoUpdate;
203:                 default:
204:                     try {
205:                         return parent::__get($strName);
206:                     } catch (QCallerException $objExc) {
207:                         $objExc->IncrementOffset();
208:                         throw $objExc;
209:                     }
210:             }
211:         }
212: 
213:         /**
214:          * Override method to perform a property "Set"
215:          * This will set the property $strName to be $mixValue
216:          *
217:          * @param string $strName Name of the property to set
218:          * @param string $mixValue New value of the property
219:          * @throws Exception
220:          * @throws QCallerException
221:          * @return mixed
222:          */
223:         public function __set($strName, $mixValue) {
224:             try {
225:                 switch ($strName) {
226:                     case 'OwnerTable':
227:                         //return $this->objOwnerTable = QType::cast($mixValue, 'QSqlTable');
228:                         // $mixValue might be a QSqlTable or a QTypeTable
229:                         return $this->objOwnerTable = $mixValue;
230:                     case 'PrimaryKey':
231:                         return $this->blnPrimaryKey = QType::Cast($mixValue, QType::Boolean);
232:                     case 'Name':
233:                         return $this->strName = QType::Cast($mixValue, QType::String);
234:                     case 'PropertyName':
235:                         return $this->strPropertyName = QType::Cast($mixValue, QType::String);
236:                     case 'VariableName':
237:                         return $this->strVariableName = QType::Cast($mixValue, QType::String);
238:                     case 'VariableType':
239:                         return $this->strVariableType = QType::Cast($mixValue, QType::String);
240:                     case 'VariableTypeAsConstant':
241:                         return $this->strVariableTypeAsConstant = QType::Cast($mixValue, QType::String);
242:                     case 'DbType':
243:                         return $this->strDbType = QType::Cast($mixValue, QType::String);
244:                     case 'Length':
245:                         return $this->intLength = QType::Cast($mixValue, QType::Integer);
246:                     case 'Default':
247:                         if ($mixValue === null || (($mixValue == '' || $mixValue == '0000-00-00 00:00:00' || $mixValue == '0000-00-00') && !$this->blnNotNull))
248:                             return $this->mixDefault = null;
249:                         else if (is_int($mixValue))
250:                             return $this->mixDefault = QType::Cast($mixValue, QType::Integer);
251:                         else if (is_numeric($mixValue))
252:                             return $this->mixDefault = QType::Cast($mixValue, QType::Float);
253:                         else
254:                             return $this->mixDefault = QType::Cast($mixValue, QType::String);
255:                     case 'NotNull':
256:                         return $this->blnNotNull = QType::Cast($mixValue, QType::Boolean);
257:                     case 'Identity':
258:                         return $this->blnIdentity = QType::Cast($mixValue, QType::Boolean);
259:                     case 'Indexed':
260:                         return $this->blnIndexed = QType::Cast($mixValue, QType::Boolean);
261:                     case 'Unique':
262:                         return $this->blnUnique = QType::Cast($mixValue, QType::Boolean);
263:                     case 'Timestamp':
264:                         return $this->blnTimestamp = QType::Cast($mixValue, QType::Boolean);
265:                     case 'Reference':
266:                         return $this->objReference = QType::Cast($mixValue, 'QReference');
267:                     case 'Comment':
268:                         return $this->strComment = QType::Cast($mixValue, QType::String);
269:                     case 'Options':
270:                         return $this->options = QType::Cast($mixValue, QType::ArrayType);
271:                     case 'AutoUpdate':
272:                         return $this->blnAutoUpdate = QType::Cast($mixValue, QType::Boolean);
273:                     default:
274:                         return parent::__set($strName, $mixValue);
275:                 }
276:             } catch (QCallerException $objExc) {
277:                 $objExc->IncrementOffset();
278:                 throw $objExc;
279:             }
280:         }
281:     }
282: 
API documentation generated by ApiGen