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:     /* Custom "property" event classes for this control */
   4:     /**
   5:      * Type:Function( Element input, Object inst )Default:nullA function that
   6:      * takes an input field and current datepicker instance and returns an
   7:      * options object to update the datepicker with. It is called just before
   8:      * the datepicker is displayed.  */
   9:     class QDatepicker_BeforeShowEvent extends QJqUiPropertyEvent {
  10:         const EventName = 'QDatepicker_BeforeShow';
  11:         protected $strJqProperty = 'beforeShow';
  12:     }
  13: 
  14:     /**
  15:      * Type:Function( Date date )Default:nullA function that takes a date as
  16:      * a parameter and must return an array with: 
  17:      * 
  18:      *  * [0]: true/false indicating whether or not this date is selectable
  19:      *  * [1]: a CSS class name to add to the dates cell or "" for the
  20:      * default presentation
  21:      *  * [2]: an optional popup tooltip for this date
  22:      * 
  23:      *  The function is called for each day in the datepicker before it is
  24:      * displayed.    */
  25:     class QDatepicker_BeforeShowDayEvent extends QJqUiPropertyEvent {
  26:         const EventName = 'QDatepicker_BeforeShowDay';
  27:         protected $strJqProperty = 'beforeShowDay';
  28:     }
  29: 
  30:     /**
  31:      * Type:Function()Default:jQuery.datepicker.iso8601WeekA function to
  32:      * calculate the week of the year for a given date. The default
  33:      * implementation uses the ISO 8601 definition: weeks start on a Monday;
  34:      * the first week of the year contains the first Thursday of the year.   */
  35:     class QDatepicker_CalculateWeekEvent extends QJqUiPropertyEvent {
  36:         const EventName = 'QDatepicker_CalculateWeek';
  37:         protected $strJqProperty = 'calculateWeek';
  38:     }
  39: 
  40:     /**
  41:      * Type:Function( Integer year, Integer month, Object inst
  42:      * )Default:nullCalled when the datepicker moves to a new month and/or
  43:      * year. The function receives the selected year, month (1-12), and the
  44:      * datepicker instance as parameters. this refers to the associated input
  45:      * field.    */
  46:     class QDatepicker_ChangeMonthYearEvent extends QJqUiPropertyEvent {
  47:         const EventName = 'QDatepicker_ChangeMonthYear';
  48:         protected $strJqProperty = 'onChangeMonthYear';
  49:     }
  50: 
  51:     /**
  52:      * Type:Function( String dateText, Object inst )Default:nullCalled when
  53:      * the datepicker is closed, whether or not a date is selected. The
  54:      * function receives the selected date as text ("" if none) and the
  55:      * datepicker instance as parameters. this refers to the associated input
  56:      * field.    */
  57:     class QDatepicker_CloseEvent extends QJqUiPropertyEvent {
  58:         const EventName = 'QDatepicker_Close';
  59:         protected $strJqProperty = 'onClose';
  60:     }
  61: 
  62:     /**
  63:      * Type:Function( String dateText, Object inst )Default:nullCalled when
  64:      * the datepicker is selected. The function receives the selected date as
  65:      * text and the datepicker instance as parameters. this refers to the
  66:      * associated input field.   */
  67:     class QDatepicker_SelectEvent extends QJqUiPropertyEvent {
  68:         const EventName = 'QDatepicker_Select';
  69:         protected $strJqProperty = 'onSelect';
  70:     }
  71: 
  72: 
  73:     /**
  74:      * Generated QDatepickerGen class.
  75:      * 
  76:      * This is the QDatepickerGen class which is automatically generated
  77:      * by scraping the JQuery UI documentation website. As such, it includes all the options
  78:      * as listed by the JQuery UI website, which may or may not be appropriate for QCubed. See
  79:      * the QDatepickerBase class for any glue code to make this class more
  80:      * usable in QCubed.
  81:      * 
  82:      * @see QDatepickerBase
  83:      * @package Controls\Base
  84:      * @property mixed $AltField
  85:      * An input element that is to be updated with the selected date from the
  86:      * datepicker. Use the altFormat option to change the format of the date
  87:      * within this field. Leave as blank for no alternate field.
  88:      *
  89:      * @property string $AltFormat
  90:      * The dateFormat to be used for the altField option. This allows one
  91:      * date format to be shown to the user for selection purposes, while a
  92:      * different format is actually sent behind the scenes. For a full list
  93:      * of the possible formats see the formatDate function
  94:      *
  95:      * @property string $AppendText
  96:      * The text to display after each date field, e.g., to show the required
  97:      * format.
  98:      *
  99:      * @property boolean $AutoSize
 100:      * Set to true to automatically resize the input field to accommodate
 101:      * dates in the current dateFormat.
 102:      *
 103:      * @property QJsClosure $OnBeforeShow
 104:      * Type:Function( Element input, Object inst )Default:nullA function that
 105:      * takes an input field and current datepicker instance and returns an
 106:      * options object to update the datepicker with. It is called just before
 107:      * the datepicker is displayed.
 108:      *
 109:      * @property QJsClosure $OnBeforeShowDay
 110:      * Type:Function( Date date )Default:nullA function that takes a date as
 111:      * a parameter and must return an array with: 
 112:      * 
 113:      *  * [0]: true/false indicating whether or not this date is selectable
 114:      *  * [1]: a CSS class name to add to the dates cell or "" for the
 115:      * default presentation
 116:      *  * [2]: an optional popup tooltip for this date
 117:      * 
 118:      *  The function is called for each day in the datepicker before it is
 119:      * displayed.
 120:      *
 121:      * @property string $ButtonImage
 122:      * A URL of an image to use to display the datepicker when the showOn
 123:      * option is set to "button" or "both". If set, the buttonText option
 124:      * becomes the alt value and is not directly displayed.
 125:      *
 126:      * @property boolean $ButtonImageOnly
 127:      * Whether the button image should be rendered by itself instead of
 128:      * inside a button element. This option is only relevant if the
 129:      * buttonImage option has also been set.
 130:      *
 131:      * @property string $ButtonText
 132:      * The text to display on the trigger button. Use in conjunction with the
 133:      * showOn option set to "button" or "both".
 134:      *
 135:      * @property QJsClosure $OnCalculateWeek
 136:      * Type:Function()Default:jQuery.datepicker.iso8601WeekA function to
 137:      * calculate the week of the year for a given date. The default
 138:      * implementation uses the ISO 8601 definition: weeks start on a Monday;
 139:      * the first week of the year contains the first Thursday of the year.
 140:      *
 141:      * @property boolean $ChangeMonth
 142:      * Whether the month should be rendered as a dropdown instead of text.
 143:      *
 144:      * @property boolean $ChangeYear
 145:      * Whether the year should be rendered as a dropdown instead of text. Use
 146:      * the yearRange option to control which years are made available for
 147:      * selection.
 148:      *
 149:      * @property string $CloseText
 150:      * The text to display for the close link. Use the showButtonPanel option
 151:      * to display this button.
 152:      *
 153:      * @property boolean $ConstrainInput
 154:      * When true, entry in the input field is constrained to those characters
 155:      * allowed by the current dateFormat option.
 156:      *
 157:      * @property string $CurrentText
 158:      * The text to display for the current day link. Use the showButtonPanel
 159:      * option to display this button.
 160:      *
 161:      * @property string $JqDateFormat
 162:      * The format for parsed and displayed dates. For a full list of the
 163:      * possible formats see the formatDate function.
 164:      *
 165:      * @property array $DayNames
 166:      * The list of long day names, starting from Sunday, for use as requested
 167:      * via the dateFormat option.
 168:      *
 169:      * @property array $DayNamesMin
 170:      * The list of minimised day names, starting from Sunday, for use as
 171:      * column headers within the datepicker.
 172:      *
 173:      * @property array $DayNamesShort
 174:      * The list of abbreviated day names, starting from Sunday, for use as
 175:      * requested via the dateFormat option.
 176:      *
 177:      * @property mixed $DefaultDate
 178:      * Set the date to highlight on first opening if the field is blank.
 179:      * Specify either an actual date via a Date object or as a string in the
 180:      * current dateFormat, or a number of days from today (e.g. +7) or a
 181:      * string of values and periods (y for years, m for months, w for weeks,
 182:      * d for days, e.g. +1m +7d), or null for today.Multiple types supported:
 183:      * 
 184:      *  * Date: A date object containing the default date.
 185:      *  * Number: A number of days from today. For example 2 represents two
 186:      * days from today and -1 represents yesterday.
 187:      *  * String: A string in the format defined by the dateFormat option,
 188:      * or a relative date. Relative dates must contain value and period
 189:      * pairs; valid periods are "y" for years, "m" for months, "w" for weeks,
 190:      * and "d" for days. For example, "+1m +7d" represents one month and
 191:      * seven days from today.
 192:      * 
 193: 
 194:      *
 195:      * @property QJsClosure $Duration
 196:      * Control the speed at which the datepicker appears, it may be a time in
 197:      * milliseconds or a string representing one of the three predefined
 198:      * speeds ("slow", "normal", "fast").
 199:      *
 200:      * @property integer $FirstDay
 201:      * Set the first day of the week: Sunday is 0, Monday is 1, etc.
 202:      *
 203:      * @property boolean $GotoCurrent
 204:      * When true, the current day link moves to the currently selected date
 205:      * instead of today.
 206:      *
 207:      * @property boolean $HideIfNoPrevNext
 208:      * Normally the previous and next links are disabled when not applicable
 209:      * (see the minDate and maxDate options). You can hide them altogether by
 210:      * setting this attribute to true.
 211:      *
 212:      * @property boolean $IsRTL
 213:      * Whether the current language is drawn from right to left.
 214:      *
 215:      * @property mixed $MaxDate
 216:      * The maximum selectable date. When set to null, there is no
 217:      * maximum.Multiple types supported:
 218:      * 
 219:      *  * Date: A date object containing the maximum date.
 220:      *  * Number: A number of days from today. For example 2 represents two
 221:      * days from today and -1 represents yesterday.
 222:      *  * String: A string in the format defined by the dateFormat option,
 223:      * or a relative date. Relative dates must contain value and period
 224:      * pairs; valid periods are "y" for years, "m" for months, "w" for weeks,
 225:      * and "d" for days. For example, "+1m +7d" represents one month and
 226:      * seven days from today.
 227:      * 
 228: 
 229:      *
 230:      * @property mixed $MinDate
 231:      * The minimum selectable date. When set to null, there is no
 232:      * minimum.Multiple types supported:
 233:      * 
 234:      *  * Date: A date object containing the minimum date.
 235:      *  * Number: A number of days from today. For example 2 represents two
 236:      * days from today and -1 represents yesterday.
 237:      *  * String: A string in the format defined by the dateFormat option,
 238:      * or a relative date. Relative dates must contain value and period
 239:      * pairs; valid periods are "y" for years, "m" for months, "w" for weeks,
 240:      * and "d" for days. For example, "+1m +7d" represents one month and
 241:      * seven days from today.
 242:      * 
 243: 
 244:      *
 245:      * @property array $MonthNames
 246:      * The list of full month names, for use as requested via the dateFormat
 247:      * option.
 248:      *
 249:      * @property array $MonthNamesShort
 250:      * The list of abbreviated month names, as used in the month header on
 251:      * each datepicker and as requested via the dateFormat option.
 252:      *
 253:      * @property boolean $NavigationAsDateFormat
 254:      * Whether the currentText, prevText and nextText options should be
 255:      * parsed as dates by the formatDate function, allowing them to display
 256:      * the target month names for example.
 257:      *
 258:      * @property string $NextText
 259:      * The text to display for the next month link. With the standard
 260:      * ThemeRoller styling, this value is replaced by an icon.
 261:      *
 262:      * @property mixed $NumberOfMonths
 263:      * The number of months to show at once.Multiple types supported:
 264:      * 
 265:      *  * Number: The number of months to display in a single row.
 266:      *  * Array: An array defining the number of rows and columns to
 267:      * display.
 268:      * 
 269: 
 270:      *
 271:      * @property QJsClosure $OnChangeMonthYear
 272:      * Type:Function( Integer year, Integer month, Object inst
 273:      * )Default:nullCalled when the datepicker moves to a new month and/or
 274:      * year. The function receives the selected year, month (1-12), and the
 275:      * datepicker instance as parameters. this refers to the associated input
 276:      * field.
 277:      *
 278:      * @property QJsClosure $OnClose
 279:      * Type:Function( String dateText, Object inst )Default:nullCalled when
 280:      * the datepicker is closed, whether or not a date is selected. The
 281:      * function receives the selected date as text ("" if none) and the
 282:      * datepicker instance as parameters. this refers to the associated input
 283:      * field.
 284:      *
 285:      * @property QJsClosure $OnSelect
 286:      * Type:Function( String dateText, Object inst )Default:nullCalled when
 287:      * the datepicker is selected. The function receives the selected date as
 288:      * text and the datepicker instance as parameters. this refers to the
 289:      * associated input field.
 290:      *
 291:      * @property string $PrevText
 292:      * The text to display for the previous month link. With the standard
 293:      * ThemeRoller styling, this value is replaced by an icon.
 294:      *
 295:      * @property boolean $SelectOtherMonths
 296:      * Whether days in other months shown before or after the current month
 297:      * are selectable. This only applies if the showOtherMonths option is set
 298:      * to true.
 299:      *
 300:      * @property mixed $ShortYearCutoff
 301:      * The cutoff year for determining the century for a date (used in
 302:      * conjunction with dateFormat y). Any dates entered with a year value
 303:      * less than or equal to the cutoff year are considered to be in the
 304:      * current century, while those greater than it are deemed to be in the
 305:      * previous century.Multiple types supported:
 306:      * 
 307:      *  * Number: A value between 0 and 99 indicating the cutoff year.
 308:      *  * String: A relative number of years from the current year, e.g.,
 309:      * "+3" or "-5".
 310:      * 
 311: 
 312:      *
 313:      * @property string $ShowAnim
 314:      * The name of the animation used to show and hide the datepicker. Use
 315:      * "show" (the default), "slideDown", "fadeIn", any of the jQuery UI
 316:      * effects. Set to an empty string to disable animation.
 317:      *
 318:      * @property boolean $ShowButtonPanel
 319:      * Whether to display a button pane underneath the calendar. The button
 320:      * pane contains two buttons, a Today button that links to the current
 321:      * day, and a Done button that closes the datepicker. The buttons text
 322:      * can be customized using the currentText and closeText options
 323:      * respectively.
 324:      *
 325:      * @property integer $ShowCurrentAtPos
 326:      * When displaying multiple months via the numberOfMonths option, the
 327:      * showCurrentAtPos option defines which position to display the current
 328:      * month in.
 329:      *
 330:      * @property boolean $ShowMonthAfterYear
 331:      * Whether to show the month after the year in the header.
 332:      *
 333:      * @property string $ShowOn
 334:      * When the datepicker should appear. The datepicker can appear when the
 335:      * field receives focus ("focus"), when a button is clicked ("button"),
 336:      * or when either event occurs ("both").
 337:      *
 338:      * @property mixed $ShowOptions
 339:      * If using one of the jQuery UI effects for the showAnim option, you can
 340:      * provide additional properties for that animation using this option.
 341:      *
 342:      * @property boolean $ShowOtherMonths
 343:      * Whether to display dates in other months (non-selectable) at the start
 344:      * or end of the current month. To make these days selectable use the
 345:      * selectOtherMonths option.
 346:      *
 347:      * @property boolean $ShowWeek
 348:      * When true, a column is added to show the week of the year. The
 349:      * calculateWeek option determines how the week of the year is
 350:      * calculated. You may also want to change the firstDay option.
 351:      *
 352:      * @property integer $StepMonths
 353:      * Set how many months to move when clicking the previous/next links.
 354:      *
 355:      * @property string $WeekHeader
 356:      * The text to display for the week of the year column heading. Use the
 357:      * showWeek option to display this column.
 358:      *
 359:      * @property string $YearRange
 360:      * The range of years displayed in the year drop-down: either relative to
 361:      * todays year ("-nn:+nn"), relative to the currently selected year
 362:      * ("c-nn:c+nn"), absolute ("nnnn:nnnn"), or combinations of these
 363:      * formats ("nnnn:-nn"). Note that this option only affects what appears
 364:      * in the drop-down, to restrict which dates may be selected use the
 365:      * minDate and/or maxDate options.
 366:      *
 367:      * @property string $YearSuffix
 368:      * Additional text to display after the year in the month headers.
 369:      *
 370:      */
 371: 
 372:     class QDatepickerGen extends QPanel {
 373:         protected $strJavaScripts = __JQUERY_EFFECTS__;
 374:         protected $strStyleSheets = __JQUERY_CSS__;
 375:         /** @var mixed */
 376:         protected $mixAltField = null;
 377:         /** @var string */
 378:         protected $strAltFormat = null;
 379:         /** @var string */
 380:         protected $strAppendText = null;
 381:         /** @var boolean */
 382:         protected $blnAutoSize = null;
 383:         /** @var QJsClosure */
 384:         protected $mixOnBeforeShow = null;
 385:         /** @var QJsClosure */
 386:         protected $mixOnBeforeShowDay = null;
 387:         /** @var string */
 388:         protected $strButtonImage = null;
 389:         /** @var boolean */
 390:         protected $blnButtonImageOnly = null;
 391:         /** @var string */
 392:         protected $strButtonText = null;
 393:         /** @var QJsClosure */
 394:         protected $mixOnCalculateWeek = null;
 395:         /** @var boolean */
 396:         protected $blnChangeMonth = null;
 397:         /** @var boolean */
 398:         protected $blnChangeYear = null;
 399:         /** @var string */
 400:         protected $strCloseText = null;
 401:         /** @var boolean */
 402:         protected $blnConstrainInput = null;
 403:         /** @var string */
 404:         protected $strCurrentText = null;
 405:         /** @var string */
 406:         protected $strJqDateFormat = null;
 407:         /** @var array */
 408:         protected $arrDayNames = null;
 409:         /** @var array */
 410:         protected $arrDayNamesMin = null;
 411:         /** @var array */
 412:         protected $arrDayNamesShort = null;
 413:         /** @var mixed */
 414:         protected $mixDefaultDate = null;
 415:         /** @var QJsClosure */
 416:         protected $mixDuration = null;
 417:         /** @var integer */
 418:         protected $intFirstDay;
 419:         /** @var boolean */
 420:         protected $blnGotoCurrent = null;
 421:         /** @var boolean */
 422:         protected $blnHideIfNoPrevNext = null;
 423:         /** @var boolean */
 424:         protected $blnIsRTL = null;
 425:         /** @var mixed */
 426:         protected $mixMaxDate = null;
 427:         /** @var mixed */
 428:         protected $mixMinDate = null;
 429:         /** @var array */
 430:         protected $arrMonthNames = null;
 431:         /** @var array */
 432:         protected $arrMonthNamesShort = null;
 433:         /** @var boolean */
 434:         protected $blnNavigationAsDateFormat = null;
 435:         /** @var string */
 436:         protected $strNextText = null;
 437:         /** @var mixed */
 438:         protected $mixNumberOfMonths = null;
 439:         /** @var QJsClosure */
 440:         protected $mixOnChangeMonthYear = null;
 441:         /** @var QJsClosure */
 442:         protected $mixOnClose = null;
 443:         /** @var QJsClosure */
 444:         protected $mixOnSelect = null;
 445:         /** @var string */
 446:         protected $strPrevText = null;
 447:         /** @var boolean */
 448:         protected $blnSelectOtherMonths = null;
 449:         /** @var mixed */
 450:         protected $mixShortYearCutoff = null;
 451:         /** @var string */
 452:         protected $strShowAnim = null;
 453:         /** @var boolean */
 454:         protected $blnShowButtonPanel = null;
 455:         /** @var integer */
 456:         protected $intShowCurrentAtPos;
 457:         /** @var boolean */
 458:         protected $blnShowMonthAfterYear = null;
 459:         /** @var string */
 460:         protected $strShowOn = null;
 461:         /** @var mixed */
 462:         protected $mixShowOptions = null;
 463:         /** @var boolean */
 464:         protected $blnShowOtherMonths = null;
 465:         /** @var boolean */
 466:         protected $blnShowWeek = null;
 467:         /** @var integer */
 468:         protected $intStepMonths = null;
 469:         /** @var string */
 470:         protected $strWeekHeader = null;
 471:         /** @var string */
 472:         protected $strYearRange = null;
 473:         /** @var string */
 474:         protected $strYearSuffix = null;
 475: 
 476:         /**
 477:          * Builds the option array to be sent to the widget constructor.
 478:          *
 479:          * @return array key=>value array of options
 480:          */
 481:         protected function MakeJqOptions() {
 482:             $jqOptions = null;
 483:             if (!is_null($val = $this->AltField)) {$jqOptions['altField'] = $val;}
 484:             if (!is_null($val = $this->AltFormat)) {$jqOptions['altFormat'] = $val;}
 485:             if (!is_null($val = $this->AppendText)) {$jqOptions['appendText'] = $val;}
 486:             if (!is_null($val = $this->AutoSize)) {$jqOptions['autoSize'] = $val;}
 487:             if (!is_null($val = $this->OnBeforeShow)) {$jqOptions['beforeShow'] = $val;}
 488:             if (!is_null($val = $this->OnBeforeShowDay)) {$jqOptions['beforeShowDay'] = $val;}
 489:             if (!is_null($val = $this->ButtonImage)) {$jqOptions['buttonImage'] = $val;}
 490:             if (!is_null($val = $this->ButtonImageOnly)) {$jqOptions['buttonImageOnly'] = $val;}
 491:             if (!is_null($val = $this->ButtonText)) {$jqOptions['buttonText'] = $val;}
 492:             if (!is_null($val = $this->OnCalculateWeek)) {$jqOptions['calculateWeek'] = $val;}
 493:             if (!is_null($val = $this->ChangeMonth)) {$jqOptions['changeMonth'] = $val;}
 494:             if (!is_null($val = $this->ChangeYear)) {$jqOptions['changeYear'] = $val;}
 495:             if (!is_null($val = $this->CloseText)) {$jqOptions['closeText'] = $val;}
 496:             if (!is_null($val = $this->ConstrainInput)) {$jqOptions['constrainInput'] = $val;}
 497:             if (!is_null($val = $this->CurrentText)) {$jqOptions['currentText'] = $val;}
 498:             if (!is_null($val = $this->JqDateFormat)) {$jqOptions['dateFormat'] = $val;}
 499:             if (!is_null($val = $this->DayNames)) {$jqOptions['dayNames'] = $val;}
 500:             if (!is_null($val = $this->DayNamesMin)) {$jqOptions['dayNamesMin'] = $val;}
 501:             if (!is_null($val = $this->DayNamesShort)) {$jqOptions['dayNamesShort'] = $val;}
 502:             if (!is_null($val = $this->DefaultDate)) {$jqOptions['defaultDate'] = $val;}
 503:             if (!is_null($val = $this->Duration)) {$jqOptions['duration'] = $val;}
 504:             if (!is_null($val = $this->FirstDay)) {$jqOptions['firstDay'] = $val;}
 505:             if (!is_null($val = $this->GotoCurrent)) {$jqOptions['gotoCurrent'] = $val;}
 506:             if (!is_null($val = $this->HideIfNoPrevNext)) {$jqOptions['hideIfNoPrevNext'] = $val;}
 507:             if (!is_null($val = $this->IsRTL)) {$jqOptions['isRTL'] = $val;}
 508:             if (!is_null($val = $this->MaxDate)) {$jqOptions['maxDate'] = $val;}
 509:             if (!is_null($val = $this->MinDate)) {$jqOptions['minDate'] = $val;}
 510:             if (!is_null($val = $this->MonthNames)) {$jqOptions['monthNames'] = $val;}
 511:             if (!is_null($val = $this->MonthNamesShort)) {$jqOptions['monthNamesShort'] = $val;}
 512:             if (!is_null($val = $this->NavigationAsDateFormat)) {$jqOptions['navigationAsDateFormat'] = $val;}
 513:             if (!is_null($val = $this->NextText)) {$jqOptions['nextText'] = $val;}
 514:             if (!is_null($val = $this->NumberOfMonths)) {$jqOptions['numberOfMonths'] = $val;}
 515:             if (!is_null($val = $this->OnChangeMonthYear)) {$jqOptions['onChangeMonthYear'] = $val;}
 516:             if (!is_null($val = $this->OnClose)) {$jqOptions['onClose'] = $val;}
 517:             if (!is_null($val = $this->OnSelect)) {$jqOptions['onSelect'] = $val;}
 518:             if (!is_null($val = $this->PrevText)) {$jqOptions['prevText'] = $val;}
 519:             if (!is_null($val = $this->SelectOtherMonths)) {$jqOptions['selectOtherMonths'] = $val;}
 520:             if (!is_null($val = $this->ShortYearCutoff)) {$jqOptions['shortYearCutoff'] = $val;}
 521:             if (!is_null($val = $this->ShowAnim)) {$jqOptions['showAnim'] = $val;}
 522:             if (!is_null($val = $this->ShowButtonPanel)) {$jqOptions['showButtonPanel'] = $val;}
 523:             if (!is_null($val = $this->ShowCurrentAtPos)) {$jqOptions['showCurrentAtPos'] = $val;}
 524:             if (!is_null($val = $this->ShowMonthAfterYear)) {$jqOptions['showMonthAfterYear'] = $val;}
 525:             if (!is_null($val = $this->ShowOn)) {$jqOptions['showOn'] = $val;}
 526:             if (!is_null($val = $this->ShowOptions)) {$jqOptions['showOptions'] = $val;}
 527:             if (!is_null($val = $this->ShowOtherMonths)) {$jqOptions['showOtherMonths'] = $val;}
 528:             if (!is_null($val = $this->ShowWeek)) {$jqOptions['showWeek'] = $val;}
 529:             if (!is_null($val = $this->StepMonths)) {$jqOptions['stepMonths'] = $val;}
 530:             if (!is_null($val = $this->WeekHeader)) {$jqOptions['weekHeader'] = $val;}
 531:             if (!is_null($val = $this->YearRange)) {$jqOptions['yearRange'] = $val;}
 532:             if (!is_null($val = $this->YearSuffix)) {$jqOptions['yearSuffix'] = $val;}
 533:             return $jqOptions;
 534:         }
 535: 
 536:         /**
 537:          * Return the JavaScript function to call to associate the widget with the control.
 538:          *
 539:          * @return string
 540:          */
 541:         public function GetJqSetupFunction() {
 542:             return 'datepicker';
 543:         }
 544: 
 545:         /**
 546:          * Returns the script that attaches the JQueryUI widget to the html object.
 547:          *
 548:          * @return string
 549:          */
 550:         public function GetEndScript() {
 551:             $strId = $this->GetJqControlId();
 552:             $jqOptions = $this->makeJqOptions();
 553:             $strFunc = $this->getJqSetupFunction();
 554: 
 555:             if ($strId !== $this->ControlId && QApplication::$RequestMode == QRequestMode::Ajax) {
 556:                 // If events are not attached to the actual object being drawn, then the old events will not get
 557:                 // deleted during redraw. We delete the old events here. This must happen before any other event processing code.
 558:                 QApplication::ExecuteControlCommand($strId, 'off', QJsPriority::High);
 559:             }
 560: 
 561:             // Attach the javascript widget to the html object
 562:             if (empty($jqOptions)) {
 563:                 QApplication::ExecuteControlCommand($strId, $strFunc, QJsPriority::High);
 564:             } else {
 565:                 QApplication::ExecuteControlCommand($strId, $strFunc, $jqOptions, QJsPriority::High);
 566:             }
 567: 
 568:             return parent::GetEndScript();
 569:         }
 570: 
 571:         /**
 572:          * Removes the datepicker functionality completely. This will return the
 573:          * element back to its pre-init state.
 574:          * 
 575:          *  * This method does not accept any arguments.
 576:          */
 577:         public function Destroy() {
 578:             QApplication::ExecuteControlCommand($this->getJqControlId(), $this->getJqSetupFunction(), "destroy", QJsPriority::Low);
 579:         }
 580:         /**
 581:          * Opens the datepicker in a dialog box.
 582:          * 
 583:          *  * date Type: String or Date The initial date.
 584:          *  * onSelect Type: Function() A callback function when a date is
 585:          * selected. The function receives the date text and date picker instance
 586:          * as parameters.
 587:          *  * options Type: Options The new options for the date picker.
 588:          *  * pos Type: Number[2] or MouseEvent The position of the top/left of
 589:          * the dialog as [x, y] or a MouseEvent that contains the coordinates. If
 590:          * not specified the dialog is centered on the screen.
 591:          * @param $date
 592:          * @param $onSelect
 593:          * @param $options
 594:          * @param $pos
 595:          */
 596:         public function Dialog($date, $onSelect = null, $options = null, $pos = null) {
 597:             QApplication::ExecuteControlCommand($this->getJqControlId(), $this->getJqSetupFunction(), "dialog", $date, $onSelect, $options, $pos, QJsPriority::Low);
 598:         }
 599:         /**
 600:          * Returns the current date for the datepicker or null if no date has
 601:          * been selected.
 602:          * 
 603:          *  * This method does not accept any arguments.
 604:          */
 605:         public function GetDate() {
 606:             QApplication::ExecuteControlCommand($this->getJqControlId(), $this->getJqSetupFunction(), "getDate", QJsPriority::Low);
 607:         }
 608:         /**
 609:          * Close a previously opened date picker.
 610:          * 
 611:          *  * This method does not accept any arguments.
 612:          */
 613:         public function Hide() {
 614:             QApplication::ExecuteControlCommand($this->getJqControlId(), $this->getJqSetupFunction(), "hide", QJsPriority::Low);
 615:         }
 616:         /**
 617:          * Determine whether a date picker has been disabled.
 618:          * 
 619:          *  * This method does not accept any arguments.
 620:          */
 621:         public function IsDisabled() {
 622:             QApplication::ExecuteControlCommand($this->getJqControlId(), $this->getJqSetupFunction(), "isDisabled", QJsPriority::Low);
 623:         }
 624:         /**
 625:          * Gets the value currently associated with the specified optionName. 
 626:          * 
 627:          * Note: For options that have objects as their value, you can get the
 628:          * value of a specific key by using dot notation. For example, "foo.bar"
 629:          * would get the value of the bar property on the foo option.
 630:          * 
 631:          *  * optionName Type: String The name of the option to get.
 632:          * @param $optionName
 633:          */
 634:         public function Option($optionName) {
 635:             QApplication::ExecuteControlCommand($this->getJqControlId(), $this->getJqSetupFunction(), "option", $optionName, QJsPriority::Low);
 636:         }
 637:         /**
 638:          * Gets an object containing key/value pairs representing the current
 639:          * datepicker options hash.
 640:          * 
 641:          *  * This signature does not accept any arguments.
 642:          */
 643:         public function Option1() {
 644:             QApplication::ExecuteControlCommand($this->getJqControlId(), $this->getJqSetupFunction(), "option", QJsPriority::Low);
 645:         }
 646:         /**
 647:          * Sets the value of the datepicker option associated with the specified
 648:          * optionName. 
 649:          * 
 650:          * Note: For options that have objects as their value, you can set the
 651:          * value of just one property by using dot notation for optionName. For
 652:          * example, "foo.bar" would update only the bar property of the foo
 653:          * option.
 654:          * 
 655:          *  * optionName Type: String The name of the option to set.
 656:          *  * value Type: Object A value to set for the option.
 657:          * @param $optionName
 658:          * @param $value
 659:          */
 660:         public function Option2($optionName, $value) {
 661:             QApplication::ExecuteControlCommand($this->getJqControlId(), $this->getJqSetupFunction(), "option", $optionName, $value, QJsPriority::Low);
 662:         }
 663:         /**
 664:          * Sets one or more options for the datepicker.
 665:          * 
 666:          *  * options Type: Object A map of option-value pairs to set.
 667:          * @param $options
 668:          */
 669:         public function Option3($options) {
 670:             QApplication::ExecuteControlCommand($this->getJqControlId(), $this->getJqSetupFunction(), "option", $options, QJsPriority::Low);
 671:         }
 672:         /**
 673:          * Redraw the date picker, after having made some external modifications.
 674:          * 
 675:          *  * This method does not accept any arguments.
 676:          */
 677:         public function Refresh() {
 678:             QApplication::ExecuteControlCommand($this->getJqControlId(), $this->getJqSetupFunction(), "refresh", QJsPriority::Low);
 679:         }
 680:         /**
 681:          * Sets the date for the datepicker. The new date may be a Date object or
 682:          * a string in the current date format (e.g., "01/26/2009"), a number of
 683:          * days from today (e.g., +7) or a string of values and periods ("y" for
 684:          * years, "m" for months, "w" for weeks, "d" for days, e.g., "+1m +7d"),
 685:          * or null to clear the selected date.
 686:          * 
 687:          *  * date Type: String or Date The new date.
 688:          * @param $date
 689:          */
 690:         public function SetDate($date) {
 691:             QApplication::ExecuteControlCommand($this->getJqControlId(), $this->getJqSetupFunction(), "setDate", $date, QJsPriority::Low);
 692:         }
 693:         /**
 694:          * Open the date picker. If the datepicker is attached to an input, the
 695:          * input must be visible for the datepicker to be shown.
 696:          * 
 697:          *  * This method does not accept any arguments.
 698:          */
 699:         public function Show() {
 700:             QApplication::ExecuteControlCommand($this->getJqControlId(), $this->getJqSetupFunction(), "show", QJsPriority::Low);
 701:         }
 702: 
 703: 
 704:         public function __get($strName) {
 705:             switch ($strName) {
 706:                 case 'AltField': return $this->mixAltField;
 707:                 case 'AltFormat': return $this->strAltFormat;
 708:                 case 'AppendText': return $this->strAppendText;
 709:                 case 'AutoSize': return $this->blnAutoSize;
 710:                 case 'OnBeforeShow': return $this->mixOnBeforeShow;
 711:                 case 'OnBeforeShowDay': return $this->mixOnBeforeShowDay;
 712:                 case 'ButtonImage': return $this->strButtonImage;
 713:                 case 'ButtonImageOnly': return $this->blnButtonImageOnly;
 714:                 case 'ButtonText': return $this->strButtonText;
 715:                 case 'OnCalculateWeek': return $this->mixOnCalculateWeek;
 716:                 case 'ChangeMonth': return $this->blnChangeMonth;
 717:                 case 'ChangeYear': return $this->blnChangeYear;
 718:                 case 'CloseText': return $this->strCloseText;
 719:                 case 'ConstrainInput': return $this->blnConstrainInput;
 720:                 case 'CurrentText': return $this->strCurrentText;
 721:                 case 'JqDateFormat': return $this->strJqDateFormat;
 722:                 case 'DayNames': return $this->arrDayNames;
 723:                 case 'DayNamesMin': return $this->arrDayNamesMin;
 724:                 case 'DayNamesShort': return $this->arrDayNamesShort;
 725:                 case 'DefaultDate': return $this->mixDefaultDate;
 726:                 case 'Duration': return $this->mixDuration;
 727:                 case 'FirstDay': return $this->intFirstDay;
 728:                 case 'GotoCurrent': return $this->blnGotoCurrent;
 729:                 case 'HideIfNoPrevNext': return $this->blnHideIfNoPrevNext;
 730:                 case 'IsRTL': return $this->blnIsRTL;
 731:                 case 'MaxDate': return $this->mixMaxDate;
 732:                 case 'MinDate': return $this->mixMinDate;
 733:                 case 'MonthNames': return $this->arrMonthNames;
 734:                 case 'MonthNamesShort': return $this->arrMonthNamesShort;
 735:                 case 'NavigationAsDateFormat': return $this->blnNavigationAsDateFormat;
 736:                 case 'NextText': return $this->strNextText;
 737:                 case 'NumberOfMonths': return $this->mixNumberOfMonths;
 738:                 case 'OnChangeMonthYear': return $this->mixOnChangeMonthYear;
 739:                 case 'OnClose': return $this->mixOnClose;
 740:                 case 'OnSelect': return $this->mixOnSelect;
 741:                 case 'PrevText': return $this->strPrevText;
 742:                 case 'SelectOtherMonths': return $this->blnSelectOtherMonths;
 743:                 case 'ShortYearCutoff': return $this->mixShortYearCutoff;
 744:                 case 'ShowAnim': return $this->strShowAnim;
 745:                 case 'ShowButtonPanel': return $this->blnShowButtonPanel;
 746:                 case 'ShowCurrentAtPos': return $this->intShowCurrentAtPos;
 747:                 case 'ShowMonthAfterYear': return $this->blnShowMonthAfterYear;
 748:                 case 'ShowOn': return $this->strShowOn;
 749:                 case 'ShowOptions': return $this->mixShowOptions;
 750:                 case 'ShowOtherMonths': return $this->blnShowOtherMonths;
 751:                 case 'ShowWeek': return $this->blnShowWeek;
 752:                 case 'StepMonths': return $this->intStepMonths;
 753:                 case 'WeekHeader': return $this->strWeekHeader;
 754:                 case 'YearRange': return $this->strYearRange;
 755:                 case 'YearSuffix': return $this->strYearSuffix;
 756:                 default: 
 757:                     try { 
 758:                         return parent::__get($strName); 
 759:                     } catch (QCallerException $objExc) { 
 760:                         $objExc->IncrementOffset(); 
 761:                         throw $objExc; 
 762:                     }
 763:             }
 764:         }
 765: 
 766:         public function __set($strName, $mixValue) {
 767:             switch ($strName) {
 768:                 case 'AltField':
 769:                     $this->mixAltField = $mixValue;
 770:                     $this->AddAttributeScript($this->getJqSetupFunction(), 'option', 'altField', $mixValue);
 771:                     break;
 772: 
 773:                 case 'AltFormat':
 774:                     try {
 775:                         $this->strAltFormat = QType::Cast($mixValue, QType::String);
 776:                         $this->AddAttributeScript($this->getJqSetupFunction(), 'option', 'altFormat', $this->strAltFormat);
 777:                         break;
 778:                     } catch (QInvalidCastException $objExc) {
 779:                         $objExc->IncrementOffset();
 780:                         throw $objExc;
 781:                     }
 782: 
 783:                 case 'AppendText':
 784:                     try {
 785:                         $this->strAppendText = QType::Cast($mixValue, QType::String);
 786:                         $this->AddAttributeScript($this->getJqSetupFunction(), 'option', 'appendText', $this->strAppendText);
 787:                         break;
 788:                     } catch (QInvalidCastException $objExc) {
 789:                         $objExc->IncrementOffset();
 790:                         throw $objExc;
 791:                     }
 792: 
 793:                 case 'AutoSize':
 794:                     try {
 795:                         $this->blnAutoSize = QType::Cast($mixValue, QType::Boolean);
 796:                         $this->AddAttributeScript($this->getJqSetupFunction(), 'option', 'autoSize', $this->blnAutoSize);
 797:                         break;
 798:                     } catch (QInvalidCastException $objExc) {
 799:                         $objExc->IncrementOffset();
 800:                         throw $objExc;
 801:                     }
 802: 
 803:                 case 'OnBeforeShow':
 804:                     try {
 805:                         $this->mixOnBeforeShow = new QJsClosure($mixValue, array("input","inst"));
 806:                         break;
 807:                     } catch (QInvalidCastException $objExc) {
 808:                         $objExc->IncrementOffset();
 809:                         throw $objExc;
 810:                     }
 811: 
 812:                 case 'OnBeforeShowDay':
 813:                     try {
 814:                         $this->mixOnBeforeShowDay = new QJsClosure($mixValue, array("date"));
 815:                         break;
 816:                     } catch (QInvalidCastException $objExc) {
 817:                         $objExc->IncrementOffset();
 818:                         throw $objExc;
 819:                     }
 820: 
 821:                 case 'ButtonImage':
 822:                     try {
 823:                         $this->strButtonImage = QType::Cast($mixValue, QType::String);
 824:                         $this->AddAttributeScript($this->getJqSetupFunction(), 'option', 'buttonImage', $this->strButtonImage);
 825:                         break;
 826:                     } catch (QInvalidCastException $objExc) {
 827:                         $objExc->IncrementOffset();
 828:                         throw $objExc;
 829:                     }
 830: 
 831:                 case 'ButtonImageOnly':
 832:                     try {
 833:                         $this->blnButtonImageOnly = QType::Cast($mixValue, QType::Boolean);
 834:                         $this->AddAttributeScript($this->getJqSetupFunction(), 'option', 'buttonImageOnly', $this->blnButtonImageOnly);
 835:                         break;
 836:                     } catch (QInvalidCastException $objExc) {
 837:                         $objExc->IncrementOffset();
 838:                         throw $objExc;
 839:                     }
 840: 
 841:                 case 'ButtonText':
 842:                     try {
 843:                         $this->strButtonText = QType::Cast($mixValue, QType::String);
 844:                         $this->AddAttributeScript($this->getJqSetupFunction(), 'option', 'buttonText', $this->strButtonText);
 845:                         break;
 846:                     } catch (QInvalidCastException $objExc) {
 847:                         $objExc->IncrementOffset();
 848:                         throw $objExc;
 849:                     }
 850: 
 851:                 case 'OnCalculateWeek':
 852:                     try {
 853:                         $this->mixOnCalculateWeek = new QJsClosure($mixValue, array(""));
 854:                         break;
 855:                     } catch (QInvalidCastException $objExc) {
 856:                         $objExc->IncrementOffset();
 857:                         throw $objExc;
 858:                     }
 859: 
 860:                 case 'ChangeMonth':
 861:                     try {
 862:                         $this->blnChangeMonth = QType::Cast($mixValue, QType::Boolean);
 863:                         $this->AddAttributeScript($this->getJqSetupFunction(), 'option', 'changeMonth', $this->blnChangeMonth);
 864:                         break;
 865:                     } catch (QInvalidCastException $objExc) {
 866:                         $objExc->IncrementOffset();
 867:                         throw $objExc;
 868:                     }
 869: 
 870:                 case 'ChangeYear':
 871:                     try {
 872:                         $this->blnChangeYear = QType::Cast($mixValue, QType::Boolean);
 873:                         $this->AddAttributeScript($this->getJqSetupFunction(), 'option', 'changeYear', $this->blnChangeYear);
 874:                         break;
 875:                     } catch (QInvalidCastException $objExc) {
 876:                         $objExc->IncrementOffset();
 877:                         throw $objExc;
 878:                     }
 879: 
 880:                 case 'CloseText':
 881:                     try {
 882:                         $this->strCloseText = QType::Cast($mixValue, QType::String);
 883:                         $this->AddAttributeScript($this->getJqSetupFunction(), 'option', 'closeText', $this->strCloseText);
 884:                         break;
 885:                     } catch (QInvalidCastException $objExc) {
 886:                         $objExc->IncrementOffset();
 887:                         throw $objExc;
 888:                     }
 889: 
 890:                 case 'ConstrainInput':
 891:                     try {
 892:                         $this->blnConstrainInput = QType::Cast($mixValue, QType::Boolean);
 893:                         $this->AddAttributeScript($this->getJqSetupFunction(), 'option', 'constrainInput', $this->blnConstrainInput);
 894:                         break;
 895:                     } catch (QInvalidCastException $objExc) {
 896:                         $objExc->IncrementOffset();
 897:                         throw $objExc;
 898:                     }
 899: 
 900:                 case 'CurrentText':
 901:                     try {
 902:                         $this->strCurrentText = QType::Cast($mixValue, QType::String);
 903:                         $this->AddAttributeScript($this->getJqSetupFunction(), 'option', 'currentText', $this->strCurrentText);
 904:                         break;
 905:                     } catch (QInvalidCastException $objExc) {
 906:                         $objExc->IncrementOffset();
 907:                         throw $objExc;
 908:                     }
 909: 
 910:                 case 'JqDateFormat':
 911:                     try {
 912:                         $this->strJqDateFormat = QType::Cast($mixValue, QType::String);
 913:                         $this->AddAttributeScript($this->getJqSetupFunction(), 'option', 'dateFormat', $this->strJqDateFormat);
 914:                         break;
 915:                     } catch (QInvalidCastException $objExc) {
 916:                         $objExc->IncrementOffset();
 917:                         throw $objExc;
 918:                     }
 919: 
 920:                 case 'DayNames':
 921:                     try {
 922:                         $this->arrDayNames = QType::Cast($mixValue, QType::ArrayType);
 923:                         $this->AddAttributeScript($this->getJqSetupFunction(), 'option', 'dayNames', $this->arrDayNames);
 924:                         break;
 925:                     } catch (QInvalidCastException $objExc) {
 926:                         $objExc->IncrementOffset();
 927:                         throw $objExc;
 928:                     }
 929: 
 930:                 case 'DayNamesMin':
 931:                     try {
 932:                         $this->arrDayNamesMin = QType::Cast($mixValue, QType::ArrayType);
 933:                         $this->AddAttributeScript($this->getJqSetupFunction(), 'option', 'dayNamesMin', $this->arrDayNamesMin);
 934:                         break;
 935:                     } catch (QInvalidCastException $objExc) {
 936:                         $objExc->IncrementOffset();
 937:                         throw $objExc;
 938:                     }
 939: 
 940:                 case 'DayNamesShort':
 941:                     try {
 942:                         $this->arrDayNamesShort = QType::Cast($mixValue, QType::ArrayType);
 943:                         $this->AddAttributeScript($this->getJqSetupFunction(), 'option', 'dayNamesShort', $this->arrDayNamesShort);
 944:                         break;
 945:                     } catch (QInvalidCastException $objExc) {
 946:                         $objExc->IncrementOffset();
 947:                         throw $objExc;
 948:                     }
 949: 
 950:                 case 'DefaultDate':
 951:                     $this->mixDefaultDate = $mixValue;
 952:                     $this->AddAttributeScript($this->getJqSetupFunction(), 'option', 'defaultDate', $mixValue);
 953:                     break;
 954: 
 955:                 case 'Duration':
 956:                     try {
 957:                         $this->mixDuration = QType::Cast($mixValue, 'QJsClosure');
 958:                         $this->AddAttributeScript($this->getJqSetupFunction(), 'option', 'duration', $this->mixDuration);
 959:                         break;
 960:                     } catch (QInvalidCastException $objExc) {
 961:                         $objExc->IncrementOffset();
 962:                         throw $objExc;
 963:                     }
 964: 
 965:                 case 'FirstDay':
 966:                     try {
 967:                         $this->intFirstDay = QType::Cast($mixValue, QType::Integer);
 968:                         $this->AddAttributeScript($this->getJqSetupFunction(), 'option', 'firstDay', $this->intFirstDay);
 969:                         break;
 970:                     } catch (QInvalidCastException $objExc) {
 971:                         $objExc->IncrementOffset();
 972:                         throw $objExc;
 973:                     }
 974: 
 975:                 case 'GotoCurrent':
 976:                     try {
 977:                         $this->blnGotoCurrent = QType::Cast($mixValue, QType::Boolean);
 978:                         $this->AddAttributeScript($this->getJqSetupFunction(), 'option', 'gotoCurrent', $this->blnGotoCurrent);
 979:                         break;
 980:                     } catch (QInvalidCastException $objExc) {
 981:                         $objExc->IncrementOffset();
 982:                         throw $objExc;
 983:                     }
 984: 
 985:                 case 'HideIfNoPrevNext':
 986:                     try {
 987:                         $this->blnHideIfNoPrevNext = QType::Cast($mixValue, QType::Boolean);
 988:                         $this->AddAttributeScript($this->getJqSetupFunction(), 'option', 'hideIfNoPrevNext', $this->blnHideIfNoPrevNext);
 989:                         break;
 990:                     } catch (QInvalidCastException $objExc) {
 991:                         $objExc->IncrementOffset();
 992:                         throw $objExc;
 993:                     }
 994: 
 995:                 case 'IsRTL':
 996:                     try {
 997:                         $this->blnIsRTL = QType::Cast($mixValue, QType::Boolean);
 998:                         $this->AddAttributeScript($this->getJqSetupFunction(), 'option', 'isRTL', $this->blnIsRTL);
 999:                         break;
1000:                     } catch (QInvalidCastException $objExc) {
1001:                         $objExc->IncrementOffset();
1002:                         throw $objExc;
1003:                     }
1004: 
1005:                 case 'MaxDate':
1006:                     $this->mixMaxDate = $mixValue;
1007:                     $this->AddAttributeScript($this->getJqSetupFunction(), 'option', 'maxDate', $mixValue);
1008:                     break;
1009: 
1010:                 case 'MinDate':
1011:                     $this->mixMinDate = $mixValue;
1012:                     $this->AddAttributeScript($this->getJqSetupFunction(), 'option', 'minDate', $mixValue);
1013:                     break;
1014: 
1015:                 case 'MonthNames':
1016:                     try {
1017:                         $this->arrMonthNames = QType::Cast($mixValue, QType::ArrayType);
1018:                         $this->AddAttributeScript($this->getJqSetupFunction(), 'option', 'monthNames', $this->arrMonthNames);
1019:                         break;
1020:                     } catch (QInvalidCastException $objExc) {
1021:                         $objExc->IncrementOffset();
1022:                         throw $objExc;
1023:                     }
1024: 
1025:                 case 'MonthNamesShort':
1026:                     try {
1027:                         $this->arrMonthNamesShort = QType::Cast($mixValue, QType::ArrayType);
1028:                         $this->AddAttributeScript($this->getJqSetupFunction(), 'option', 'monthNamesShort', $this->arrMonthNamesShort);
1029:                         break;
1030:                     } catch (QInvalidCastException $objExc) {
1031:                         $objExc->IncrementOffset();
1032:                         throw $objExc;
1033:                     }
1034: 
1035:                 case 'NavigationAsDateFormat':
1036:                     try {
1037:                         $this->blnNavigationAsDateFormat = QType::Cast($mixValue, QType::Boolean);
1038:                         $this->AddAttributeScript($this->getJqSetupFunction(), 'option', 'navigationAsDateFormat', $this->blnNavigationAsDateFormat);
1039:                         break;
1040:                     } catch (QInvalidCastException $objExc) {
1041:                         $objExc->IncrementOffset();
1042:                         throw $objExc;
1043:                     }
1044: 
1045:                 case 'NextText':
1046:                     try {
1047:                         $this->strNextText = QType::Cast($mixValue, QType::String);
1048:                         $this->AddAttributeScript($this->getJqSetupFunction(), 'option', 'nextText', $this->strNextText);
1049:                         break;
1050:                     } catch (QInvalidCastException $objExc) {
1051:                         $objExc->IncrementOffset();
1052:                         throw $objExc;
1053:                     }
1054: 
1055:                 case 'NumberOfMonths':
1056:                     $this->mixNumberOfMonths = $mixValue;
1057:                     $this->AddAttributeScript($this->getJqSetupFunction(), 'option', 'numberOfMonths', $mixValue);
1058:                     break;
1059: 
1060:                 case 'OnChangeMonthYear':
1061:                     try {
1062:                         $this->mixOnChangeMonthYear = new QJsClosure($mixValue, array("year","month","inst"));
1063:                         break;
1064:                     } catch (QInvalidCastException $objExc) {
1065:                         $objExc->IncrementOffset();
1066:                         throw $objExc;
1067:                     }
1068: 
1069:                 case 'OnClose':
1070:                     try {
1071:                         $this->mixOnClose = new QJsClosure($mixValue, array("dateText","inst"));
1072:                         break;
1073:                     } catch (QInvalidCastException $objExc) {
1074:                         $objExc->IncrementOffset();
1075:                         throw $objExc;
1076:                     }
1077: 
1078:                 case 'OnSelect':
1079:                     try {
1080:                         $this->mixOnSelect = new QJsClosure($mixValue, array("dateText","inst"));
1081:                         break;
1082:                     } catch (QInvalidCastException $objExc) {
1083:                         $objExc->IncrementOffset();
1084:                         throw $objExc;
1085:                     }
1086: 
1087:                 case 'PrevText':
1088:                     try {
1089:                         $this->strPrevText = QType::Cast($mixValue, QType::String);
1090:                         $this->AddAttributeScript($this->getJqSetupFunction(), 'option', 'prevText', $this->strPrevText);
1091:                         break;
1092:                     } catch (QInvalidCastException $objExc) {
1093:                         $objExc->IncrementOffset();
1094:                         throw $objExc;
1095:                     }
1096: 
1097:                 case 'SelectOtherMonths':
1098:                     try {
1099:                         $this->blnSelectOtherMonths = QType::Cast($mixValue, QType::Boolean);
1100:                         $this->AddAttributeScript($this->getJqSetupFunction(), 'option', 'selectOtherMonths', $this->blnSelectOtherMonths);
1101:                         break;
1102:                     } catch (QInvalidCastException $objExc) {
1103:                         $objExc->IncrementOffset();
1104:                         throw $objExc;
1105:                     }
1106: 
1107:                 case 'ShortYearCutoff':
1108:                     $this->mixShortYearCutoff = $mixValue;
1109:                     $this->AddAttributeScript($this->getJqSetupFunction(), 'option', 'shortYearCutoff', $mixValue);
1110:                     break;
1111: 
1112:                 case 'ShowAnim':
1113:                     try {
1114:                         $this->strShowAnim = QType::Cast($mixValue, QType::String);
1115:                         $this->AddAttributeScript($this->getJqSetupFunction(), 'option', 'showAnim', $this->strShowAnim);
1116:                         break;
1117:                     } catch (QInvalidCastException $objExc) {
1118:                         $objExc->IncrementOffset();
1119:                         throw $objExc;
1120:                     }
1121: 
1122:                 case 'ShowButtonPanel':
1123:                     try {
1124:                         $this->blnShowButtonPanel = QType::Cast($mixValue, QType::Boolean);
1125:                         $this->AddAttributeScript($this->getJqSetupFunction(), 'option', 'showButtonPanel', $this->blnShowButtonPanel);
1126:                         break;
1127:                     } catch (QInvalidCastException $objExc) {
1128:                         $objExc->IncrementOffset();
1129:                         throw $objExc;
1130:                     }
1131: 
1132:                 case 'ShowCurrentAtPos':
1133:                     try {
1134:                         $this->intShowCurrentAtPos = QType::Cast($mixValue, QType::Integer);
1135:                         $this->AddAttributeScript($this->getJqSetupFunction(), 'option', 'showCurrentAtPos', $this->intShowCurrentAtPos);
1136:                         break;
1137:                     } catch (QInvalidCastException $objExc) {
1138:                         $objExc->IncrementOffset();
1139:                         throw $objExc;
1140:                     }
1141: 
1142:                 case 'ShowMonthAfterYear':
1143:                     try {
1144:                         $this->blnShowMonthAfterYear = QType::Cast($mixValue, QType::Boolean);
1145:                         $this->AddAttributeScript($this->getJqSetupFunction(), 'option', 'showMonthAfterYear', $this->blnShowMonthAfterYear);
1146:                         break;
1147:                     } catch (QInvalidCastException $objExc) {
1148:                         $objExc->IncrementOffset();
1149:                         throw $objExc;
1150:                     }
1151: 
1152:                 case 'ShowOn':
1153:                     try {
1154:                         $this->strShowOn = QType::Cast($mixValue, QType::String);
1155:                         $this->AddAttributeScript($this->getJqSetupFunction(), 'option', 'showOn', $this->strShowOn);
1156:                         break;
1157:                     } catch (QInvalidCastException $objExc) {
1158:                         $objExc->IncrementOffset();
1159:                         throw $objExc;
1160:                     }
1161: 
1162:                 case 'ShowOptions':
1163:                     $this->mixShowOptions = $mixValue;
1164:                     $this->AddAttributeScript($this->getJqSetupFunction(), 'option', 'showOptions', $mixValue);
1165:                     break;
1166: 
1167:                 case 'ShowOtherMonths':
1168:                     try {
1169:                         $this->blnShowOtherMonths = QType::Cast($mixValue, QType::Boolean);
1170:                         $this->AddAttributeScript($this->getJqSetupFunction(), 'option', 'showOtherMonths', $this->blnShowOtherMonths);
1171:                         break;
1172:                     } catch (QInvalidCastException $objExc) {
1173:                         $objExc->IncrementOffset();
1174:                         throw $objExc;
1175:                     }
1176: 
1177:                 case 'ShowWeek':
1178:                     try {
1179:                         $this->blnShowWeek = QType::Cast($mixValue, QType::Boolean);
1180:                         $this->AddAttributeScript($this->getJqSetupFunction(), 'option', 'showWeek', $this->blnShowWeek);
1181:                         break;
1182:                     } catch (QInvalidCastException $objExc) {
1183:                         $objExc->IncrementOffset();
1184:                         throw $objExc;
1185:                     }
1186: 
1187:                 case 'StepMonths':
1188:                     try {
1189:                         $this->intStepMonths = QType::Cast($mixValue, QType::Integer);
1190:                         $this->AddAttributeScript($this->getJqSetupFunction(), 'option', 'stepMonths', $this->intStepMonths);
1191:                         break;
1192:                     } catch (QInvalidCastException $objExc) {
1193:                         $objExc->IncrementOffset();
1194:                         throw $objExc;
1195:                     }
1196: 
1197:                 case 'WeekHeader':
1198:                     try {
1199:                         $this->strWeekHeader = QType::Cast($mixValue, QType::String);
1200:                         $this->AddAttributeScript($this->getJqSetupFunction(), 'option', 'weekHeader', $this->strWeekHeader);
1201:                         break;
1202:                     } catch (QInvalidCastException $objExc) {
1203:                         $objExc->IncrementOffset();
1204:                         throw $objExc;
1205:                     }
1206: 
1207:                 case 'YearRange':
1208:                     try {
1209:                         $this->strYearRange = QType::Cast($mixValue, QType::String);
1210:                         $this->AddAttributeScript($this->getJqSetupFunction(), 'option', 'yearRange', $this->strYearRange);
1211:                         break;
1212:                     } catch (QInvalidCastException $objExc) {
1213:                         $objExc->IncrementOffset();
1214:                         throw $objExc;
1215:                     }
1216: 
1217:                 case 'YearSuffix':
1218:                     try {
1219:                         $this->strYearSuffix = QType::Cast($mixValue, QType::String);
1220:                         $this->AddAttributeScript($this->getJqSetupFunction(), 'option', 'yearSuffix', $this->strYearSuffix);
1221:                         break;
1222:                     } catch (QInvalidCastException $objExc) {
1223:                         $objExc->IncrementOffset();
1224:                         throw $objExc;
1225:                     }
1226: 
1227: 
1228:                 default:
1229:                     try {
1230:                         parent::__set($strName, $mixValue);
1231:                         break;
1232:                     } catch (QCallerException $objExc) {
1233:                         $objExc->IncrementOffset();
1234:                         throw $objExc;
1235:                     }
1236:             }
1237:         }
1238: 
1239:         /**
1240:         * If this control is attachable to a codegenerated control in a ModelConnector, this function will be
1241:         * used by the ModelConnector designer dialog to display a list of options for the control.
1242:         * @return QModelConnectorParam[]
1243:         **/
1244:         public static function GetModelConnectorParams() {
1245:             return array_merge(parent::GetModelConnectorParams(), array(
1246:                 new QModelConnectorParam (get_called_class(), 'AltFormat', 'The dateFormat to be used for the altField option. This allows onedate format to be shown to the user for selection purposes, while adifferent format is actually sent behind the scenes. For a full listof the possible formats see the formatDate function', QType::String),
1247:                 new QModelConnectorParam (get_called_class(), 'AppendText', 'The text to display after each date field, e.g., to show the requiredformat.', QType::String),
1248:                 new QModelConnectorParam (get_called_class(), 'AutoSize', 'Set to true to automatically resize the input field to accommodatedates in the current dateFormat.', QType::Boolean),
1249:                 new QModelConnectorParam (get_called_class(), 'OnBeforeShow', 'Type:Function( Element input, Object inst )Default:nullA function thattakes an input field and current datepicker instance and returns anoptions object to update the datepicker with. It is called just beforethe datepicker is displayed.', 'QJsClosure'),
1250:                 new QModelConnectorParam (get_called_class(), 'OnBeforeShowDay', 'Type:Function( Date date )Default:nullA function that takes a date asa parameter and must return an array with:   * [0]: true/false indicating whether or not this date is selectable * [1]: a CSS class name to add to the dates cell or \"\" for thedefault presentation    * [2]: an optional popup tooltip for this date The function is called for each day in the datepicker before it isdisplayed.', 'QJsClosure'),
1251:                 new QModelConnectorParam (get_called_class(), 'ButtonImage', 'A URL of an image to use to display the datepicker when the showOnoption is set to \"button\" or \"both\". If set, the buttonText optionbecomes the alt value and is not directly displayed.', QType::String),
1252:                 new QModelConnectorParam (get_called_class(), 'ButtonImageOnly', 'Whether the button image should be rendered by itself instead ofinside a button element. This option is only relevant if thebuttonImage option has also been set.', QType::Boolean),
1253:                 new QModelConnectorParam (get_called_class(), 'ButtonText', 'The text to display on the trigger button. Use in conjunction with theshowOn option set to \"button\" or \"both\".', QType::String),
1254:                 new QModelConnectorParam (get_called_class(), 'OnCalculateWeek', 'Type:Function()Default:jQuery.datepicker.iso8601WeekA function tocalculate the week of the year for a given date. The defaultimplementation uses the ISO 8601 definition: weeks start on a Monday;the first week of the year contains the first Thursday of the year.', 'QJsClosure'),
1255:                 new QModelConnectorParam (get_called_class(), 'ChangeMonth', 'Whether the month should be rendered as a dropdown instead of text.', QType::Boolean),
1256:                 new QModelConnectorParam (get_called_class(), 'ChangeYear', 'Whether the year should be rendered as a dropdown instead of text. Usethe yearRange option to control which years are made available forselection.', QType::Boolean),
1257:                 new QModelConnectorParam (get_called_class(), 'CloseText', 'The text to display for the close link. Use the showButtonPanel optionto display this button.', QType::String),
1258:                 new QModelConnectorParam (get_called_class(), 'ConstrainInput', 'When true, entry in the input field is constrained to those charactersallowed by the current dateFormat option.', QType::Boolean),
1259:                 new QModelConnectorParam (get_called_class(), 'CurrentText', 'The text to display for the current day link. Use the showButtonPaneloption to display this button.', QType::String),
1260:                 new QModelConnectorParam (get_called_class(), 'JqDateFormat', 'The format for parsed and displayed dates. For a full list of thepossible formats see the formatDate function.', QType::String),
1261:                 new QModelConnectorParam (get_called_class(), 'DayNames', 'The list of long day names, starting from Sunday, for use as requestedvia the dateFormat option.', QType::ArrayType),
1262:                 new QModelConnectorParam (get_called_class(), 'DayNamesMin', 'The list of minimised day names, starting from Sunday, for use ascolumn headers within the datepicker.', QType::ArrayType),
1263:                 new QModelConnectorParam (get_called_class(), 'DayNamesShort', 'The list of abbreviated day names, starting from Sunday, for use asrequested via the dateFormat option.', QType::ArrayType),
1264:                 new QModelConnectorParam (get_called_class(), 'Duration', 'Control the speed at which the datepicker appears, it may be a time inmilliseconds or a string representing one of the three predefinedspeeds (\"slow\", \"normal\", \"fast\").', 'QJsClosure'),
1265:                 new QModelConnectorParam (get_called_class(), 'FirstDay', 'Set the first day of the week: Sunday is 0, Monday is 1, etc.', QType::Integer),
1266:                 new QModelConnectorParam (get_called_class(), 'GotoCurrent', 'When true, the current day link moves to the currently selected dateinstead of today.', QType::Boolean),
1267:                 new QModelConnectorParam (get_called_class(), 'HideIfNoPrevNext', 'Normally the previous and next links are disabled when not applicable(see the minDate and maxDate options). You can hide them altogether bysetting this attribute to true.', QType::Boolean),
1268:                 new QModelConnectorParam (get_called_class(), 'IsRTL', 'Whether the current language is drawn from right to left.', QType::Boolean),
1269:                 new QModelConnectorParam (get_called_class(), 'MonthNames', 'The list of full month names, for use as requested via the dateFormatoption.', QType::ArrayType),
1270:                 new QModelConnectorParam (get_called_class(), 'MonthNamesShort', 'The list of abbreviated month names, as used in the month header oneach datepicker and as requested via the dateFormat option.', QType::ArrayType),
1271:                 new QModelConnectorParam (get_called_class(), 'NavigationAsDateFormat', 'Whether the currentText, prevText and nextText options should beparsed as dates by the formatDate function, allowing them to displaythe target month names for example.', QType::Boolean),
1272:                 new QModelConnectorParam (get_called_class(), 'NextText', 'The text to display for the next month link. With the standardThemeRoller styling, this value is replaced by an icon.', QType::String),
1273:                 new QModelConnectorParam (get_called_class(), 'OnChangeMonthYear', 'Type:Function( Integer year, Integer month, Object inst)Default:nullCalled when the datepicker moves to a new month and/oryear. The function receives the selected year, month (1-12), and thedatepicker instance as parameters. this refers to the associated inputfield.', 'QJsClosure'),
1274:                 new QModelConnectorParam (get_called_class(), 'OnClose', 'Type:Function( String dateText, Object inst )Default:nullCalled whenthe datepicker is closed, whether or not a date is selected. Thefunction receives the selected date as text (\"\" if none) and thedatepicker instance as parameters. this refers to the associated inputfield.', 'QJsClosure'),
1275:                 new QModelConnectorParam (get_called_class(), 'OnSelect', 'Type:Function( String dateText, Object inst )Default:nullCalled whenthe datepicker is selected. The function receives the selected date astext and the datepicker instance as parameters. this refers to theassociated input field.', 'QJsClosure'),
1276:                 new QModelConnectorParam (get_called_class(), 'PrevText', 'The text to display for the previous month link. With the standardThemeRoller styling, this value is replaced by an icon.', QType::String),
1277:                 new QModelConnectorParam (get_called_class(), 'SelectOtherMonths', 'Whether days in other months shown before or after the current monthare selectable. This only applies if the showOtherMonths option is setto true.', QType::Boolean),
1278:                 new QModelConnectorParam (get_called_class(), 'ShowAnim', 'The name of the animation used to show and hide the datepicker. Use\"show\" (the default), \"slideDown\", \"fadeIn\", any of the jQuery UIeffects. Set to an empty string to disable animation.', QType::String),
1279:                 new QModelConnectorParam (get_called_class(), 'ShowButtonPanel', 'Whether to display a button pane underneath the calendar. The buttonpane contains two buttons, a Today button that links to the currentday, and a Done button that closes the datepicker. The buttons textcan be customized using the currentText and closeText optionsrespectively.', QType::Boolean),
1280:                 new QModelConnectorParam (get_called_class(), 'ShowCurrentAtPos', 'When displaying multiple months via the numberOfMonths option, theshowCurrentAtPos option defines which position to display the currentmonth in.', QType::Integer),
1281:                 new QModelConnectorParam (get_called_class(), 'ShowMonthAfterYear', 'Whether to show the month after the year in the header.', QType::Boolean),
1282:                 new QModelConnectorParam (get_called_class(), 'ShowOn', 'When the datepicker should appear. The datepicker can appear when thefield receives focus (\"focus\"), when a button is clicked (\"button\"),or when either event occurs (\"both\").', QType::String),
1283:                 new QModelConnectorParam (get_called_class(), 'ShowOtherMonths', 'Whether to display dates in other months (non-selectable) at the startor end of the current month. To make these days selectable use theselectOtherMonths option.', QType::Boolean),
1284:                 new QModelConnectorParam (get_called_class(), 'ShowWeek', 'When true, a column is added to show the week of the year. ThecalculateWeek option determines how the week of the year iscalculated. You may also want to change the firstDay option.', QType::Boolean),
1285:                 new QModelConnectorParam (get_called_class(), 'StepMonths', 'Set how many months to move when clicking the previous/next links.', QType::Integer),
1286:                 new QModelConnectorParam (get_called_class(), 'WeekHeader', 'The text to display for the week of the year column heading. Use theshowWeek option to display this column.', QType::String),
1287:                 new QModelConnectorParam (get_called_class(), 'YearRange', 'The range of years displayed in the year drop-down: either relative totodays year (\"-nn:+nn\"), relative to the currently selected year(\"c-nn:c+nn\"), absolute (\"nnnn:nnnn\"), or combinations of theseformats (\"nnnn:-nn\"). Note that this option only affects what appearsin the drop-down, to restrict which dates may be selected use theminDate and/or maxDate options.', QType::String),
1288:                 new QModelConnectorParam (get_called_class(), 'YearSuffix', 'Additional text to display after the year in the month headers.', QType::String),
1289:             ));
1290:         }
1291:     }
API documentation generated by ApiGen