public function __get($strName) { switch ($strName) { // MISC case "FileName": return $this->strFileName; case "Type": return $this->strType; case "Size": return $this->intSize; case "File": return $this->strFile; case "Error": return $this->intError; default: try { return parent::__get($strName); } catch (QCallerException $objExc) { $objExc->IncrementOffset(); throw $objExc; } } }
public function __set($strName, $mixValue) { switch ($strName) { case "FileName": $this->strFileName = $mixValue; break; case "Type": $this->strType = $mixValue; break; case "Size": $this->intSize = $mixValue; break; case "File": $this->strFile = $mixValue; break; case "UploadPath": $this->strUploadPath = $mixValue; break; case "WebPath": $this->strWebPath = $mixValue; break; case "ThumbUploadPath": $this->strThumbUploadPath = $mixValue; break; case "ThumbWebPath": $this->strThumbWebPath = $mixValue; break; case "BuildThumbs": $this->boolBuildThumbs = (bool) $mixValue; break; case "ThumbWidth": $this->intThumbWidth = (int) $mixValue; break; case "ThumbHeight": $this->intThumbHeight = (int) $mixValue; break; case "ThumbPrefix": $this->strThumbPrefix = $mixValue; break; case "Prefix": $this->strPrefix = $mixValue; break; case "Suffix": $this->strSuffix = $mixValue; break; default: try { parent::__set($strName, $mixValue); } catch (QCallerException $objExc) { $objExc->IncrementOffset(); throw $objExc; } break; } }