本文整理汇总了PHP中QBaseClass类的典型用法代码示例。如果您正苦于以下问题:PHP QBaseClass类的具体用法?PHP QBaseClass怎么用?PHP QBaseClass使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
在下文中一共展示了QBaseClass类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: __set
public function __set($strName, $mixValue)
{
switch ($strName) {
case "HtmlIncludeFilePath":
// Passed-in value is null -- use the "default" path name of file".tpl.php"
if (!$mixValue) {
$strPath = realpath(substr(QApplication::$ScriptFilename, 0, strrpos(QApplication::$ScriptFilename, '.php')) . '.tpl.php');
} else {
$strPath = realpath($mixValue);
}
// Verify File Exists, and if not, throw exception
if (is_file($strPath)) {
$this->strHtmlIncludeFilePath = $strPath;
return $strPath;
} else {
throw new QCallerException('Accompanying HTML Include File does not exist: "' . $mixValue . '"');
}
break;
case "CssClass":
try {
return $this->strCssClass = QType::Cast($mixValue, QType::String);
} catch (QCallerException $objExc) {
$objExc->IncrementOffset();
throw $objExc;
}
default:
try {
return parent::__set($strName, $mixValue);
} catch (QCallerException $objExc) {
$objExc->IncrementOffset();
throw $objExc;
}
}
}
示例2: __get
/**
* The PHP Magic function for this class
* @param string $strName Name of the property to fetch
*
* @return int|mixed|null|string
* @throws Exception|QCallerException
*/
public function __get($strName)
{
switch ($strName) {
case 'EventName':
$strEvent = constant(get_class($this) . '::EventName');
if ($this->strSelector) {
$strEvent .= '","' . addslashes($this->strSelector);
}
return $strEvent;
case 'Condition':
return $this->strCondition;
case 'Delay':
return $this->intDelay;
case 'JsReturnParam':
$strConst = get_class($this) . '::JsReturnParam';
return defined($strConst) ? constant($strConst) : '';
case 'Selector':
return $this->strSelector;
default:
try {
return parent::__get($strName);
} catch (QCallerException $objExc) {
$objExc->IncrementOffset();
throw $objExc;
}
}
}
示例3: __set
public function __set($strName, $mixValue)
{
switch ($strName) {
case "Title":
try {
return $this->strTitle = QType::Cast($mixValue, QType::String);
} catch (QCallerException $objExc) {
$objExc->IncrementOffset();
throw $objExc;
}
case "ActiveEvent":
try {
return $this->objActiveEvent = $mixValue;
} catch (QCallerException $objExc) {
$objExc->IncrementOffset();
throw $objExc;
}
case "SkipMainWindowRender":
try {
return $this->blnSkipMainWindowRender = QType::Cast($mixValue, QType::Boolean);
} catch (QCallerException $objExc) {
$objExc->IncrementOffset();
throw $objExc;
}
default:
try {
return parent::__set($strName, $mixValue);
} catch (QCallerException $objExc) {
$objExc->IncrementOffset();
throw $objExc;
}
}
}
示例4: __set
public function __set($strName, $mixValue)
{
switch ($strName) {
case "Value":
try {
return $this->strValue = QType::Cast($mixValue, QType::String);
} catch (QCallerException $objExc) {
$objExc->IncrementOffset();
throw $objExc;
}
case "Text":
try {
return $this->strText = QType::Cast($mixValue, QType::String);
} catch (QCallerException $objExc) {
$objExc->IncrementOffset();
throw $objExc;
}
case "Selected":
try {
return $this->blnSelected = QType::Cast($mixValue, QType::Boolean);
} catch (QCallerException $objExc) {
$objExc->IncrementOffset();
throw $objExc;
}
default:
try {
return parent::__set($strName, $mixValue);
} catch (QCallerException $objExc) {
$objExc->IncrementOffset();
throw $objExc;
}
}
}
示例5: __get
public function __get($strName)
{
switch ($strName) {
case 'Event':
return $this->objEvent;
default:
try {
return parent::__get($strName);
} catch (QCallerException $objExc) {
$objExc->IncrementOffset();
throw $objExc;
}
}
}
示例6: __get
public function __get($strName) {
switch ($strName) {
case "GroupingId": return $this->strGroupingId;
case "Modified": return $this->blnModified;
default:
try {
return parent::__get($strName);
} catch (QCallerException $objExc) {
$objExc->IncrementOffset();
throw $objExc;
}
}
}
示例7: __get
public function __get($strName)
{
switch ($strName) {
case 'State':
return $this->intState;
case 'Buffer':
return $this->strBuffer;
default:
try {
return parent::__get($strName);
} catch (QCallerException $objExc) {
$objExc->IncrementOffset();
throw $objExc;
}
}
}
示例8: __get
public function __get($strName)
{
switch ($strName) {
case 'JavaScriptEvent':
return $this->strJavaScriptEvent;
case 'Condition':
return $this->strCondition;
case 'Delay':
return $this->intDelay;
default:
try {
return parent::__get($strName);
} catch (QCallerException $objExc) {
$objExc->IncrementOffset();
throw $objExc;
}
}
}
示例9: __set
/**
* Override method to perform a property "Set"
* This will set the property $strName to be $mixValue
*
* @param string strName Name of the property to set
* @param string mixValue New value of the property
* @return mixed
*/
public function __set($strName, $mixValue)
{
try {
switch ($strName) {
case 'KeyName':
return $this->strKeyName = QType::Cast($mixValue, QType::String);
case 'Unique':
return $this->blnUnique = QType::Cast($mixValue, QType::Boolean);
case 'PrimaryKey':
return $this->blnPrimaryKey = QType::Cast($mixValue, QType::Boolean);
case 'ColumnNameArray':
return $this->strColumnNameArray = QType::Cast($mixValue, QType::ArrayType);
default:
return parent::__set($strName, $mixValue);
}
} catch (QCallerException $objExc) {
$objExc->IncrementOffset();
throw $objExc;
}
}
示例10: __get
public function __get($strName)
{
switch ($strName) {
case "FormId":
return $this->strFormId;
case "CallType":
return $this->strCallType;
case "DefaultWaitIcon":
return $this->objDefaultWaitIcon;
case "FormStatus":
return $this->intFormStatus;
default:
try {
return parent::__get($strName);
} catch (QCallerException $objExc) {
$objExc->IncrementOffset();
throw $objExc;
}
}
}
示例11: __set
public function __set($strName, $mixValue)
{
switch ($strName) {
/*
case "ControlId":
try {
return ($this->strId = QType::Cast($mixValue, QType::String));
} catch (QCallerException $objExc) {
$objExc->IncrementOffset();
throw $objExc;
}
*/
default:
try {
return parent::__set($strName, $mixValue);
} catch (QCallerException $objExc) {
$objExc->IncrementOffset();
throw $objExc;
}
}
}
示例12: __set
public function __set($strName, $mixValue)
{
switch ($strName) {
case "Name":
try {
$this->strName = QType::Cast($mixValue, QType::String);
break;
} catch (QInvalidCastException $objExc) {
$objExc->IncrementOffset();
throw $objExc;
}
case "Value":
try {
$this->strValue = QType::Cast($mixValue, QType::String);
break;
} catch (QInvalidCastException $objExc) {
$objExc->IncrementOffset();
throw $objExc;
}
case "Selected":
try {
$this->blnSelected = QType::Cast($mixValue, QType::Boolean);
break;
} catch (QInvalidCastException $objExc) {
$objExc->IncrementOffset();
throw $objExc;
}
default:
try {
parent::__set($strName, $mixValue);
} catch (QCallerException $objExc) {
$objExc->IncrementOffset();
throw $objExc;
}
break;
}
}
示例13: __set
/**
* Override method to perform a property "Set"
* This will set the property $strName to be $mixValue
*
* @param string $strName Name of the property to set
* @param string $mixValue New value of the property
* @return mixed
*/
public function __set($strName, $mixValue)
{
try {
switch ($strName) {
case 'KeyName':
return $this->strKeyName = QType::Cast($mixValue, QType::String);
case 'Table':
return $this->strTable = QType::Cast($mixValue, QType::String);
case 'Column':
return $this->strColumn = QType::Cast($mixValue, QType::String);
case 'PropertyName':
return $this->strPropertyName = QType::Cast($mixValue, QType::String);
case 'VariableName':
return $this->strVariableName = QType::Cast($mixValue, QType::String);
case 'VariableType':
return $this->strVariableType = QType::Cast($mixValue, QType::String);
case 'IsType':
return $this->blnIsType = QType::Cast($mixValue, QType::Boolean);
default:
return parent::__set($strName, $mixValue);
}
} catch (QCallerException $objExc) {
$objExc->IncrementOffset();
throw $objExc;
}
}
示例14: __set
/**
* Override method to perform a property "Set"
* This will set the property $strName to be $mixValue
*
* @param string $strName Name of the property to set
* @param string $mixValue New value of the property
* @return mixed
*/
public function __set($strName, $mixValue)
{
switch ($strName) {
///////////////////
// Member Variables
///////////////////
case 'CategoryId':
/**
* Sets the value for intCategoryId
* @param integer $mixValue
* @return integer
*/
try {
$this->objCategory = null;
return $this->intCategoryId = QType::Cast($mixValue, QType::Integer);
} catch (QCallerException $objExc) {
$objExc->IncrementOffset();
throw $objExc;
}
case 'ManufacturerId':
/**
* Sets the value for intManufacturerId
* @param integer $mixValue
* @return integer
*/
try {
$this->objManufacturer = null;
return $this->intManufacturerId = QType::Cast($mixValue, QType::Integer);
} catch (QCallerException $objExc) {
$objExc->IncrementOffset();
throw $objExc;
}
case 'InventoryModelCode':
/**
* Sets the value for strInventoryModelCode (Unique)
* @param string $mixValue
* @return string
*/
try {
return $this->strInventoryModelCode = QType::Cast($mixValue, QType::String);
} catch (QCallerException $objExc) {
$objExc->IncrementOffset();
throw $objExc;
}
case 'ShortDescription':
/**
* Sets the value for strShortDescription (Not Null)
* @param string $mixValue
* @return string
*/
try {
return $this->strShortDescription = QType::Cast($mixValue, QType::String);
} catch (QCallerException $objExc) {
$objExc->IncrementOffset();
throw $objExc;
}
case 'LongDescription':
/**
* Sets the value for strLongDescription
* @param string $mixValue
* @return string
*/
try {
return $this->strLongDescription = QType::Cast($mixValue, QType::String);
} catch (QCallerException $objExc) {
$objExc->IncrementOffset();
throw $objExc;
}
case 'ImagePath':
/**
* Sets the value for strImagePath
* @param string $mixValue
* @return string
*/
try {
return $this->strImagePath = QType::Cast($mixValue, QType::String);
} catch (QCallerException $objExc) {
$objExc->IncrementOffset();
throw $objExc;
}
case 'Price':
/**
* Sets the value for fltPrice
* @param double $mixValue
* @return double
*/
try {
return $this->fltPrice = QType::Cast($mixValue, QType::Float);
} catch (QCallerException $objExc) {
$objExc->IncrementOffset();
throw $objExc;
}
//.........这里部分代码省略.........
示例15: __set
/**
* Override method to perform a property "Set"
* This will set the property $strName to be $mixValue
*
* @param string $strName Name of the property to set
* @param string $mixValue New value of the property
* @return mixed
*/
public function __set($strName, $mixValue)
{
switch ($strName) {
///////////////////
// Member Variables
///////////////////
case 'IssueFieldId':
// Sets the value for intIssueFieldId (Not Null)
// @param integer $mixValue
// @return integer
try {
$this->objIssueField = null;
return $this->intIssueFieldId = QType::Cast($mixValue, QType::Integer);
} catch (QCallerException $objExc) {
$objExc->IncrementOffset();
throw $objExc;
}
case 'Name':
// Sets the value for strName (Not Null)
// @param string $mixValue
// @return string
try {
return $this->strName = QType::Cast($mixValue, QType::String);
} catch (QCallerException $objExc) {
$objExc->IncrementOffset();
throw $objExc;
}
case 'Token':
// Sets the value for strToken (Not Null)
// @param string $mixValue
// @return string
try {
return $this->strToken = QType::Cast($mixValue, QType::String);
} catch (QCallerException $objExc) {
$objExc->IncrementOffset();
throw $objExc;
}
case 'OrderNumber':
// Sets the value for intOrderNumber
// @param integer $mixValue
// @return integer
try {
return $this->intOrderNumber = QType::Cast($mixValue, QType::Integer);
} catch (QCallerException $objExc) {
$objExc->IncrementOffset();
throw $objExc;
}
case 'ActiveFlag':
// Sets the value for blnActiveFlag
// @param boolean $mixValue
// @return boolean
try {
return $this->blnActiveFlag = QType::Cast($mixValue, QType::Boolean);
} catch (QCallerException $objExc) {
$objExc->IncrementOffset();
throw $objExc;
}
///////////////////
// Member Objects
///////////////////
///////////////////
// Member Objects
///////////////////
case 'IssueField':
// Sets the value for the IssueField object referenced by intIssueFieldId (Not Null)
// @param IssueField $mixValue
// @return IssueField
if (is_null($mixValue)) {
$this->intIssueFieldId = null;
$this->objIssueField = null;
return null;
} else {
// Make sure $mixValue actually is a IssueField object
try {
$mixValue = QType::Cast($mixValue, 'IssueField');
} catch (QInvalidCastException $objExc) {
$objExc->IncrementOffset();
throw $objExc;
}
// Make sure $mixValue is a SAVED IssueField object
if (is_null($mixValue->Id)) {
throw new QCallerException('Unable to set an unsaved IssueField for this IssueFieldOption');
}
// Update Local Member Variables
$this->objIssueField = $mixValue;
$this->intIssueFieldId = $mixValue->Id;
// Return $mixValue
return $mixValue;
}
break;
default:
try {
//.........这里部分代码省略.........