• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

PHP QType类代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了PHP中QType的典型用法代码示例。如果您正苦于以下问题:PHP QType类的具体用法?PHP QType怎么用?PHP QType使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。



在下文中一共展示了QType类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的PHP代码示例。

示例1: __set

 public function __set($strName, $mixValue)
 {
     switch ($strName) {
         case '_ResizeData':
             // Internal only. Do not use. Called by JS above to keep track of user selection.
             try {
                 $data = QType::Cast($mixValue, QType::String);
                 $a = explode(",", $data);
                 $this->aryOriginalSize['width'] = $a[0];
                 $this->aryOriginalSize['height'] = $a[1];
                 $this->aryNewSize['width'] = $a[2];
                 $this->aryNewSize['height'] = $a[3];
                 // update dimensions
                 $this->strWidth = $this->aryNewSize['width'];
                 $this->strHeight = $this->aryNewSize['height'];
                 break;
             } catch (QInvalidCastException $objExc) {
                 $objExc->IncrementOffset();
                 throw $objExc;
             }
         default:
             try {
                 parent::__set($strName, $mixValue);
                 break;
             } catch (QCallerException $objExc) {
                 $objExc->IncrementOffset();
                 throw $objExc;
             }
     }
 }
开发者ID:tomVertuoz,项目名称:framework,代码行数:30,代码来源:QResizableBase.class.php


示例2: __set

 public function __set($strName, $mixValue)
 {
     switch ($strName) {
         case "Lat":
             try {
                 return $this->fltLat = QType::Cast($mixValue, QType::Float);
             } catch (QCallerException $objExc) {
                 $objExc->IncrementOffset();
                 throw $objExc;
             }
         case "Long":
             try {
                 return $this->fltLong = QType::Cast($mixValue, QType::Float);
             } catch (QCallerException $objExc) {
                 $objExc->IncrementOffset();
                 throw $objExc;
             }
         default:
             try {
                 return parent::__set($strName, $mixValue);
             } catch (QCallerException $objExc) {
                 $objExc->IncrementOffset();
                 throw $objExc;
             }
     }
 }
开发者ID:schematical,项目名称:MJax-Includes,代码行数:26,代码来源:MJaxTouchLocationData.class.php


示例3: __set

 public function __set($strName, $mixValue)
 {
     switch ($strName) {
         case '_ResizeData':
             // Internal only. Do not use. Called by qcubed.resizable to keep track of changes.
             try {
                 $data = QType::Cast($mixValue, QType::ArrayType);
                 $this->aryOriginalSize = $data['originalSize'];
                 $this->aryNewSize = $data['size'];
                 // update dimensions
                 $this->Width = $this->aryNewSize['width'];
                 $this->Height = $this->aryNewSize['height'];
                 break;
             } catch (QInvalidCastException $objExc) {
                 $objExc->IncrementOffset();
                 throw $objExc;
             }
         default:
             try {
                 parent::__set($strName, $mixValue);
                 break;
             } catch (QCallerException $objExc) {
                 $objExc->IncrementOffset();
                 throw $objExc;
             }
     }
 }
开发者ID:vaibhav-kaushal,项目名称:qc-framework,代码行数:27,代码来源:QResizableBase.class.php


示例4: testCasting

 public function testCasting()
 {
     define('_FAIL_', 'fail');
     $cases = array(array("25.0", "25.0", (double) 25.0, QType::Float), array("25.1", "25.1", (double) 25.1, QType::Float), array(25.0, "25.0", (double) 25.0, QType::Float), array(25.1, "25.1", (double) 25.1, QType::Float), array(true, "true", _FAIL_, QType::Float), array("true", "true", _FAIL_, QType::Float), array(false, "false", _FAIL_, QType::Float), array("false", "false", _FAIL_, QType::Float), array(1, "1", (double) 1, QType::Float), array(0, "0", (double) 0, QType::Float), array("1", "1", (double) 1, QType::Float), array("0", "0", (double) 0, QType::Float), array("25", "25", (double) 25, QType::Float), array(25, "25", (double) 25, QType::Float), array(34.51666666667, "34.51666666667", (double) 34.51666666667, QType::Float), array(2147483648, "2147483648", (double) 2147483648, QType::Float), array(-2147483648, "-2147483648", (double) -2147483648, QType::Float), array(-2147483649, "-2147483649", (double) -2147483649, QType::Float), array("34.51666666667", "34.51666666667", (double) 34.51666666667, QType::Float), array("2147483648", "2147483648", (double) 2147483648.0, QType::Float), array("-2147483648", "-2147483648", (double) -2147483648.0, QType::Float), array("-2147483649", "-2147483649", (double) -2147483649.0, QType::Float), array("25.0", "25.0", _FAIL_, QType::Integer), array("25.1", "25.1", _FAIL_, QType::Integer), array(25.0, "25.0", (int) 25, QType::Integer), array(25.1, "25.1", _FAIL_, QType::Integer), array(true, "true", _FAIL_, QType::Integer), array("true", "true", _FAIL_, QType::Integer), array(false, "false", _FAIL_, QType::Integer), array("false", "false", _FAIL_, QType::Integer), array(1, "1", 1, QType::Integer), array(0, "0", 0, QType::Integer), array("1", "1", 1, QType::Integer), array("0", "0", 0, QType::Integer), array("25", "25", 25, QType::Integer), array(25, "25", 25, QType::Integer), array(34.51666666667, "34.51666666667", _FAIL_, QType::Integer), array(2147483648, "2147483648", 2147483648, QType::Integer), array(-2147483648, "-2147483648", (int) -2147483648, QType::Integer), array(-2147483649, "-2147483649", -2147483649, QType::Integer), array("34.51666666667", "34.51666666667", _FAIL_, QType::Integer), array("2147483648", "2147483648", 2147483648, QType::Integer), array("-2147483648", "-2147483648", (int) -2147483648, QType::Integer), array("-2147483649", "-2147483649", -2147483649, QType::Integer), array(1.8446744073709552E+21, "1844674407370955161616", (double) 1.8446744073709552E+21, QType::Float), array(1.8446744073709552E+21, "1844674407370955161616", "fail", QType::Integer), array("1844674407370955161616", "1844674407370955161616", "1844674407370955161616", QType::Float), array("1844674407370955161616", "1844674407370955161616", "1844674407370955161616", QType::Integer), array(6, '6', '6', QType::String), array(6.94, '6.94', '6.94', QType::String), array(0.694 * 10, '6.94', '6.94', QType::String));
     foreach ($cases as $case) {
         $value = (string) $case[1] . '(' . gettype($case[0]) . ')';
         if ($case[2] === _FAIL_) {
             try {
                 QType::Cast($case[0], $case[3]);
                 $this->fail("Excepted exception was not thrown casting " . $value . " to " . $case[3]);
             } catch (QInvalidCastException $e) {
                 $this->pass("Casting " . $value . " to " . $case[3] . " caused a QInvalidCastException");
                 unset($e);
             }
         } else {
             try {
                 $castValue = QType::Cast($case[0], $case[3]);
                 $newValue = $castValue . '(' . gettype($castValue) . ')';
                 $this->assertIdentical($castValue, $case[2], "{$value} cast as a " . $case[3] . " is {$newValue}");
             } catch (Exception $e) {
                 $this->fail("Exception caused when casting {$value} to " . $case[3] . ": {$e->getMessage()}");
             }
         }
     }
 }
开发者ID:tomVertuoz,项目名称:framework,代码行数:25,代码来源:QTypeTests.php


示例5: __set

 public function __set($strName, $mixValue)
 {
     $this->blnModified = true;
     switch ($strName) {
         // APPEARANCE
         case "Text":
             try {
                 $this->strText = QType::Cast($mixValue, QType::String);
                 break;
             } catch (QInvalidCastException $objExc) {
                 $objExc->IncrementOffset();
                 throw $objExc;
             }
         case "HtmlEntities":
             try {
                 $this->blnHtmlEntities = 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;
     }
 }
开发者ID:eliud254,项目名称:q-auction,代码行数:31,代码来源:QLinkButton.class.php


示例6: __set

 public function __set($strName, $mixValue)
 {
     switch ($strName) {
         case "Once":
             try {
                 return $this->blnOnce = QType::Cast($mixValue, QType::Boolean);
             } catch (QCallerException $objExc) {
                 $objExc->IncrementOffset();
                 throw $objExc;
             }
         case "Rendered":
             try {
                 return $this->blnRendered = QType::Cast($mixValue, QType::Boolean);
             } catch (QCallerException $objExc) {
                 $objExc->IncrementOffset();
                 throw $objExc;
             }
         case "KeyCode":
             try {
                 return $this->strKeyCode = $mixValue;
             } catch (QCallerException $objExc) {
                 $objExc->IncrementOffset();
                 throw $objExc;
             }
         default:
             try {
                 return parent::__set($strName, $mixValue);
             } catch (QCallerException $objExc) {
                 $objExc->IncrementOffset();
                 throw $objExc;
             }
     }
 }
开发者ID:schematical,项目名称:MJax-Includes,代码行数:33,代码来源:_events.php


示例7: __set

 public function __set($strName, $mixValue)
 {
     $this->blnModified = true;
     switch ($strName) {
         case "Query":
             try {
                 $this->strQuery = QType::Cast($mixValue, QType::String);
                 break;
             } catch (QInvalidCastException $objExc) {
                 $objExc->IncrementOffset();
                 throw $objExc;
             }
         case "TotalQuery":
             try {
                 $this->strTotalQuery = QType::Cast($mixValue, QType::String);
                 break;
             } catch (QInvalidCastException $objExc) {
                 $objExc->IncrementOffset();
                 throw $objExc;
             }
         default:
             try {
                 parent::__set($strName, $mixValue);
             } catch (QCallerException $objExc) {
                 $objExc->IncrementOffset();
                 throw $objExc;
             }
             break;
     }
 }
开发者ID:Jobava,项目名称:narro,代码行数:30,代码来源:QDatabasePieChart.class.php


示例8: __set

 public function __set($strName, $mixValue)
 {
     switch ($strName) {
         case '_SelectedIndex':
             // Internal Only. Used by JS above. Do Not Call.
             try {
                 $this->mixActive = QType::Cast($mixValue, QType::Integer);
                 // will cause ->Active getter to always return index of content item that is currently active
             } catch (QInvalidCastException $objExc) {
                 try {
                     $this->mixActive = QType::Cast($mixValue, QType::Boolean);
                 } catch (QInvalidCastException $objExc) {
                     $objExc->IncrementOffset();
                     throw $objExc;
                 }
             }
             break;
         default:
             try {
                 parent::__set($strName, $mixValue);
             } catch (QInvalidCastException $objExc) {
                 $objExc->IncrementOffset();
                 throw $objExc;
             }
             break;
     }
 }
开发者ID:hiptc,项目名称:dle2wordpress,代码行数:27,代码来源:QAccordionBase.class.php


示例9: __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;
             }
     }
 }
开发者ID:schematical,项目名称:MJax2.0,代码行数:33,代码来源:MJaxListItem.class.php


示例10: __set

 public function __set($strName, $mixValue)
 {
     //$this->blnModified = true;
     switch ($strName) {
         case "ReadyFunction":
             // The name of a javascript function to call after the CKEditor instance is ready, so that you can do further initialization
             // This function will receive the formId and controlId as parameters, and "this" will be the ckeditor instance.
             try {
                 $this->strJsReadyFunc = \QType::Cast($mixValue, \QType::String);
                 break;
             } catch (QInvalidCastException $objExc) {
                 $objExc->IncrementOffset();
                 throw $objExc;
             }
             break;
         case "Configuration":
             // The configuration string. Could be a name of an object, or a javascript object (sourrounded by braces {})
             try {
                 $this->strConfiguration = \QType::Cast($mixValue, \QType::String);
                 break;
             } catch (QInvalidCastException $objExc) {
                 $objExc->IncrementOffset();
                 throw $objExc;
             }
             break;
         default:
             try {
                 parent::__set($strName, $mixValue);
             } catch (QCallerException $objExc) {
                 $objExc->IncrementOffset();
                 throw $objExc;
             }
             break;
     }
 }
开发者ID:qcubed,项目名称:plugin_ckeditor,代码行数:35,代码来源:QCKEditorBase.php


示例11: ConfigureBaseProperties

 /**
  * Sets up the base-level configuration properties for this database,
  * namely DB Profiling and Database Index
  *
  * @param integer $intDatabaseIndex
  * @return void
  */
 protected function ConfigureBaseProperties($intDatabaseIndex)
 {
     // Setup DatabaseIndex
     $this->intDatabaseIndex = $intDatabaseIndex;
     // Setup Profiling Array (if applicable)
     $this->blnEnableProfiling = QType::Cast(QApplication::$ConnectionStringArray[$intDatabaseIndex]['profiling'], QType::Boolean);
     if ($this->blnEnableProfiling) {
         $this->strProfileArray = array();
     }
 }
开发者ID:qcodo,项目名称:qcodo-api,代码行数:17,代码来源:QDatabaseBase.class.php


示例12: __construct

 public function __construct($strKey = null, $blnBase64 = null, $strCipher = null, $strMode = null)
 {
     // Get the Key
     if (is_null($strKey)) {
         $strKey = self::$Key;
     }
     // Get the Base64 Flag
     try {
         if (is_null($blnBase64)) {
             $this->blnBase64 = QType::Cast(self::$Base64, QType::Boolean);
         } else {
             $this->blnBase64 = QType::Cast($blnBase64, QType::Boolean);
         }
     } catch (QCallerException $objExc) {
         $objExc->IncrementOffset();
         throw $objExc;
     }
     // Get the Cipher
     if (is_null($strCipher)) {
         $strCipher = self::$Cipher;
     }
     // Get the Mode
     if (is_null($strMode)) {
         $strMode = self::$Mode;
     }
     $this->objMcryptModule = mcrypt_module_open($strCipher, null, $strMode, null);
     if (!$this->objMcryptModule) {
         throw new QCryptographyException('Unable to open LibMcrypt Module');
     }
     // Determine IV Size
     $intIvSize = mcrypt_enc_get_iv_size($this->objMcryptModule);
     // Create the IV
     if (self::$RandomSource != MCRYPT_RAND) {
         // Ignore All Warnings
         set_error_handler('QcodoHandleError', 0);
         $intCurrentLevel = error_reporting();
         error_reporting(0);
         $strIv = mcrypt_create_iv($intIvSize, self::$RandomSource);
         error_reporting($intCurrentLevel);
         restore_error_handler();
         // If the RandomNumGenerator didn't work, we revert back to using MCRYPT_RAND
         if (strlen($strIv) != $intIvSize) {
             srand();
             $strIv = mcrypt_create_iv($intIvSize, MCRYPT_RAND);
         }
     } else {
         srand();
         $strIv = mcrypt_create_iv($intIvSize, MCRYPT_RAND);
     }
     $this->strIv = $strIv;
     // Determine KeySize length
     $intKeySize = mcrypt_enc_get_key_size($this->objMcryptModule);
     // Create the Key Based on Key Passed In
     $this->strKey = substr(md5($strKey), 0, $intKeySize);
 }
开发者ID:eliud254,项目名称:q-auction,代码行数:55,代码来源:QCryptography.class.php


示例13: ParsePostData

 public function ParsePostData()
 {
     // Check to see if this Control's Value was passed in via the POST data
     if (array_key_exists($this->strControlId, $_FILES) && $_FILES[$this->strControlId]['tmp_name']) {
         // It was -- update this Control's value with the new value passed in via the POST arguments
         $this->strFileName = $_FILES[$this->strControlId]['name'];
         $this->strType = $_FILES[$this->strControlId]['type'];
         $this->intSize = QType::Cast($_FILES[$this->strControlId]['size'], QType::Integer);
         $this->strFile = $_FILES[$this->strControlId]['tmp_name'];
     }
 }
开发者ID:heshuai64,项目名称:einv2,代码行数:11,代码来源:QFileControl.class.php


示例14: Initialize

 private static function Initialize()
 {
     self::$intDbIndex = QType::Cast(self::$intDbIndex, QType::Integer);
     self::$strTableName = QType::Cast(self::$strTableName, QType::String);
     // If the database index exists
     if (!array_key_exists(self::$intDbIndex, QApplication::$Database)) {
         throw new QCallerException('No database defined at DB_CONNECTION index ' . self::$intDbIndex . '. Correct your settings in configuration.inc.php.');
     }
     $objDatabase = QApplication::$Database[self::$intDbIndex];
     // see if the database contains a table with desired name
     if (!in_array(self::$strTableName, $objDatabase->GetTables())) {
         throw new QCallerException('Table ' . self::$strTableName . ' not found in database at DB_CONNECTION index ' . self::$intDbIndex . '. Correct your settings in configuration.inc.php.');
     }
 }
开发者ID:tomVertuoz,项目名称:framework,代码行数:14,代码来源:QDbBackedFormStateHandler.class.php


示例15: __set

    public function __set($strName, $mixValue)
    {
        switch ($strName) {
            case '_SelectedItems':
                // Internal only. Do not use. Used by JS above to keep track of selections.
                try {
                    $strItems = QType::Cast($mixValue, QType::String);
                    $this->arySelectedItems = explode(",", $strItems);
                } catch (QInvalidCastException $objExc) {
                    $objExc->IncrementOffset();
                    throw $objExc;
                }
                break;
            case 'SelectedItems':
                // Set the selected items to an array of object ids
                try {
                    $aValues = QType::Cast($mixValue, QType::ArrayType);
                    $aJqIds = array();
                    foreach ($aValues as $val) {
                        $aJqIds[] = '"#' . $val . '"';
                    }
                    $strJqItems = join(',', $aJqIds);
                    $strJS = <<<FUNC
\t\t\t\t\t\t\tvar item = jQuery("#{$this->ControlId}");
\t\t\t\t\t\t\t
\t\t\t\t\t\t\tjQuery(".ui-selectee", item).each(function() {
\t\t\t\t\t\t\t\tjQuery(this).removeClass('ui-selected');
\t\t\t\t\t\t\t});
\t\t\t\t\t\t\t
\t\t\t\t\t\t\tjQuery({$strJqItems}).each(function() {
\t\t\t\t\t\t\t\tjQuery(this).addClass('ui-selected');
\t\t\t\t\t\t\t});
FUNC;
                    $this->arySelectedItems = $aValues;
                    QApplication::ExecuteJavascript($strJS);
                } catch (QInvalidCastException $objExc) {
                    $objExc->IncrementOffset();
                    throw $objExc;
                }
                break;
            default:
                try {
                    parent::__set($strName, $mixValue);
                    break;
                } catch (QCallerException $objExc) {
                    $objExc->IncrementOffset();
                    throw $objExc;
                }
        }
    }
开发者ID:tomVertuoz,项目名称:framework,代码行数:50,代码来源:QSelectableBase.class.php


示例16: __set

 public function __set($strName, $mixValue)
 {
     switch ($strName) {
         case '_DragData':
             // Internal only. Do not use. Used by JS above to keep track of user selection.
             try {
                 $data = QType::Cast($mixValue, QType::String);
                 $a = explode(",", $data);
                 $this->aryOriginalPosition['left'] = $a[0];
                 $this->aryOriginalPosition['top'] = $a[1];
                 $this->aryNewPosition['left'] = $a[2];
                 $this->aryNewPosition['top'] = $a[3];
                 // update parent's coordinates
                 $this->objParentControl->strTop = $this->aryNewPosition['top'];
                 $this->objParentControl->strLeft = $this->aryNewPosition['left'];
                 break;
             } catch (QInvalidCastException $objExc) {
                 $objExc->IncrementOffset();
                 throw $objExc;
             }
         case 'Handle':
             // Override to let you set the handle to:
             //	a QControl, or selector, or array of QControls or selectors
             if ($mixValue instanceof QControl) {
                 parent::__set($strName, '#' . $mixValue->ControlId);
             } elseif (is_array($mixValue)) {
                 $aHandles = array();
                 foreach ($mixValue as $mixItem) {
                     if ($mixItem instanceof QControl) {
                         $aHandles[] = '#' . $mixItem->ControlId;
                     } elseif (is_string($mixItem)) {
                         $aHandles[] = $mixItem;
                     }
                 }
                 parent::__set($strName, join(',', $aHandles));
             } else {
                 parent::__set($strName, $mixValue);
             }
             break;
         default:
             try {
                 parent::__set($strName, $mixValue);
                 break;
             } catch (QCallerException $objExc) {
                 $objExc->IncrementOffset();
                 throw $objExc;
             }
     }
 }
开发者ID:tomVertuoz,项目名称:framework,代码行数:49,代码来源:QDraggableBase.class.php


示例17: __set

 public function __set($strName, $mixValue)
 {
     switch ($strName) {
         case "Target":
             try {
                 return $this->objTarget = $mixValue;
             } catch (QCallerException $objExc) {
                 $objExc->IncrementOffset();
                 throw $objExc;
             }
         case "Function":
             try {
                 return $this->strFunction = QType::Cast($mixValue, QType::String);
             } catch (QCallerException $objExc) {
                 $objExc->IncrementOffset();
                 throw $objExc;
             }
         case "UseAjax":
             try {
                 $this->blnUseAjax = QType::Cast($mixValue, QType::Boolean);
                 if ($this->blnUseAjax) {
                     $this->AddAction(new MJaxKeyUpEvent(), new MJaxServerControlAction($this, "txtAutoComplete_change"));
                 } else {
                     $this->RemoveAllActions('keyup');
                 }
                 return;
             } catch (QCallerException $objExc) {
                 $objExc->IncrementOffset();
                 throw $objExc;
             }
         case "Data":
             try {
                 if (!$this->blnUseAjax) {
                     $this->ApplyPlugin(new MJaxAutoCompletePlugin($this->objForm, $mixValue));
                 }
                 return;
             } catch (QCallerException $objExc) {
                 $objExc->IncrementOffset();
                 throw $objExc;
             }
         default:
             try {
                 return parent::__set($strName, $mixValue);
             } catch (QCallerException $objExc) {
                 $objExc->IncrementOffset();
                 throw $objExc;
             }
     }
 }
开发者ID:schematical,项目名称:MJax2.0,代码行数:49,代码来源:MJaxAutoCompleteTextBox.class.php


示例18: __get

 public function __get($strName)
 {
     switch ($strName) {
         case "Errors":
             return $this->arrErrors;
         case "Error":
             return QType::Cast(count($this->arrErrors), QType::Boolean);
         case "Name":
             return $this->strName;
         case "Enable":
             return $this->blnEnable;
         default:
             throw new QUndefinedPropertyException("GET", __CLASS__, $strName);
     }
 }
开发者ID:Jobava,项目名称:narro,代码行数:15,代码来源:NarroPlugin.class.php


示例19: __construct

 /**
  * @param QQColumnNode $objQueryNode
  * @param string       $strValue
  *
  * @throws Exception
  * @throws QCallerException
  * @throws QInvalidCastException
  */
 public function __construct(QQColumnNode $objQueryNode, $strValue)
 {
     parent::__construct($objQueryNode);
     if ($strValue instanceof QQNamedValue) {
         $this->mixOperand = $strValue;
     } else {
         try {
             $this->mixOperand = QType::Cast($strValue, QType::String);
         } catch (QCallerException $objExc) {
             $objExc->IncrementOffset();
             $objExc->IncrementOffset();
             throw $objExc;
         }
     }
 }
开发者ID:vaibhav-kaushal,项目名称:qc-framework,代码行数:23,代码来源:QPgQuery.class.php


示例20: ParsePostData

 public function ParsePostData()
 {
     // Check to see if this Control's Value was passed in via the POST data
     // Added the tmp_name condition because it was submitting the Control even when empty
     // Mike Ho recognized it as a bug and will be fixing it in the next release
     if (array_key_exists($this->strControlId, $_FILES) && $_FILES[$this->strControlId]['tmp_name']) {
         // It was -- update this Control's value with the new value passed in via the POST arguments
         if ($_FILES[$this->strControlId]['name']) {
             $this->strFileName = $_FILES[$this->strControlId]['name'];
             $this->strType = $_FILES[$this->strControlId]['type'];
             $this->intSize = QType::Cast($_FILES[$this->strControlId]['size'], QType::Integer);
             $this->strFile = $_FILES[$this->strControlId]['tmp_name'];
         }
     }
 }
开发者ID:heshuai64,项目名称:einv2,代码行数:15,代码来源:QImageFileControl.class.php



注:本文中的QType类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
PHP Q_Config类代码示例发布时间:2022-05-23
下一篇:
PHP QString类代码示例发布时间:2022-05-23
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap