classQBaseClass
QBaseClass Class Reference
Inherited by QAction, QApplicationBase, QCache, QCodeGenBase, QColumn, QControlBase, QControlGrouping, QCryptography, QDatabaseBase, QDatabaseFieldBase, QDatabaseForeignKey, QDatabaseIndex, QDatabaseResultBase, QDatabaseRowBase, QDataGridColumn, QDataGridRowStyle, QDateTime, QDateTimeSpan, QEmailAttachment, QEmailMessage, QEmailServer, QEvent, QFileFormStateHandler, QFormBase, QFormStateHandler, QI18n, QIndex, QLexer, QListItem, QListItemStyle, QManyToManyReference, QQBaseNode, QQClause, QQCondition, QQueryBuilder, QQueryExpansion, QReference, QRegex, QReverseReference, QRssCategory, QRssFeed, QRssImage, QRssItem, QSessionFormStateHandler, QSoapMethod, QSoapParameter, QSoapService, QStack, QTable, QTreeNavItem, and QTypeTable.
Public Member Functions
- __get ($strName)
- __set ($strName, $mixValue)
- OverrideAttributes ($mixOverrideArray)
Detailed Description
This is the Base Class for ALL classes in the system. It provides proper error handling of property getters and setters. It also provides the OverrideAttribute functionality.Member Function Documentation
| QBaseClass::__get | ( | $ | strName | ) |
Override method to perform a property "Get" This will get the value of $strName All inhereted objects that call __get() should always fall through to calling parent::__get() in a try/catch statement catching for CallerExceptions.
- Parameters:
-
string $strName Name of the property to get
- Returns:
- mixed the returned property
Reimplemented in QCodeGenBase, QColumn, QDatabaseCodeGen, QIndex, QManyToManyReference, QReference, QRestServiceCodeGen, QReverseReference, QTable, QTypeTable, QMySqlDatabase, QMySqliDatabase, QPostgreSqlDatabase, QSqlServerDatabase, QDatabaseBase, QDatabaseFieldBase, QDatabaseForeignKey, QDatabaseIndex, QDateTime, QDateTime, QDateTimeSpan, QEmailAttachment, QEmailMessage, QQBaseNode, QQueryBuilder, QRssFeed, QRssItem, QSoapParameter, QSoapMethod, QSoapService, QAction, QServerAction, QAjaxAction, QJavaScriptAction, QConfirmAction, QAlertAction, QEvent, QBlockControl, QButtonBase, QCalendar, QCalendarPopup, QCheckBox, QCheckBoxList, QControlBase, QControlGrouping, QControlLabel, QDataGridBase, QDataGridColumn, QDataGridRowStyle, QDataRepeater, QDateTimePicker, QDateTimeTextBox, QDialogBox, QFileAssetBase, QFileControl, QFloatTextBox, QFormBase, QImageBase, QImageButton, QImageControlBase, QImageLabelBase, QImageRollover, QIntegerTextBox, QLinkButton, QListBoxBase, QListControl, QListItem, QListItemStyle, QPaginatedControl, QPaginatorBase, QRadioButton, QRadioButtonList, QTextBoxBase, QTreeNav, QTreeNavItem, QWaitIcon, QWriteBox, QPaginator, and QSampleControl.
| QBaseClass::__set | ( | $ | strName, | |
| $ | mixValue | |||
| ) |
Override method to perform a property "Set" This will set the property $strName to be $mixValue All inhereted objects that call __set() should always fall through to calling parent::__set() in a try/catch statement catching for CallerExceptions.
- Parameters:
-
string $strName Name of the property to set string $mixValue New value of the property
- Returns:
- mixed the property that was set
Reimplemented in QCodeGenBase, QColumn, QDatabaseCodeGen, QIndex, QManyToManyReference, QReference, QRestServiceCodeGen, QReverseReference, QTable, QTypeTable, QDateTime, QDateTime, QDateTimeSpan, QEmailMessage, QRssFeed, QRssItem, QSoapParameter, QSoapMethod, QAction, QBlockControl, QButtonBase, QCalendar, QCalendarPopup, QCheckBox, QCheckBoxList, QControlBase, QControlLabel, QDataGridBase, QDataGridColumn, QDataGridRowStyle, QDataRepeater, QDateTimePicker, QDateTimeTextBox, QDialogBox, QFileAssetBase, QFileControl, QFloatTextBox, QFormBase, QImageBase, QImageButton, QImageControlBase, QImageLabelBase, QImageRollover, QIntegerTextBox, QLinkButton, QListBoxBase, QListControl, QListItem, QListItemStyle, QPaginatedControl, QPaginatorBase, QRadioButton, QRadioButtonList, QTextBoxBase, QTreeNav, QTreeNavItem, QWaitIcon, QWriteBox, QPaginator, and QSampleControl.
Referenced by OverrideAttributes().
| QBaseClass::OverrideAttributes | ( | $ | mixOverrideArray | ) | [final] |
This allows you to set any properties, given by a name-value pair list in mixOverrideArray.
Each item in mixOverrideArray needs to be either a string in the format of Property=Value or an array in the format of array(Property => Value). OverrideAttributes() will basically call $this->Property = Value for each string element in the array.
Value can be surrounded by quotes... but this is optional.
- Parameters:
-
mixed[] $objOverrideArray the array of name-value pair items of properties/attributes to override
- Returns:
- void
References __set(), and QCallerException::IncrementOffset().
Referenced by QDataGridColumn::__construct(), and QControlBase::RenderHelper().
The documentation for this class was generated from the following file:
- qcodo/_core/framework/QBaseClass.class.php
