Пример #1
0
 public function Save($blnForceInsert = false, $blnForceUpdate = false)
 {
     if (!$this->__blnRestored || $blnForceInsert) {
         $this->CreatedBy = QApplication::$objUserAccount->UserAccountId;
         $this->CreationDate = new QDateTime(QDateTime::Now);
     } else {
         $this->ModifiedBy = QApplication::$objUserAccount->UserAccountId;
     }
     parent::Save($blnForceInsert, $blnForceUpdate);
 }
Пример #2
0
 public function __set($strName, $mixValue)
 {
     switch ($strName) {
         ///////////////////
         // Member Variables
         ///////////////////
         case 'CustomFieldValueId':
             /**
              * Sets the value for intCustomFieldId (Not Null)
              * @param integer $mixValue
              * @return integer
              */
             try {
                 return $this->intCustomFieldValueId = QType::Cast($mixValue, QType::Integer);
             } catch (QCallerException $objExc) {
                 $objExc->IncrementOffset();
                 throw $objExc;
             }
         default:
             try {
                 return parent::__set($strName, $mixValue);
             } catch (QCallerException $objExc) {
                 $objExc->IncrementOffset();
                 throw $objExc;
             }
     }
 }