Esempio n. 1
0
 public static function Authenticate($intModuleId = null)
 {
     if (array_key_exists('intUserAccountId', $_SESSION)) {
         $objUserAccount = UserAccount::Load($_SESSION['intUserAccountId']);
         if ($objUserAccount) {
             // Assign the UserAccount object to the globally available QApplication
             QApplication::$objUserAccount = $objUserAccount;
             // If they are not in the admin panel
             if ($intModuleId) {
                 $objRoleModule = RoleModule::LoadByRoleIdModuleId($objUserAccount->RoleId, $intModuleId);
                 // If they do not have access to this module
                 if (!$objRoleModule->AccessFlag) {
                     QApplication::Redirect('../common/trespass.php');
                 } else {
                     QApplication::$objRoleModule = $objRoleModule;
                 }
             } elseif (!$objUserAccount->AdminFlag) {
                 QApplication::Redirect('../common/trespass.php');
             }
         } else {
             QApplication::Redirect('../common/trespass.php');
         }
     } else {
         QApplication::Redirect('../login.php');
     }
 }
 protected function SetupUserAccount()
 {
     // Lookup Object PK information from Query String (if applicable)
     // Set mode to Edit or New depending on what's found
     $intUserAccountId = QApplication::QueryString('intUserAccountId');
     if ($intUserAccountId) {
         $this->objUserAccount = UserAccount::Load($intUserAccountId);
         if (!$this->objUserAccount) {
             throw new Exception('Could not find a UserAccount object with PK arguments: ' . $intUserAccountId);
         }
         $this->strTitleVerb = QApplication::Translate('Edit');
         $this->blnEditMode = true;
     } else {
         $this->objUserAccount = new UserAccount();
         $this->strTitleVerb = QApplication::Translate('Create');
         $this->blnEditMode = false;
     }
 }
 /**
  * Override method to perform a property "Get"
  * This will get the value of $strName
  *
  * @param string $strName Name of the property to get
  * @return mixed
  */
 public function __get($strName)
 {
     switch ($strName) {
         ///////////////////
         // Member Variables
         ///////////////////
         case 'RoleModuleAuthorizationId':
             /**
              * Gets the value for intRoleModuleAuthorizationId (Read-Only PK)
              * @return integer
              */
             return $this->intRoleModuleAuthorizationId;
         case 'RoleModuleId':
             /**
              * Gets the value for intRoleModuleId 
              * @return integer
              */
             return $this->intRoleModuleId;
         case 'AuthorizationId':
             /**
              * Gets the value for intAuthorizationId 
              * @return integer
              */
             return $this->intAuthorizationId;
         case 'AuthorizationLevelId':
             /**
              * Gets the value for intAuthorizationLevelId 
              * @return integer
              */
             return $this->intAuthorizationLevelId;
         case 'CreatedBy':
             /**
              * Gets the value for intCreatedBy 
              * @return integer
              */
             return $this->intCreatedBy;
         case 'CreationDate':
             /**
              * Gets the value for dttCreationDate 
              * @return QDateTime
              */
             return $this->dttCreationDate;
         case 'ModifiedBy':
             /**
              * Gets the value for intModifiedBy 
              * @return integer
              */
             return $this->intModifiedBy;
         case 'ModifiedDate':
             /**
              * Gets the value for strModifiedDate (Read-Only Timestamp)
              * @return string
              */
             return $this->strModifiedDate;
             ///////////////////
             // Member Objects
             ///////////////////
         ///////////////////
         // Member Objects
         ///////////////////
         case 'RoleModule':
             /**
              * Gets the value for the RoleModule object referenced by intRoleModuleId 
              * @return RoleModule
              */
             try {
                 if (!$this->objRoleModule && !is_null($this->intRoleModuleId)) {
                     $this->objRoleModule = RoleModule::Load($this->intRoleModuleId);
                 }
                 return $this->objRoleModule;
             } catch (QCallerException $objExc) {
                 $objExc->IncrementOffset();
                 throw $objExc;
             }
         case 'Authorization':
             /**
              * Gets the value for the Authorization object referenced by intAuthorizationId 
              * @return Authorization
              */
             try {
                 if (!$this->objAuthorization && !is_null($this->intAuthorizationId)) {
                     $this->objAuthorization = Authorization::Load($this->intAuthorizationId);
                 }
                 return $this->objAuthorization;
             } catch (QCallerException $objExc) {
                 $objExc->IncrementOffset();
                 throw $objExc;
             }
         case 'AuthorizationLevel':
             /**
              * Gets the value for the AuthorizationLevel object referenced by intAuthorizationLevelId 
              * @return AuthorizationLevel
              */
             try {
                 if (!$this->objAuthorizationLevel && !is_null($this->intAuthorizationLevelId)) {
                     $this->objAuthorizationLevel = AuthorizationLevel::Load($this->intAuthorizationLevelId);
                 }
                 return $this->objAuthorizationLevel;
             } catch (QCallerException $objExc) {
                 $objExc->IncrementOffset();
                 throw $objExc;
             }
         case 'CreatedByObject':
             /**
              * Gets the value for the UserAccount object referenced by intCreatedBy 
              * @return UserAccount
              */
             try {
                 if (!$this->objCreatedByObject && !is_null($this->intCreatedBy)) {
                     $this->objCreatedByObject = UserAccount::Load($this->intCreatedBy);
                 }
                 return $this->objCreatedByObject;
             } catch (QCallerException $objExc) {
                 $objExc->IncrementOffset();
                 throw $objExc;
             }
         case 'ModifiedByObject':
             /**
              * Gets the value for the UserAccount object referenced by intModifiedBy 
              * @return UserAccount
              */
             try {
                 if (!$this->objModifiedByObject && !is_null($this->intModifiedBy)) {
                     $this->objModifiedByObject = UserAccount::Load($this->intModifiedBy);
                 }
                 return $this->objModifiedByObject;
             } catch (QCallerException $objExc) {
                 $objExc->IncrementOffset();
                 throw $objExc;
             }
             ////////////////////////////
             // Virtual Object References (Many to Many and Reverse References)
             // (If restored via a "Many-to" expansion)
             ////////////////////////////
         ////////////////////////////
         // Virtual Object References (Many to Many and Reverse References)
         // (If restored via a "Many-to" expansion)
         ////////////////////////////
         default:
             try {
                 return parent::__get($strName);
             } catch (QCallerException $objExc) {
                 $objExc->IncrementOffset();
                 throw $objExc;
             }
     }
 }
 /**
  * Override method to perform a property "Get"
  * This will get the value of $strName
  *
  * @param string $strName Name of the property to get
  * @return mixed
  */
 public function __get($strName)
 {
     switch ($strName) {
         ///////////////////
         // Member Variables
         ///////////////////
         case 'RoleEntityBuiltInId':
             // Gets the value for intRoleEntityBuiltInId (Read-Only PK)
             // @return integer
             return $this->intRoleEntityBuiltInId;
         case 'RoleId':
             // Gets the value for intRoleId (Not Null)
             // @return integer
             return $this->intRoleId;
         case 'EntityQtypeId':
             // Gets the value for intEntityQtypeId (Not Null)
             // @return integer
             return $this->intEntityQtypeId;
         case 'AuthorizationId':
             // Gets the value for intAuthorizationId (Not Null)
             // @return integer
             return $this->intAuthorizationId;
         case 'AuthorizedFlag':
             // Gets the value for blnAuthorizedFlag (Not Null)
             // @return boolean
             return $this->blnAuthorizedFlag;
         case 'CreatedBy':
             // Gets the value for intCreatedBy
             // @return integer
             return $this->intCreatedBy;
         case 'CreationDate':
             // Gets the value for dttCreationDate
             // @return QDateTime
             return $this->dttCreationDate;
         case 'ModifiedBy':
             // Gets the value for intModifiedBy
             // @return integer
             return $this->intModifiedBy;
         case 'ModifiedDate':
             // Gets the value for strModifiedDate (Read-Only Timestamp)
             // @return string
             return $this->strModifiedDate;
             ///////////////////
             // Member Objects
             ///////////////////
         ///////////////////
         // Member Objects
         ///////////////////
         case 'Role':
             // Gets the value for the Role object referenced by intRoleId (Not Null)
             // @return Role
             try {
                 if (!$this->objRole && !is_null($this->intRoleId)) {
                     $this->objRole = Role::Load($this->intRoleId);
                 }
                 return $this->objRole;
             } catch (QCallerException $objExc) {
                 $objExc->IncrementOffset();
                 throw $objExc;
             }
         case 'Authorization':
             // Gets the value for the Authorization object referenced by intAuthorizationId (Not Null)
             // @return Authorization
             try {
                 if (!$this->objAuthorization && !is_null($this->intAuthorizationId)) {
                     $this->objAuthorization = Authorization::Load($this->intAuthorizationId);
                 }
                 return $this->objAuthorization;
             } catch (QCallerException $objExc) {
                 $objExc->IncrementOffset();
                 throw $objExc;
             }
         case 'CreatedByObject':
             // Gets the value for the UserAccount object referenced by intCreatedBy
             // @return UserAccount
             try {
                 if (!$this->objCreatedByObject && !is_null($this->intCreatedBy)) {
                     $this->objCreatedByObject = UserAccount::Load($this->intCreatedBy);
                 }
                 return $this->objCreatedByObject;
             } catch (QCallerException $objExc) {
                 $objExc->IncrementOffset();
                 throw $objExc;
             }
         case 'ModifiedByObject':
             // Gets the value for the UserAccount object referenced by intModifiedBy
             // @return UserAccount
             try {
                 if (!$this->objModifiedByObject && !is_null($this->intModifiedBy)) {
                     $this->objModifiedByObject = UserAccount::Load($this->intModifiedBy);
                 }
                 return $this->objModifiedByObject;
             } catch (QCallerException $objExc) {
                 $objExc->IncrementOffset();
                 throw $objExc;
             }
             ////////////////////////////
             // Virtual Object References (Many to Many and Reverse References)
             // (If restored via a "Many-to" expansion)
             ////////////////////////////
         ////////////////////////////
         // Virtual Object References (Many to Many and Reverse References)
         // (If restored via a "Many-to" expansion)
         ////////////////////////////
         case '__Restored':
             return $this->__blnRestored;
         default:
             try {
                 return parent::__get($strName);
             } catch (QCallerException $objExc) {
                 $objExc->IncrementOffset();
                 throw $objExc;
             }
     }
 }
Esempio n. 5
0
 /**
  * Override method to perform a property "Get"
  * This will get the value of $strName
  *
  * @param string $strName Name of the property to get
  * @return mixed
  */
 public function __get($strName)
 {
     switch ($strName) {
         ///////////////////
         // Member Variables
         ///////////////////
         case 'RoleId':
             // Gets the value for intRoleId (Read-Only PK)
             // @return integer
             return $this->intRoleId;
         case 'ShortDescription':
             // Gets the value for strShortDescription (Not Null)
             // @return string
             return $this->strShortDescription;
         case 'LongDescription':
             // Gets the value for strLongDescription
             // @return string
             return $this->strLongDescription;
         case 'CreatedBy':
             // Gets the value for intCreatedBy
             // @return integer
             return $this->intCreatedBy;
         case 'CreationDate':
             // Gets the value for dttCreationDate
             // @return QDateTime
             return $this->dttCreationDate;
         case 'ModifiedBy':
             // Gets the value for intModifiedBy
             // @return integer
             return $this->intModifiedBy;
         case 'ModifiedDate':
             // Gets the value for strModifiedDate (Read-Only Timestamp)
             // @return string
             return $this->strModifiedDate;
             ///////////////////
             // Member Objects
             ///////////////////
         ///////////////////
         // Member Objects
         ///////////////////
         case 'CreatedByObject':
             // Gets the value for the UserAccount object referenced by intCreatedBy
             // @return UserAccount
             try {
                 if (!$this->objCreatedByObject && !is_null($this->intCreatedBy)) {
                     $this->objCreatedByObject = UserAccount::Load($this->intCreatedBy);
                 }
                 return $this->objCreatedByObject;
             } catch (QCallerException $objExc) {
                 $objExc->IncrementOffset();
                 throw $objExc;
             }
         case 'ModifiedByObject':
             // Gets the value for the UserAccount object referenced by intModifiedBy
             // @return UserAccount
             try {
                 if (!$this->objModifiedByObject && !is_null($this->intModifiedBy)) {
                     $this->objModifiedByObject = UserAccount::Load($this->intModifiedBy);
                 }
                 return $this->objModifiedByObject;
             } catch (QCallerException $objExc) {
                 $objExc->IncrementOffset();
                 throw $objExc;
             }
             ////////////////////////////
             // Virtual Object References (Many to Many and Reverse References)
             // (If restored via a "Many-to" expansion)
             ////////////////////////////
         ////////////////////////////
         // Virtual Object References (Many to Many and Reverse References)
         // (If restored via a "Many-to" expansion)
         ////////////////////////////
         case '_RoleEntityQtypeBuiltInAuthorization':
             // Gets the value for the private _objRoleEntityQtypeBuiltInAuthorization (Read-Only)
             // if set due to an expansion on the role_entity_qtype_built_in_authorization.role_id reverse relationship
             // @return RoleEntityQtypeBuiltInAuthorization
             return $this->_objRoleEntityQtypeBuiltInAuthorization;
         case '_RoleEntityQtypeBuiltInAuthorizationArray':
             // Gets the value for the private _objRoleEntityQtypeBuiltInAuthorizationArray (Read-Only)
             // if set due to an ExpandAsArray on the role_entity_qtype_built_in_authorization.role_id reverse relationship
             // @return RoleEntityQtypeBuiltInAuthorization[]
             return (array) $this->_objRoleEntityQtypeBuiltInAuthorizationArray;
         case '_RoleEntityQtypeCustomFieldAuthorization':
             // Gets the value for the private _objRoleEntityQtypeCustomFieldAuthorization (Read-Only)
             // if set due to an expansion on the role_entity_qtype_custom_field_authorization.role_id reverse relationship
             // @return RoleEntityQtypeCustomFieldAuthorization
             return $this->_objRoleEntityQtypeCustomFieldAuthorization;
         case '_RoleEntityQtypeCustomFieldAuthorizationArray':
             // Gets the value for the private _objRoleEntityQtypeCustomFieldAuthorizationArray (Read-Only)
             // if set due to an ExpandAsArray on the role_entity_qtype_custom_field_authorization.role_id reverse relationship
             // @return RoleEntityQtypeCustomFieldAuthorization[]
             return (array) $this->_objRoleEntityQtypeCustomFieldAuthorizationArray;
         case '_RoleModule':
             // Gets the value for the private _objRoleModule (Read-Only)
             // if set due to an expansion on the role_module.role_id reverse relationship
             // @return RoleModule
             return $this->_objRoleModule;
         case '_RoleModuleArray':
             // Gets the value for the private _objRoleModuleArray (Read-Only)
             // if set due to an ExpandAsArray on the role_module.role_id reverse relationship
             // @return RoleModule[]
             return (array) $this->_objRoleModuleArray;
         case '_RoleTransactionTypeAuthorization':
             // Gets the value for the private _objRoleTransactionTypeAuthorization (Read-Only)
             // if set due to an expansion on the role_transaction_type_authorization.role_id reverse relationship
             // @return RoleTransactionTypeAuthorization
             return $this->_objRoleTransactionTypeAuthorization;
         case '_RoleTransactionTypeAuthorizationArray':
             // Gets the value for the private _objRoleTransactionTypeAuthorizationArray (Read-Only)
             // if set due to an ExpandAsArray on the role_transaction_type_authorization.role_id reverse relationship
             // @return RoleTransactionTypeAuthorization[]
             return (array) $this->_objRoleTransactionTypeAuthorizationArray;
         case '_UserAccount':
             // Gets the value for the private _objUserAccount (Read-Only)
             // if set due to an expansion on the user_account.role_id reverse relationship
             // @return UserAccount
             return $this->_objUserAccount;
         case '_UserAccountArray':
             // Gets the value for the private _objUserAccountArray (Read-Only)
             // if set due to an ExpandAsArray on the user_account.role_id reverse relationship
             // @return UserAccount[]
             return (array) $this->_objUserAccountArray;
         case '__Restored':
             return $this->__blnRestored;
         default:
             try {
                 return parent::__get($strName);
             } catch (QCallerException $objExc) {
                 $objExc->IncrementOffset();
                 throw $objExc;
             }
     }
 }
 /**
  * Override method to perform a property "Get"
  * This will get the value of $strName
  *
  * @param string $strName Name of the property to get
  * @return mixed
  */
 public function __get($strName)
 {
     switch ($strName) {
         ///////////////////
         // Member Variables
         ///////////////////
         case 'ShippingAccountId':
             /**
              * Gets the value for intShippingAccountId (Read-Only PK)
              * @return integer
              */
             return $this->intShippingAccountId;
         case 'CourierId':
             /**
              * Gets the value for intCourierId (Not Null)
              * @return integer
              */
             return $this->intCourierId;
         case 'ShortDescription':
             /**
              * Gets the value for strShortDescription (Not Null)
              * @return string
              */
             return $this->strShortDescription;
         case 'AccessId':
             /**
              * Gets the value for strAccessId (Not Null)
              * @return string
              */
             return $this->strAccessId;
         case 'AccessCode':
             /**
              * Gets the value for strAccessCode (Not Null)
              * @return string
              */
             return $this->strAccessCode;
         case 'CreatedBy':
             /**
              * Gets the value for intCreatedBy 
              * @return integer
              */
             return $this->intCreatedBy;
         case 'CreationDate':
             /**
              * Gets the value for dttCreationDate 
              * @return QDateTime
              */
             return $this->dttCreationDate;
         case 'ModifiedBy':
             /**
              * Gets the value for intModifiedBy 
              * @return integer
              */
             return $this->intModifiedBy;
         case 'ModifiedDate':
             /**
              * Gets the value for strModifiedDate (Read-Only Timestamp)
              * @return string
              */
             return $this->strModifiedDate;
             ///////////////////
             // Member Objects
             ///////////////////
         ///////////////////
         // Member Objects
         ///////////////////
         case 'Courier':
             /**
              * Gets the value for the Courier object referenced by intCourierId (Not Null)
              * @return Courier
              */
             try {
                 if (!$this->objCourier && !is_null($this->intCourierId)) {
                     $this->objCourier = Courier::Load($this->intCourierId);
                 }
                 return $this->objCourier;
             } catch (QCallerException $objExc) {
                 $objExc->IncrementOffset();
                 throw $objExc;
             }
         case 'CreatedByObject':
             /**
              * Gets the value for the UserAccount object referenced by intCreatedBy 
              * @return UserAccount
              */
             try {
                 if (!$this->objCreatedByObject && !is_null($this->intCreatedBy)) {
                     $this->objCreatedByObject = UserAccount::Load($this->intCreatedBy);
                 }
                 return $this->objCreatedByObject;
             } catch (QCallerException $objExc) {
                 $objExc->IncrementOffset();
                 throw $objExc;
             }
         case 'ModifiedByObject':
             /**
              * Gets the value for the UserAccount object referenced by intModifiedBy 
              * @return UserAccount
              */
             try {
                 if (!$this->objModifiedByObject && !is_null($this->intModifiedBy)) {
                     $this->objModifiedByObject = UserAccount::Load($this->intModifiedBy);
                 }
                 return $this->objModifiedByObject;
             } catch (QCallerException $objExc) {
                 $objExc->IncrementOffset();
                 throw $objExc;
             }
             ////////////////////////////
             // Virtual Object References (Many to Many and Reverse References)
             // (If restored via a "Many-to" expansion)
             ////////////////////////////
         ////////////////////////////
         // Virtual Object References (Many to Many and Reverse References)
         // (If restored via a "Many-to" expansion)
         ////////////////////////////
         case '_FedexShipment':
             /**
              * Gets the value for the private _objFedexShipment (Read-Only)
              * if set due to an expansion on the fedex_shipment.shipping_account_id reverse relationship
              * @return FedexShipment
              */
             return $this->_objFedexShipment;
         case '_FedexShipmentArray':
             /**
              * Gets the value for the private _objFedexShipmentArray (Read-Only)
              * if set due to an ExpandAsArray on the fedex_shipment.shipping_account_id reverse relationship
              * @return FedexShipment[]
              */
             return (array) $this->_objFedexShipmentArray;
         default:
             try {
                 return parent::__get($strName);
             } catch (QCallerException $objExc) {
                 $objExc->IncrementOffset();
                 throw $objExc;
             }
     }
 }
 /**
  * Override method to perform a property "Get"
  * This will get the value of $strName
  *
  * @param string $strName Name of the property to get
  * @return mixed
  */
 public function __get($strName)
 {
     switch ($strName) {
         ///////////////////
         // Member Variables
         ///////////////////
         case 'DatagridColumnPreferenceId':
             /**
              * Gets the value for intDatagridColumnPreferenceId (Read-Only PK)
              * @return integer
              */
             return $this->intDatagridColumnPreferenceId;
         case 'DatagridId':
             /**
              * Gets the value for intDatagridId (Not Null)
              * @return integer
              */
             return $this->intDatagridId;
         case 'ColumnName':
             /**
              * Gets the value for strColumnName (Not Null)
              * @return string
              */
             return $this->strColumnName;
         case 'UserAccountId':
             /**
              * Gets the value for intUserAccountId (Not Null)
              * @return integer
              */
             return $this->intUserAccountId;
         case 'DisplayFlag':
             /**
              * Gets the value for blnDisplayFlag (Not Null)
              * @return boolean
              */
             return $this->blnDisplayFlag;
             ///////////////////
             // Member Objects
             ///////////////////
         ///////////////////
         // Member Objects
         ///////////////////
         case 'Datagrid':
             /**
              * Gets the value for the Datagrid object referenced by intDatagridId (Not Null)
              * @return Datagrid
              */
             try {
                 if (!$this->objDatagrid && !is_null($this->intDatagridId)) {
                     $this->objDatagrid = Datagrid::Load($this->intDatagridId);
                 }
                 return $this->objDatagrid;
             } catch (QCallerException $objExc) {
                 $objExc->IncrementOffset();
                 throw $objExc;
             }
         case 'UserAccount':
             /**
              * Gets the value for the UserAccount object referenced by intUserAccountId (Not Null)
              * @return UserAccount
              */
             try {
                 if (!$this->objUserAccount && !is_null($this->intUserAccountId)) {
                     $this->objUserAccount = UserAccount::Load($this->intUserAccountId);
                 }
                 return $this->objUserAccount;
             } catch (QCallerException $objExc) {
                 $objExc->IncrementOffset();
                 throw $objExc;
             }
             ////////////////////////////
             // Virtual Object References (Many to Many and Reverse References)
             // (If restored via a "Many-to" expansion)
             ////////////////////////////
         ////////////////////////////
         // Virtual Object References (Many to Many and Reverse References)
         // (If restored via a "Many-to" expansion)
         ////////////////////////////
         default:
             try {
                 return parent::__get($strName);
             } catch (QCallerException $objExc) {
                 $objExc->IncrementOffset();
                 throw $objExc;
             }
     }
 }
 /**
  * Override method to perform a property "Get"
  * This will get the value of $strName
  *
  * @param string $strName Name of the property to get
  * @return mixed
  */
 public function __get($strName)
 {
     switch ($strName) {
         ///////////////////
         // Member Variables
         ///////////////////
         case 'NotificationId':
             // Gets the value for intNotificationId (Read-Only PK)
             // @return integer
             return $this->intNotificationId;
         case 'ShortDescription':
             // Gets the value for strShortDescription (Not Null)
             // @return string
             return $this->strShortDescription;
         case 'LongDescription':
             // Gets the value for strLongDescription
             // @return string
             return $this->strLongDescription;
         case 'Criteria':
             // Gets the value for strCriteria
             // @return string
             return $this->strCriteria;
         case 'Frequency':
             // Gets the value for strFrequency (Not Null)
             // @return string
             return $this->strFrequency;
         case 'EnabledFlag':
             // Gets the value for blnEnabledFlag (Not Null)
             // @return boolean
             return $this->blnEnabledFlag;
         case 'CreatedBy':
             // Gets the value for intCreatedBy
             // @return integer
             return $this->intCreatedBy;
         case 'CreationDate':
             // Gets the value for dttCreationDate
             // @return QDateTime
             return $this->dttCreationDate;
         case 'ModifiedBy':
             // Gets the value for intModifiedBy
             // @return integer
             return $this->intModifiedBy;
         case 'ModifiedDate':
             // Gets the value for strModifiedDate (Read-Only Timestamp)
             // @return string
             return $this->strModifiedDate;
             ///////////////////
             // Member Objects
             ///////////////////
         ///////////////////
         // Member Objects
         ///////////////////
         case 'CreatedByObject':
             // Gets the value for the UserAccount object referenced by intCreatedBy
             // @return UserAccount
             try {
                 if (!$this->objCreatedByObject && !is_null($this->intCreatedBy)) {
                     $this->objCreatedByObject = UserAccount::Load($this->intCreatedBy);
                 }
                 return $this->objCreatedByObject;
             } catch (QCallerException $objExc) {
                 $objExc->IncrementOffset();
                 throw $objExc;
             }
         case 'ModifiedByObject':
             // Gets the value for the UserAccount object referenced by intModifiedBy
             // @return UserAccount
             try {
                 if (!$this->objModifiedByObject && !is_null($this->intModifiedBy)) {
                     $this->objModifiedByObject = UserAccount::Load($this->intModifiedBy);
                 }
                 return $this->objModifiedByObject;
             } catch (QCallerException $objExc) {
                 $objExc->IncrementOffset();
                 throw $objExc;
             }
             ////////////////////////////
             // Virtual Object References (Many to Many and Reverse References)
             // (If restored via a "Many-to" expansion)
             ////////////////////////////
         ////////////////////////////
         // Virtual Object References (Many to Many and Reverse References)
         // (If restored via a "Many-to" expansion)
         ////////////////////////////
         case '_NotificationUserAccount':
             // Gets the value for the private _objNotificationUserAccount (Read-Only)
             // if set due to an expansion on the notification_user_account.notification_id reverse relationship
             // @return NotificationUserAccount
             return $this->_objNotificationUserAccount;
         case '_NotificationUserAccountArray':
             // Gets the value for the private _objNotificationUserAccountArray (Read-Only)
             // if set due to an ExpandAsArray on the notification_user_account.notification_id reverse relationship
             // @return NotificationUserAccount[]
             return (array) $this->_objNotificationUserAccountArray;
         case '__Restored':
             return $this->__blnRestored;
         default:
             try {
                 return parent::__get($strName);
             } catch (QCallerException $objExc) {
                 $objExc->IncrementOffset();
                 throw $objExc;
             }
     }
 }
 /**
  * Override method to perform a property "Get"
  * This will get the value of $strName
  *
  * @param string $strName Name of the property to get
  * @return mixed
  */
 public function __get($strName)
 {
     switch ($strName) {
         ///////////////////
         // Member Variables
         ///////////////////
         case 'TransactionId':
             // Gets the value for intTransactionId (Read-Only PK)
             // @return integer
             return $this->intTransactionId;
         case 'EntityQtypeId':
             // Gets the value for intEntityQtypeId (Not Null)
             // @return integer
             return $this->intEntityQtypeId;
         case 'TransactionTypeId':
             // Gets the value for intTransactionTypeId (Not Null)
             // @return integer
             return $this->intTransactionTypeId;
         case 'Note':
             // Gets the value for strNote
             // @return string
             return $this->strNote;
         case 'CreatedBy':
             // Gets the value for intCreatedBy
             // @return integer
             return $this->intCreatedBy;
         case 'CreationDate':
             // Gets the value for dttCreationDate
             // @return QDateTime
             return $this->dttCreationDate;
         case 'ModifiedBy':
             // Gets the value for intModifiedBy
             // @return integer
             return $this->intModifiedBy;
         case 'ModifiedDate':
             // Gets the value for strModifiedDate (Read-Only Timestamp)
             // @return string
             return $this->strModifiedDate;
             ///////////////////
             // Member Objects
             ///////////////////
         ///////////////////
         // Member Objects
         ///////////////////
         case 'TransactionType':
             // Gets the value for the TransactionType object referenced by intTransactionTypeId (Not Null)
             // @return TransactionType
             try {
                 if (!$this->objTransactionType && !is_null($this->intTransactionTypeId)) {
                     $this->objTransactionType = TransactionType::Load($this->intTransactionTypeId);
                 }
                 return $this->objTransactionType;
             } catch (QCallerException $objExc) {
                 $objExc->IncrementOffset();
                 throw $objExc;
             }
         case 'CreatedByObject':
             // Gets the value for the UserAccount object referenced by intCreatedBy
             // @return UserAccount
             try {
                 if (!$this->objCreatedByObject && !is_null($this->intCreatedBy)) {
                     $this->objCreatedByObject = UserAccount::Load($this->intCreatedBy);
                 }
                 return $this->objCreatedByObject;
             } catch (QCallerException $objExc) {
                 $objExc->IncrementOffset();
                 throw $objExc;
             }
         case 'ModifiedByObject':
             // Gets the value for the UserAccount object referenced by intModifiedBy
             // @return UserAccount
             try {
                 if (!$this->objModifiedByObject && !is_null($this->intModifiedBy)) {
                     $this->objModifiedByObject = UserAccount::Load($this->intModifiedBy);
                 }
                 return $this->objModifiedByObject;
             } catch (QCallerException $objExc) {
                 $objExc->IncrementOffset();
                 throw $objExc;
             }
         case 'Receipt':
             // Gets the value for the Receipt object that uniquely references this Transaction
             // by objReceipt (Unique)
             // @return Receipt
             try {
                 if ($this->objReceipt === false) {
                     // We've attempted early binding -- and the reverse reference object does not exist
                     return null;
                 }
                 if (!$this->objReceipt) {
                     $this->objReceipt = Receipt::LoadByTransactionId($this->intTransactionId);
                 }
                 return $this->objReceipt;
             } catch (QCallerException $objExc) {
                 $objExc->IncrementOffset();
                 throw $objExc;
             }
         case 'Shipment':
             // Gets the value for the Shipment object that uniquely references this Transaction
             // by objShipment (Unique)
             // @return Shipment
             try {
                 if ($this->objShipment === false) {
                     // We've attempted early binding -- and the reverse reference object does not exist
                     return null;
                 }
                 if (!$this->objShipment) {
                     $this->objShipment = Shipment::LoadByTransactionId($this->intTransactionId);
                 }
                 return $this->objShipment;
             } catch (QCallerException $objExc) {
                 $objExc->IncrementOffset();
                 throw $objExc;
             }
             ////////////////////////////
             // Virtual Object References (Many to Many and Reverse References)
             // (If restored via a "Many-to" expansion)
             ////////////////////////////
         ////////////////////////////
         // Virtual Object References (Many to Many and Reverse References)
         // (If restored via a "Many-to" expansion)
         ////////////////////////////
         case '_AssetTransaction':
             // Gets the value for the private _objAssetTransaction (Read-Only)
             // if set due to an expansion on the asset_transaction.transaction_id reverse relationship
             // @return AssetTransaction
             return $this->_objAssetTransaction;
         case '_AssetTransactionArray':
             // Gets the value for the private _objAssetTransactionArray (Read-Only)
             // if set due to an ExpandAsArray on the asset_transaction.transaction_id reverse relationship
             // @return AssetTransaction[]
             return (array) $this->_objAssetTransactionArray;
         case '_InventoryTransaction':
             // Gets the value for the private _objInventoryTransaction (Read-Only)
             // if set due to an expansion on the inventory_transaction.transaction_id reverse relationship
             // @return InventoryTransaction
             return $this->_objInventoryTransaction;
         case '_InventoryTransactionArray':
             // Gets the value for the private _objInventoryTransactionArray (Read-Only)
             // if set due to an ExpandAsArray on the inventory_transaction.transaction_id reverse relationship
             // @return InventoryTransaction[]
             return (array) $this->_objInventoryTransactionArray;
         case '__Restored':
             return $this->__blnRestored;
         default:
             try {
                 return parent::__get($strName);
             } catch (QCallerException $objExc) {
                 $objExc->IncrementOffset();
                 throw $objExc;
             }
     }
 }
Esempio n. 10
0
 /**
  * Override method to perform a property "Get"
  * This will get the value of $strName
  *
  * @param string $strName Name of the property to get
  * @return mixed
  */
 public function __get($strName)
 {
     switch ($strName) {
         ///////////////////
         // Member Variables
         ///////////////////
         case 'CompanyId':
             /**
              * Gets the value for intCompanyId (Read-Only PK)
              * @return integer
              */
             return $this->intCompanyId;
         case 'AddressId':
             /**
              * Gets the value for intAddressId 
              * @return integer
              */
             return $this->intAddressId;
         case 'ShortDescription':
             /**
              * Gets the value for strShortDescription (Unique)
              * @return string
              */
             return $this->strShortDescription;
         case 'Website':
             /**
              * Gets the value for strWebsite 
              * @return string
              */
             return $this->strWebsite;
         case 'Telephone':
             /**
              * Gets the value for strTelephone 
              * @return string
              */
             return $this->strTelephone;
         case 'Fax':
             /**
              * Gets the value for strFax 
              * @return string
              */
             return $this->strFax;
         case 'Email':
             /**
              * Gets the value for strEmail 
              * @return string
              */
             return $this->strEmail;
         case 'LongDescription':
             /**
              * Gets the value for strLongDescription 
              * @return string
              */
             return $this->strLongDescription;
         case 'CreatedBy':
             /**
              * Gets the value for intCreatedBy 
              * @return integer
              */
             return $this->intCreatedBy;
         case 'CreationDate':
             /**
              * Gets the value for dttCreationDate 
              * @return QDateTime
              */
             return $this->dttCreationDate;
         case 'ModifiedBy':
             /**
              * Gets the value for intModifiedBy 
              * @return integer
              */
             return $this->intModifiedBy;
         case 'ModifiedDate':
             /**
              * Gets the value for strModifiedDate (Read-Only Timestamp)
              * @return string
              */
             return $this->strModifiedDate;
             ///////////////////
             // Member Objects
             ///////////////////
         ///////////////////
         // Member Objects
         ///////////////////
         case 'Address':
             /**
              * Gets the value for the Address object referenced by intAddressId 
              * @return Address
              */
             try {
                 if (!$this->objAddress && !is_null($this->intAddressId)) {
                     $this->objAddress = Address::Load($this->intAddressId);
                 }
                 return $this->objAddress;
             } catch (QCallerException $objExc) {
                 $objExc->IncrementOffset();
                 throw $objExc;
             }
         case 'CreatedByObject':
             /**
              * Gets the value for the UserAccount object referenced by intCreatedBy 
              * @return UserAccount
              */
             try {
                 if (!$this->objCreatedByObject && !is_null($this->intCreatedBy)) {
                     $this->objCreatedByObject = UserAccount::Load($this->intCreatedBy);
                 }
                 return $this->objCreatedByObject;
             } catch (QCallerException $objExc) {
                 $objExc->IncrementOffset();
                 throw $objExc;
             }
         case 'ModifiedByObject':
             /**
              * Gets the value for the UserAccount object referenced by intModifiedBy 
              * @return UserAccount
              */
             try {
                 if (!$this->objModifiedByObject && !is_null($this->intModifiedBy)) {
                     $this->objModifiedByObject = UserAccount::Load($this->intModifiedBy);
                 }
                 return $this->objModifiedByObject;
             } catch (QCallerException $objExc) {
                 $objExc->IncrementOffset();
                 throw $objExc;
             }
             ////////////////////////////
             // Virtual Object References (Many to Many and Reverse References)
             // (If restored via a "Many-to" expansion)
             ////////////////////////////
         ////////////////////////////
         // Virtual Object References (Many to Many and Reverse References)
         // (If restored via a "Many-to" expansion)
         ////////////////////////////
         case '_Address':
             /**
              * Gets the value for the private _objAddress (Read-Only)
              * if set due to an expansion on the address.company_id reverse relationship
              * @return Address
              */
             return $this->_objAddress;
         case '_AddressArray':
             /**
              * Gets the value for the private _objAddressArray (Read-Only)
              * if set due to an ExpandAsArray on the address.company_id reverse relationship
              * @return Address[]
              */
             return (array) $this->_objAddressArray;
         case '_Contact':
             /**
              * Gets the value for the private _objContact (Read-Only)
              * if set due to an expansion on the contact.company_id reverse relationship
              * @return Contact
              */
             return $this->_objContact;
         case '_ContactArray':
             /**
              * Gets the value for the private _objContactArray (Read-Only)
              * if set due to an ExpandAsArray on the contact.company_id reverse relationship
              * @return Contact[]
              */
             return (array) $this->_objContactArray;
         case '_ReceiptAsFrom':
             /**
              * Gets the value for the private _objReceiptAsFrom (Read-Only)
              * if set due to an expansion on the receipt.from_company_id reverse relationship
              * @return Receipt
              */
             return $this->_objReceiptAsFrom;
         case '_ReceiptAsFromArray':
             /**
              * Gets the value for the private _objReceiptAsFromArray (Read-Only)
              * if set due to an ExpandAsArray on the receipt.from_company_id reverse relationship
              * @return Receipt[]
              */
             return (array) $this->_objReceiptAsFromArray;
         case '_ShipmentAsFrom':
             /**
              * Gets the value for the private _objShipmentAsFrom (Read-Only)
              * if set due to an expansion on the shipment.from_company_id reverse relationship
              * @return Shipment
              */
             return $this->_objShipmentAsFrom;
         case '_ShipmentAsFromArray':
             /**
              * Gets the value for the private _objShipmentAsFromArray (Read-Only)
              * if set due to an ExpandAsArray on the shipment.from_company_id reverse relationship
              * @return Shipment[]
              */
             return (array) $this->_objShipmentAsFromArray;
         case '_ShipmentAsTo':
             /**
              * Gets the value for the private _objShipmentAsTo (Read-Only)
              * if set due to an expansion on the shipment.to_company_id reverse relationship
              * @return Shipment
              */
             return $this->_objShipmentAsTo;
         case '_ShipmentAsToArray':
             /**
              * Gets the value for the private _objShipmentAsToArray (Read-Only)
              * if set due to an ExpandAsArray on the shipment.to_company_id reverse relationship
              * @return Shipment[]
              */
             return (array) $this->_objShipmentAsToArray;
         default:
             try {
                 return parent::__get($strName);
             } catch (QCallerException $objExc) {
                 $objExc->IncrementOffset();
                 throw $objExc;
             }
     }
 }
Esempio n. 11
0
 /**
  * Override method to perform a property "Get"
  * This will get the value of $strName
  *
  * @param string $strName Name of the property to get
  * @return mixed
  */
 public function __get($strName)
 {
     switch ($strName) {
         ///////////////////
         // Member Variables
         ///////////////////
         case 'AuditId':
             /**
              * Gets the value for intAuditId (Read-Only PK)
              * @return integer
              */
             return $this->intAuditId;
         case 'EntityQtypeId':
             /**
              * Gets the value for intEntityQtypeId (Not Null)
              * @return integer
              */
             return $this->intEntityQtypeId;
         case 'CreatedBy':
             /**
              * Gets the value for intCreatedBy 
              * @return integer
              */
             return $this->intCreatedBy;
         case 'CreationDate':
             /**
              * Gets the value for dttCreationDate 
              * @return QDateTime
              */
             return $this->dttCreationDate;
         case 'ModifiedBy':
             /**
              * Gets the value for intModifiedBy 
              * @return integer
              */
             return $this->intModifiedBy;
         case 'ModifiedDate':
             /**
              * Gets the value for strModifiedDate (Read-Only Timestamp)
              * @return string
              */
             return $this->strModifiedDate;
             ///////////////////
             // Member Objects
             ///////////////////
         ///////////////////
         // Member Objects
         ///////////////////
         case 'CreatedByObject':
             /**
              * Gets the value for the UserAccount object referenced by intCreatedBy 
              * @return UserAccount
              */
             try {
                 if (!$this->objCreatedByObject && !is_null($this->intCreatedBy)) {
                     $this->objCreatedByObject = UserAccount::Load($this->intCreatedBy);
                 }
                 return $this->objCreatedByObject;
             } catch (QCallerException $objExc) {
                 $objExc->IncrementOffset();
                 throw $objExc;
             }
         case 'ModifiedByObject':
             /**
              * Gets the value for the UserAccount object referenced by intModifiedBy 
              * @return UserAccount
              */
             try {
                 if (!$this->objModifiedByObject && !is_null($this->intModifiedBy)) {
                     $this->objModifiedByObject = UserAccount::Load($this->intModifiedBy);
                 }
                 return $this->objModifiedByObject;
             } catch (QCallerException $objExc) {
                 $objExc->IncrementOffset();
                 throw $objExc;
             }
             ////////////////////////////
             // Virtual Object References (Many to Many and Reverse References)
             // (If restored via a "Many-to" expansion)
             ////////////////////////////
         ////////////////////////////
         // Virtual Object References (Many to Many and Reverse References)
         // (If restored via a "Many-to" expansion)
         ////////////////////////////
         case '_AuditScan':
             /**
              * Gets the value for the private _objAuditScan (Read-Only)
              * if set due to an expansion on the audit_scan.audit_id reverse relationship
              * @return AuditScan
              */
             return $this->_objAuditScan;
         case '_AuditScanArray':
             /**
              * Gets the value for the private _objAuditScanArray (Read-Only)
              * if set due to an ExpandAsArray on the audit_scan.audit_id reverse relationship
              * @return AuditScan[]
              */
             return (array) $this->_objAuditScanArray;
         default:
             try {
                 return parent::__get($strName);
             } catch (QCallerException $objExc) {
                 $objExc->IncrementOffset();
                 throw $objExc;
             }
     }
 }
 /**
  * Override method to perform a property "Get"
  * This will get the value of $strName
  *
  * @param string $strName Name of the property to get
  * @return mixed
  */
 public function __get($strName)
 {
     switch ($strName) {
         ///////////////////
         // Member Variables
         ///////////////////
         case 'InventoryLocationId':
             // Gets the value for intInventoryLocationId (Read-Only PK)
             // @return integer
             return $this->intInventoryLocationId;
         case 'InventoryModelId':
             // Gets the value for intInventoryModelId (Not Null)
             // @return integer
             return $this->intInventoryModelId;
         case 'LocationId':
             // Gets the value for intLocationId (Not Null)
             // @return integer
             return $this->intLocationId;
         case 'Quantity':
             // Gets the value for intQuantity (Not Null)
             // @return integer
             return $this->intQuantity;
         case 'CreatedBy':
             // Gets the value for intCreatedBy
             // @return integer
             return $this->intCreatedBy;
         case 'CreationDate':
             // Gets the value for dttCreationDate
             // @return QDateTime
             return $this->dttCreationDate;
         case 'ModifiedBy':
             // Gets the value for intModifiedBy
             // @return integer
             return $this->intModifiedBy;
         case 'ModifiedDate':
             // Gets the value for strModifiedDate (Read-Only Timestamp)
             // @return string
             return $this->strModifiedDate;
             ///////////////////
             // Member Objects
             ///////////////////
         ///////////////////
         // Member Objects
         ///////////////////
         case 'InventoryModel':
             // Gets the value for the InventoryModel object referenced by intInventoryModelId (Not Null)
             // @return InventoryModel
             try {
                 if (!$this->objInventoryModel && !is_null($this->intInventoryModelId)) {
                     $this->objInventoryModel = InventoryModel::Load($this->intInventoryModelId);
                 }
                 return $this->objInventoryModel;
             } catch (QCallerException $objExc) {
                 $objExc->IncrementOffset();
                 throw $objExc;
             }
         case 'Location':
             // Gets the value for the Location object referenced by intLocationId (Not Null)
             // @return Location
             try {
                 if (!$this->objLocation && !is_null($this->intLocationId)) {
                     $this->objLocation = Location::Load($this->intLocationId);
                 }
                 return $this->objLocation;
             } catch (QCallerException $objExc) {
                 $objExc->IncrementOffset();
                 throw $objExc;
             }
         case 'CreatedByObject':
             // Gets the value for the UserAccount object referenced by intCreatedBy
             // @return UserAccount
             try {
                 if (!$this->objCreatedByObject && !is_null($this->intCreatedBy)) {
                     $this->objCreatedByObject = UserAccount::Load($this->intCreatedBy);
                 }
                 return $this->objCreatedByObject;
             } catch (QCallerException $objExc) {
                 $objExc->IncrementOffset();
                 throw $objExc;
             }
         case 'ModifiedByObject':
             // Gets the value for the UserAccount object referenced by intModifiedBy
             // @return UserAccount
             try {
                 if (!$this->objModifiedByObject && !is_null($this->intModifiedBy)) {
                     $this->objModifiedByObject = UserAccount::Load($this->intModifiedBy);
                 }
                 return $this->objModifiedByObject;
             } catch (QCallerException $objExc) {
                 $objExc->IncrementOffset();
                 throw $objExc;
             }
             ////////////////////////////
             // Virtual Object References (Many to Many and Reverse References)
             // (If restored via a "Many-to" expansion)
             ////////////////////////////
         ////////////////////////////
         // Virtual Object References (Many to Many and Reverse References)
         // (If restored via a "Many-to" expansion)
         ////////////////////////////
         case '_InventoryTransaction':
             // Gets the value for the private _objInventoryTransaction (Read-Only)
             // if set due to an expansion on the inventory_transaction.inventory_location_id reverse relationship
             // @return InventoryTransaction
             return $this->_objInventoryTransaction;
         case '_InventoryTransactionArray':
             // Gets the value for the private _objInventoryTransactionArray (Read-Only)
             // if set due to an ExpandAsArray on the inventory_transaction.inventory_location_id reverse relationship
             // @return InventoryTransaction[]
             return (array) $this->_objInventoryTransactionArray;
         case '__Restored':
             return $this->__blnRestored;
         default:
             try {
                 return parent::__get($strName);
             } catch (QCallerException $objExc) {
                 $objExc->IncrementOffset();
                 throw $objExc;
             }
     }
 }
 /**
  * Override method to perform a property "Get"
  * This will get the value of $strName
  *
  * @param string $strName Name of the property to get
  * @return mixed
  */
 public function __get($strName)
 {
     switch ($strName) {
         ///////////////////
         // Member Variables
         ///////////////////
         case 'InventoryTransactionId':
             /**
              * Gets the value for intInventoryTransactionId (Read-Only PK)
              * @return integer
              */
             return $this->intInventoryTransactionId;
         case 'InventoryLocationId':
             /**
              * Gets the value for intInventoryLocationId (Not Null)
              * @return integer
              */
             return $this->intInventoryLocationId;
         case 'TransactionId':
             /**
              * Gets the value for intTransactionId (Not Null)
              * @return integer
              */
             return $this->intTransactionId;
         case 'Quantity':
             /**
              * Gets the value for intQuantity (Not Null)
              * @return integer
              */
             return $this->intQuantity;
         case 'SourceLocationId':
             /**
              * Gets the value for intSourceLocationId 
              * @return integer
              */
             return $this->intSourceLocationId;
         case 'DestinationLocationId':
             /**
              * Gets the value for intDestinationLocationId 
              * @return integer
              */
             return $this->intDestinationLocationId;
         case 'CreatedBy':
             /**
              * Gets the value for intCreatedBy 
              * @return integer
              */
             return $this->intCreatedBy;
         case 'CreationDate':
             /**
              * Gets the value for dttCreationDate 
              * @return QDateTime
              */
             return $this->dttCreationDate;
         case 'ModifiedBy':
             /**
              * Gets the value for intModifiedBy 
              * @return integer
              */
             return $this->intModifiedBy;
         case 'ModifiedDate':
             /**
              * Gets the value for strModifiedDate (Read-Only Timestamp)
              * @return string
              */
             return $this->strModifiedDate;
         case 'LocalWarehouseStock':
             /**
              * Gets the value for Local_warehouse_stock 
              * @return integer
              */
             return $this->intLocalWarehouseStock;
         case 'BadProductsWarehouseStock':
             /**
              * Gets the value for bad_products_warehouse_stock 
              * @return integer
              */
             return $this->intBadProductsWarehouseStock;
         case 'SampleWarehouseStock':
             /**
              * Gets the value for sample_warehouse_stock 
              * @return integer
              */
             return $this->intSampleWarehouseStock;
         case 'RepairWarehouseStock':
             /**
              * Gets the value for repair_warehouse_stock 
              * @return integer
              */
             return $this->intRepairWarehouseStock;
             ///////////////////
             // Member Objects
             ///////////////////
         ///////////////////
         // Member Objects
         ///////////////////
         case 'InventoryLocation':
             /**
              * Gets the value for the InventoryLocation object referenced by intInventoryLocationId (Not Null)
              * @return InventoryLocation
              */
             try {
                 if (!$this->objInventoryLocation && !is_null($this->intInventoryLocationId)) {
                     $this->objInventoryLocation = InventoryLocation::Load($this->intInventoryLocationId);
                 }
                 return $this->objInventoryLocation;
             } catch (QCallerException $objExc) {
                 $objExc->IncrementOffset();
                 throw $objExc;
             }
         case 'Transaction':
             /**
              * Gets the value for the Transaction object referenced by intTransactionId (Not Null)
              * @return Transaction
              */
             try {
                 if (!$this->objTransaction && !is_null($this->intTransactionId)) {
                     $this->objTransaction = Transaction::Load($this->intTransactionId);
                 }
                 return $this->objTransaction;
             } catch (QCallerException $objExc) {
                 $objExc->IncrementOffset();
                 throw $objExc;
             }
         case 'SourceLocation':
             /**
              * Gets the value for the Location object referenced by intSourceLocationId 
              * @return Location
              */
             try {
                 if (!$this->objSourceLocation && !is_null($this->intSourceLocationId)) {
                     $this->objSourceLocation = Location::Load($this->intSourceLocationId);
                 }
                 return $this->objSourceLocation;
             } catch (QCallerException $objExc) {
                 $objExc->IncrementOffset();
                 throw $objExc;
             }
         case 'DestinationLocation':
             /**
              * Gets the value for the Location object referenced by intDestinationLocationId 
              * @return Location
              */
             try {
                 if (!$this->objDestinationLocation && !is_null($this->intDestinationLocationId)) {
                     $this->objDestinationLocation = Location::Load($this->intDestinationLocationId);
                 }
                 return $this->objDestinationLocation;
             } catch (QCallerException $objExc) {
                 $objExc->IncrementOffset();
                 throw $objExc;
             }
         case 'CreatedByObject':
             /**
              * Gets the value for the UserAccount object referenced by intCreatedBy 
              * @return UserAccount
              */
             try {
                 if (!$this->objCreatedByObject && !is_null($this->intCreatedBy)) {
                     $this->objCreatedByObject = UserAccount::Load($this->intCreatedBy);
                 }
                 return $this->objCreatedByObject;
             } catch (QCallerException $objExc) {
                 $objExc->IncrementOffset();
                 throw $objExc;
             }
         case 'ModifiedByObject':
             /**
              * Gets the value for the UserAccount object referenced by intModifiedBy 
              * @return UserAccount
              */
             try {
                 if (!$this->objModifiedByObject && !is_null($this->intModifiedBy)) {
                     $this->objModifiedByObject = UserAccount::Load($this->intModifiedBy);
                 }
                 return $this->objModifiedByObject;
             } catch (QCallerException $objExc) {
                 $objExc->IncrementOffset();
                 throw $objExc;
             }
             ////////////////////////////
             // Virtual Object References (Many to Many and Reverse References)
             // (If restored via a "Many-to" expansion)
             ////////////////////////////
         ////////////////////////////
         // Virtual Object References (Many to Many and Reverse References)
         // (If restored via a "Many-to" expansion)
         ////////////////////////////
         default:
             try {
                 return parent::__get($strName);
             } catch (QCallerException $objExc) {
                 $objExc->IncrementOffset();
                 throw $objExc;
             }
     }
 }
 /**
  * Override method to perform a property "Get"
  * This will get the value of $strName
  *
  * @param string $strName Name of the property to get
  * @return mixed
  */
 public function __get($strName)
 {
     switch ($strName) {
         ///////////////////
         // Member Variables
         ///////////////////
         case 'AssetTransactionCheckoutId':
             // Gets the value for intAssetTransactionCheckoutId (Read-Only PK)
             // @return integer
             return $this->intAssetTransactionCheckoutId;
         case 'AssetTransactionId':
             // Gets the value for intAssetTransactionId (Unique)
             // @return integer
             return $this->intAssetTransactionId;
         case 'ToContactId':
             // Gets the value for intToContactId
             // @return integer
             return $this->intToContactId;
         case 'ToUserId':
             // Gets the value for intToUserId
             // @return integer
             return $this->intToUserId;
         case 'DueDate':
             // Gets the value for dttDueDate
             // @return QDateTime
             return $this->dttDueDate;
         case 'CreatedBy':
             // Gets the value for intCreatedBy
             // @return integer
             return $this->intCreatedBy;
         case 'CreationDate':
             // Gets the value for dttCreationDate
             // @return QDateTime
             return $this->dttCreationDate;
         case 'ModifiedBy':
             // Gets the value for intModifiedBy
             // @return integer
             return $this->intModifiedBy;
         case 'ModifiedDate':
             // Gets the value for strModifiedDate (Read-Only Timestamp)
             // @return string
             return $this->strModifiedDate;
             ///////////////////
             // Member Objects
             ///////////////////
         ///////////////////
         // Member Objects
         ///////////////////
         case 'AssetTransaction':
             // Gets the value for the AssetTransaction object referenced by intAssetTransactionId (Unique)
             // @return AssetTransaction
             try {
                 if (!$this->objAssetTransaction && !is_null($this->intAssetTransactionId)) {
                     $this->objAssetTransaction = AssetTransaction::Load($this->intAssetTransactionId);
                 }
                 return $this->objAssetTransaction;
             } catch (QCallerException $objExc) {
                 $objExc->IncrementOffset();
                 throw $objExc;
             }
         case 'ToContact':
             // Gets the value for the Contact object referenced by intToContactId
             // @return Contact
             try {
                 if (!$this->objToContact && !is_null($this->intToContactId)) {
                     $this->objToContact = Contact::Load($this->intToContactId);
                 }
                 return $this->objToContact;
             } catch (QCallerException $objExc) {
                 $objExc->IncrementOffset();
                 throw $objExc;
             }
         case 'ToUser':
             // Gets the value for the UserAccount object referenced by intToUserId
             // @return UserAccount
             try {
                 if (!$this->objToUser && !is_null($this->intToUserId)) {
                     $this->objToUser = UserAccount::Load($this->intToUserId);
                 }
                 return $this->objToUser;
             } catch (QCallerException $objExc) {
                 $objExc->IncrementOffset();
                 throw $objExc;
             }
         case 'CreatedByObject':
             // Gets the value for the UserAccount object referenced by intCreatedBy
             // @return UserAccount
             try {
                 if (!$this->objCreatedByObject && !is_null($this->intCreatedBy)) {
                     $this->objCreatedByObject = UserAccount::Load($this->intCreatedBy);
                 }
                 return $this->objCreatedByObject;
             } catch (QCallerException $objExc) {
                 $objExc->IncrementOffset();
                 throw $objExc;
             }
         case 'ModifiedByObject':
             // Gets the value for the UserAccount object referenced by intModifiedBy
             // @return UserAccount
             try {
                 if (!$this->objModifiedByObject && !is_null($this->intModifiedBy)) {
                     $this->objModifiedByObject = UserAccount::Load($this->intModifiedBy);
                 }
                 return $this->objModifiedByObject;
             } catch (QCallerException $objExc) {
                 $objExc->IncrementOffset();
                 throw $objExc;
             }
             ////////////////////////////
             // Virtual Object References (Many to Many and Reverse References)
             // (If restored via a "Many-to" expansion)
             ////////////////////////////
         ////////////////////////////
         // Virtual Object References (Many to Many and Reverse References)
         // (If restored via a "Many-to" expansion)
         ////////////////////////////
         case '__Restored':
             return $this->__blnRestored;
         default:
             try {
                 return parent::__get($strName);
             } catch (QCallerException $objExc) {
                 $objExc->IncrementOffset();
                 throw $objExc;
             }
     }
 }
 /**
  * Override method to perform a property "Get"
  * This will get the value of $strName
  *
  * @param string $strName Name of the property to get
  * @return mixed
  */
 public function __get($strName)
 {
     switch ($strName) {
         ///////////////////
         // Member Variables
         ///////////////////
         case 'CustomFieldValueId':
             // Gets the value for intCustomFieldValueId (Read-Only PK)
             // @return integer
             return $this->intCustomFieldValueId;
         case 'CustomFieldId':
             // Gets the value for intCustomFieldId (Not Null)
             // @return integer
             return $this->intCustomFieldId;
         case 'ShortDescription':
             // Gets the value for strShortDescription
             // @return string
             return $this->strShortDescription;
         case 'CreatedBy':
             // Gets the value for intCreatedBy
             // @return integer
             return $this->intCreatedBy;
         case 'CreationDate':
             // Gets the value for dttCreationDate
             // @return QDateTime
             return $this->dttCreationDate;
         case 'ModifiedBy':
             // Gets the value for intModifiedBy
             // @return integer
             return $this->intModifiedBy;
         case 'ModifiedDate':
             // Gets the value for strModifiedDate (Read-Only Timestamp)
             // @return string
             return $this->strModifiedDate;
             ///////////////////
             // Member Objects
             ///////////////////
         ///////////////////
         // Member Objects
         ///////////////////
         case 'CustomField':
             // Gets the value for the CustomField object referenced by intCustomFieldId (Not Null)
             // @return CustomField
             try {
                 if (!$this->objCustomField && !is_null($this->intCustomFieldId)) {
                     $this->objCustomField = CustomField::Load($this->intCustomFieldId);
                 }
                 return $this->objCustomField;
             } catch (QCallerException $objExc) {
                 $objExc->IncrementOffset();
                 throw $objExc;
             }
         case 'CreatedByObject':
             // Gets the value for the UserAccount object referenced by intCreatedBy
             // @return UserAccount
             try {
                 if (!$this->objCreatedByObject && !is_null($this->intCreatedBy)) {
                     $this->objCreatedByObject = UserAccount::Load($this->intCreatedBy);
                 }
                 return $this->objCreatedByObject;
             } catch (QCallerException $objExc) {
                 $objExc->IncrementOffset();
                 throw $objExc;
             }
         case 'ModifiedByObject':
             // Gets the value for the UserAccount object referenced by intModifiedBy
             // @return UserAccount
             try {
                 if (!$this->objModifiedByObject && !is_null($this->intModifiedBy)) {
                     $this->objModifiedByObject = UserAccount::Load($this->intModifiedBy);
                 }
                 return $this->objModifiedByObject;
             } catch (QCallerException $objExc) {
                 $objExc->IncrementOffset();
                 throw $objExc;
             }
             ////////////////////////////
             // Virtual Object References (Many to Many and Reverse References)
             // (If restored via a "Many-to" expansion)
             ////////////////////////////
         ////////////////////////////
         // Virtual Object References (Many to Many and Reverse References)
         // (If restored via a "Many-to" expansion)
         ////////////////////////////
         case '_CustomFieldAsDefault':
             // Gets the value for the private _objCustomFieldAsDefault (Read-Only)
             // if set due to an expansion on the custom_field.default_custom_field_value_id reverse relationship
             // @return CustomField
             return $this->_objCustomFieldAsDefault;
         case '_CustomFieldAsDefaultArray':
             // Gets the value for the private _objCustomFieldAsDefaultArray (Read-Only)
             // if set due to an ExpandAsArray on the custom_field.default_custom_field_value_id reverse relationship
             // @return CustomField[]
             return (array) $this->_objCustomFieldAsDefaultArray;
         case '__Restored':
             return $this->__blnRestored;
         default:
             try {
                 return parent::__get($strName);
             } catch (QCallerException $objExc) {
                 $objExc->IncrementOffset();
                 throw $objExc;
             }
     }
 }
Esempio n. 16
0
 /**
  * Override method to perform a property "Get"
  * This will get the value of $strName
  *
  * @param string $strName Name of the property to get
  * @return mixed
  */
 public function __get($strName)
 {
     switch ($strName) {
         ///////////////////
         // Member Variables
         ///////////////////
         case 'CompanyId':
             // Gets the value for intCompanyId (Read-Only PK)
             // @return integer
             return $this->intCompanyId;
         case 'AddressId':
             // Gets the value for intAddressId
             // @return integer
             return $this->intAddressId;
         case 'ShortDescription':
             // Gets the value for strShortDescription (Unique)
             // @return string
             return $this->strShortDescription;
         case 'Website':
             // Gets the value for strWebsite
             // @return string
             return $this->strWebsite;
         case 'Telephone':
             // Gets the value for strTelephone
             // @return string
             return $this->strTelephone;
         case 'Fax':
             // Gets the value for strFax
             // @return string
             return $this->strFax;
         case 'Email':
             // Gets the value for strEmail
             // @return string
             return $this->strEmail;
         case 'LongDescription':
             // Gets the value for strLongDescription
             // @return string
             return $this->strLongDescription;
         case 'CreatedBy':
             // Gets the value for intCreatedBy
             // @return integer
             return $this->intCreatedBy;
         case 'CreationDate':
             // Gets the value for dttCreationDate
             // @return QDateTime
             return $this->dttCreationDate;
         case 'ModifiedBy':
             // Gets the value for intModifiedBy
             // @return integer
             return $this->intModifiedBy;
         case 'ModifiedDate':
             // Gets the value for strModifiedDate (Read-Only Timestamp)
             // @return string
             return $this->strModifiedDate;
             ///////////////////
             // Member Objects
             ///////////////////
         ///////////////////
         // Member Objects
         ///////////////////
         case 'Address':
             // Gets the value for the Address object referenced by intAddressId
             // @return Address
             try {
                 if (!$this->objAddress && !is_null($this->intAddressId)) {
                     $this->objAddress = Address::Load($this->intAddressId);
                 }
                 return $this->objAddress;
             } catch (QCallerException $objExc) {
                 $objExc->IncrementOffset();
                 throw $objExc;
             }
         case 'CreatedByObject':
             // Gets the value for the UserAccount object referenced by intCreatedBy
             // @return UserAccount
             try {
                 if (!$this->objCreatedByObject && !is_null($this->intCreatedBy)) {
                     $this->objCreatedByObject = UserAccount::Load($this->intCreatedBy);
                 }
                 return $this->objCreatedByObject;
             } catch (QCallerException $objExc) {
                 $objExc->IncrementOffset();
                 throw $objExc;
             }
         case 'ModifiedByObject':
             // Gets the value for the UserAccount object referenced by intModifiedBy
             // @return UserAccount
             try {
                 if (!$this->objModifiedByObject && !is_null($this->intModifiedBy)) {
                     $this->objModifiedByObject = UserAccount::Load($this->intModifiedBy);
                 }
                 return $this->objModifiedByObject;
             } catch (QCallerException $objExc) {
                 $objExc->IncrementOffset();
                 throw $objExc;
             }
         case 'CompanyCustomFieldHelper':
             // Gets the value for the CompanyCustomFieldHelper object that uniquely references this Company
             // by objCompanyCustomFieldHelper (Unique)
             // @return CompanyCustomFieldHelper
             try {
                 if ($this->objCompanyCustomFieldHelper === false) {
                     // We've attempted early binding -- and the reverse reference object does not exist
                     return null;
                 }
                 if (!$this->objCompanyCustomFieldHelper) {
                     $this->objCompanyCustomFieldHelper = CompanyCustomFieldHelper::LoadByCompanyId($this->intCompanyId);
                 }
                 return $this->objCompanyCustomFieldHelper;
             } catch (QCallerException $objExc) {
                 $objExc->IncrementOffset();
                 throw $objExc;
             }
             ////////////////////////////
             // Virtual Object References (Many to Many and Reverse References)
             // (If restored via a "Many-to" expansion)
             ////////////////////////////
         ////////////////////////////
         // Virtual Object References (Many to Many and Reverse References)
         // (If restored via a "Many-to" expansion)
         ////////////////////////////
         case '_Address':
             // Gets the value for the private _objAddress (Read-Only)
             // if set due to an expansion on the address.company_id reverse relationship
             // @return Address
             return $this->_objAddress;
         case '_AddressArray':
             // Gets the value for the private _objAddressArray (Read-Only)
             // if set due to an ExpandAsArray on the address.company_id reverse relationship
             // @return Address[]
             return (array) $this->_objAddressArray;
         case '_Contact':
             // Gets the value for the private _objContact (Read-Only)
             // if set due to an expansion on the contact.company_id reverse relationship
             // @return Contact
             return $this->_objContact;
         case '_ContactArray':
             // Gets the value for the private _objContactArray (Read-Only)
             // if set due to an ExpandAsArray on the contact.company_id reverse relationship
             // @return Contact[]
             return (array) $this->_objContactArray;
         case '_ReceiptAsFrom':
             // Gets the value for the private _objReceiptAsFrom (Read-Only)
             // if set due to an expansion on the receipt.from_company_id reverse relationship
             // @return Receipt
             return $this->_objReceiptAsFrom;
         case '_ReceiptAsFromArray':
             // Gets the value for the private _objReceiptAsFromArray (Read-Only)
             // if set due to an ExpandAsArray on the receipt.from_company_id reverse relationship
             // @return Receipt[]
             return (array) $this->_objReceiptAsFromArray;
         case '_ShipmentAsFrom':
             // Gets the value for the private _objShipmentAsFrom (Read-Only)
             // if set due to an expansion on the shipment.from_company_id reverse relationship
             // @return Shipment
             return $this->_objShipmentAsFrom;
         case '_ShipmentAsFromArray':
             // Gets the value for the private _objShipmentAsFromArray (Read-Only)
             // if set due to an ExpandAsArray on the shipment.from_company_id reverse relationship
             // @return Shipment[]
             return (array) $this->_objShipmentAsFromArray;
         case '_ShipmentAsTo':
             // Gets the value for the private _objShipmentAsTo (Read-Only)
             // if set due to an expansion on the shipment.to_company_id reverse relationship
             // @return Shipment
             return $this->_objShipmentAsTo;
         case '_ShipmentAsToArray':
             // Gets the value for the private _objShipmentAsToArray (Read-Only)
             // if set due to an ExpandAsArray on the shipment.to_company_id reverse relationship
             // @return Shipment[]
             return (array) $this->_objShipmentAsToArray;
         case '__Restored':
             return $this->__blnRestored;
         default:
             try {
                 return parent::__get($strName);
             } catch (QCallerException $objExc) {
                 $objExc->IncrementOffset();
                 throw $objExc;
             }
     }
 }
Esempio n. 17
0
 /**
  * Override method to perform a property "Get"
  * This will get the value of $strName
  *
  * @param string $strName Name of the property to get
  * @return mixed
  */
 public function __get($strName)
 {
     switch ($strName) {
         ///////////////////
         // Member Variables
         ///////////////////
         case 'RoleModuleId':
             /**
              * Gets the value for intRoleModuleId (Read-Only PK)
              * @return integer
              */
             return $this->intRoleModuleId;
         case 'RoleId':
             /**
              * Gets the value for intRoleId (Not Null)
              * @return integer
              */
             return $this->intRoleId;
         case 'ModuleId':
             /**
              * Gets the value for intModuleId (Not Null)
              * @return integer
              */
             return $this->intModuleId;
         case 'AccessFlag':
             /**
              * Gets the value for blnAccessFlag (Not Null)
              * @return boolean
              */
             return $this->blnAccessFlag;
         case 'CreatedBy':
             /**
              * Gets the value for intCreatedBy 
              * @return integer
              */
             return $this->intCreatedBy;
         case 'CreationDate':
             /**
              * Gets the value for dttCreationDate 
              * @return QDateTime
              */
             return $this->dttCreationDate;
         case 'ModifiedBy':
             /**
              * Gets the value for intModifiedBy 
              * @return integer
              */
             return $this->intModifiedBy;
         case 'ModifiedDate':
             /**
              * Gets the value for strModifiedDate (Read-Only Timestamp)
              * @return string
              */
             return $this->strModifiedDate;
             ///////////////////
             // Member Objects
             ///////////////////
         ///////////////////
         // Member Objects
         ///////////////////
         case 'Role':
             /**
              * Gets the value for the Role object referenced by intRoleId (Not Null)
              * @return Role
              */
             try {
                 if (!$this->objRole && !is_null($this->intRoleId)) {
                     $this->objRole = Role::Load($this->intRoleId);
                 }
                 return $this->objRole;
             } catch (QCallerException $objExc) {
                 $objExc->IncrementOffset();
                 throw $objExc;
             }
         case 'Module':
             /**
              * Gets the value for the Module object referenced by intModuleId (Not Null)
              * @return Module
              */
             try {
                 if (!$this->objModule && !is_null($this->intModuleId)) {
                     $this->objModule = Module::Load($this->intModuleId);
                 }
                 return $this->objModule;
             } catch (QCallerException $objExc) {
                 $objExc->IncrementOffset();
                 throw $objExc;
             }
         case 'CreatedByObject':
             /**
              * Gets the value for the UserAccount object referenced by intCreatedBy 
              * @return UserAccount
              */
             try {
                 if (!$this->objCreatedByObject && !is_null($this->intCreatedBy)) {
                     $this->objCreatedByObject = UserAccount::Load($this->intCreatedBy);
                 }
                 return $this->objCreatedByObject;
             } catch (QCallerException $objExc) {
                 $objExc->IncrementOffset();
                 throw $objExc;
             }
         case 'ModifiedByObject':
             /**
              * Gets the value for the UserAccount object referenced by intModifiedBy 
              * @return UserAccount
              */
             try {
                 if (!$this->objModifiedByObject && !is_null($this->intModifiedBy)) {
                     $this->objModifiedByObject = UserAccount::Load($this->intModifiedBy);
                 }
                 return $this->objModifiedByObject;
             } catch (QCallerException $objExc) {
                 $objExc->IncrementOffset();
                 throw $objExc;
             }
             ////////////////////////////
             // Virtual Object References (Many to Many and Reverse References)
             // (If restored via a "Many-to" expansion)
             ////////////////////////////
         ////////////////////////////
         // Virtual Object References (Many to Many and Reverse References)
         // (If restored via a "Many-to" expansion)
         ////////////////////////////
         case '_RoleModuleAuthorization':
             /**
              * Gets the value for the private _objRoleModuleAuthorization (Read-Only)
              * if set due to an expansion on the role_module_authorization.role_module_id reverse relationship
              * @return RoleModuleAuthorization
              */
             return $this->_objRoleModuleAuthorization;
         case '_RoleModuleAuthorizationArray':
             /**
              * Gets the value for the private _objRoleModuleAuthorizationArray (Read-Only)
              * if set due to an ExpandAsArray on the role_module_authorization.role_module_id reverse relationship
              * @return RoleModuleAuthorization[]
              */
             return (array) $this->_objRoleModuleAuthorizationArray;
         default:
             try {
                 return parent::__get($strName);
             } catch (QCallerException $objExc) {
                 $objExc->IncrementOffset();
                 throw $objExc;
             }
     }
 }
Esempio n. 18
0
 /**
  * Override method to perform a property "Get"
  * This will get the value of $strName
  *
  * @param string $strName Name of the property to get
  * @return mixed
  */
 public function __get($strName)
 {
     switch ($strName) {
         ///////////////////
         // Member Variables
         ///////////////////
         case 'AddressId':
             /**
              * Gets the value for intAddressId (Read-Only PK)
              * @return integer
              */
             return $this->intAddressId;
         case 'CompanyId':
             /**
              * Gets the value for intCompanyId (Not Null)
              * @return integer
              */
             return $this->intCompanyId;
         case 'ShortDescription':
             /**
              * Gets the value for strShortDescription (Not Null)
              * @return string
              */
             return $this->strShortDescription;
         case 'CountryId':
             /**
              * Gets the value for intCountryId (Not Null)
              * @return integer
              */
             return $this->intCountryId;
         case 'Address1':
             /**
              * Gets the value for strAddress1 (Not Null)
              * @return string
              */
             return $this->strAddress1;
         case 'Address2':
             /**
              * Gets the value for strAddress2 
              * @return string
              */
             return $this->strAddress2;
         case 'City':
             /**
              * Gets the value for strCity (Not Null)
              * @return string
              */
             return $this->strCity;
         case 'StateProvinceId':
             /**
              * Gets the value for intStateProvinceId 
              * @return integer
              */
             return $this->intStateProvinceId;
         case 'PostalCode':
             /**
              * Gets the value for strPostalCode (Not Null)
              * @return string
              */
             return $this->strPostalCode;
         case 'CreatedBy':
             /**
              * Gets the value for intCreatedBy 
              * @return integer
              */
             return $this->intCreatedBy;
         case 'CreationDate':
             /**
              * Gets the value for dttCreationDate 
              * @return QDateTime
              */
             return $this->dttCreationDate;
         case 'ModifiedBy':
             /**
              * Gets the value for intModifiedBy 
              * @return integer
              */
             return $this->intModifiedBy;
         case 'ModifiedDate':
             /**
              * Gets the value for strModifiedDate (Read-Only Timestamp)
              * @return string
              */
             return $this->strModifiedDate;
             ///////////////////
             // Member Objects
             ///////////////////
         ///////////////////
         // Member Objects
         ///////////////////
         case 'Company':
             /**
              * Gets the value for the Company object referenced by intCompanyId (Not Null)
              * @return Company
              */
             try {
                 if (!$this->objCompany && !is_null($this->intCompanyId)) {
                     $this->objCompany = Company::Load($this->intCompanyId);
                 }
                 return $this->objCompany;
             } catch (QCallerException $objExc) {
                 $objExc->IncrementOffset();
                 throw $objExc;
             }
         case 'Country':
             /**
              * Gets the value for the Country object referenced by intCountryId (Not Null)
              * @return Country
              */
             try {
                 if (!$this->objCountry && !is_null($this->intCountryId)) {
                     $this->objCountry = Country::Load($this->intCountryId);
                 }
                 return $this->objCountry;
             } catch (QCallerException $objExc) {
                 $objExc->IncrementOffset();
                 throw $objExc;
             }
         case 'StateProvince':
             /**
              * Gets the value for the StateProvince object referenced by intStateProvinceId 
              * @return StateProvince
              */
             try {
                 if (!$this->objStateProvince && !is_null($this->intStateProvinceId)) {
                     $this->objStateProvince = StateProvince::Load($this->intStateProvinceId);
                 }
                 return $this->objStateProvince;
             } catch (QCallerException $objExc) {
                 $objExc->IncrementOffset();
                 throw $objExc;
             }
         case 'CreatedByObject':
             /**
              * Gets the value for the UserAccount object referenced by intCreatedBy 
              * @return UserAccount
              */
             try {
                 if (!$this->objCreatedByObject && !is_null($this->intCreatedBy)) {
                     $this->objCreatedByObject = UserAccount::Load($this->intCreatedBy);
                 }
                 return $this->objCreatedByObject;
             } catch (QCallerException $objExc) {
                 $objExc->IncrementOffset();
                 throw $objExc;
             }
         case 'ModifiedByObject':
             /**
              * Gets the value for the UserAccount object referenced by intModifiedBy 
              * @return UserAccount
              */
             try {
                 if (!$this->objModifiedByObject && !is_null($this->intModifiedBy)) {
                     $this->objModifiedByObject = UserAccount::Load($this->intModifiedBy);
                 }
                 return $this->objModifiedByObject;
             } catch (QCallerException $objExc) {
                 $objExc->IncrementOffset();
                 throw $objExc;
             }
             ////////////////////////////
             // Virtual Object References (Many to Many and Reverse References)
             // (If restored via a "Many-to" expansion)
             ////////////////////////////
         ////////////////////////////
         // Virtual Object References (Many to Many and Reverse References)
         // (If restored via a "Many-to" expansion)
         ////////////////////////////
         case '_Company':
             /**
              * Gets the value for the private _objCompany (Read-Only)
              * if set due to an expansion on the company.address_id reverse relationship
              * @return Company
              */
             return $this->_objCompany;
         case '_CompanyArray':
             /**
              * Gets the value for the private _objCompanyArray (Read-Only)
              * if set due to an ExpandAsArray on the company.address_id reverse relationship
              * @return Company[]
              */
             return (array) $this->_objCompanyArray;
         case '_Contact':
             /**
              * Gets the value for the private _objContact (Read-Only)
              * if set due to an expansion on the contact.address_id reverse relationship
              * @return Contact
              */
             return $this->_objContact;
         case '_ContactArray':
             /**
              * Gets the value for the private _objContactArray (Read-Only)
              * if set due to an ExpandAsArray on the contact.address_id reverse relationship
              * @return Contact[]
              */
             return (array) $this->_objContactArray;
         case '_ReceiptAsTo':
             /**
              * Gets the value for the private _objReceiptAsTo (Read-Only)
              * if set due to an expansion on the receipt.to_address_id reverse relationship
              * @return Receipt
              */
             return $this->_objReceiptAsTo;
         case '_ReceiptAsToArray':
             /**
              * Gets the value for the private _objReceiptAsToArray (Read-Only)
              * if set due to an ExpandAsArray on the receipt.to_address_id reverse relationship
              * @return Receipt[]
              */
             return (array) $this->_objReceiptAsToArray;
         case '_ShipmentAsFrom':
             /**
              * Gets the value for the private _objShipmentAsFrom (Read-Only)
              * if set due to an expansion on the shipment.from_address_id reverse relationship
              * @return Shipment
              */
             return $this->_objShipmentAsFrom;
         case '_ShipmentAsFromArray':
             /**
              * Gets the value for the private _objShipmentAsFromArray (Read-Only)
              * if set due to an ExpandAsArray on the shipment.from_address_id reverse relationship
              * @return Shipment[]
              */
             return (array) $this->_objShipmentAsFromArray;
         case '_ShipmentAsTo':
             /**
              * Gets the value for the private _objShipmentAsTo (Read-Only)
              * if set due to an expansion on the shipment.to_address_id reverse relationship
              * @return Shipment
              */
             return $this->_objShipmentAsTo;
         case '_ShipmentAsToArray':
             /**
              * Gets the value for the private _objShipmentAsToArray (Read-Only)
              * if set due to an ExpandAsArray on the shipment.to_address_id reverse relationship
              * @return Shipment[]
              */
             return (array) $this->_objShipmentAsToArray;
         default:
             try {
                 return parent::__get($strName);
             } catch (QCallerException $objExc) {
                 $objExc->IncrementOffset();
                 throw $objExc;
             }
     }
 }
Esempio n. 19
0
 /**
  * Override method to perform a property "Get"
  * This will get the value of $strName
  *
  * @param string $strName Name of the property to get
  * @return mixed
  */
 public function __get($strName)
 {
     switch ($strName) {
         ///////////////////
         // Member Variables
         ///////////////////
         case 'ReceiptId':
             /**
              * Gets the value for intReceiptId (Read-Only PK)
              * @return integer
              */
             return $this->intReceiptId;
         case 'TransactionId':
             /**
              * Gets the value for intTransactionId (Unique)
              * @return integer
              */
             return $this->intTransactionId;
         case 'FromCompanyId':
             /**
              * Gets the value for intFromCompanyId (Not Null)
              * @return integer
              */
             return $this->intFromCompanyId;
         case 'FromContactId':
             /**
              * Gets the value for intFromContactId (Not Null)
              * @return integer
              */
             return $this->intFromContactId;
         case 'ToContactId':
             /**
              * Gets the value for intToContactId (Not Null)
              * @return integer
              */
             return $this->intToContactId;
         case 'ToAddressId':
             /**
              * Gets the value for intToAddressId (Not Null)
              * @return integer
              */
             return $this->intToAddressId;
         case 'ReceiptNumber':
             /**
              * Gets the value for strReceiptNumber (Unique)
              * @return string
              */
             return $this->strReceiptNumber;
         case 'DueDate':
             /**
              * Gets the value for dttDueDate 
              * @return QDateTime
              */
             return $this->dttDueDate;
         case 'ReceiptDate':
             /**
              * Gets the value for dttReceiptDate 
              * @return QDateTime
              */
             return $this->dttReceiptDate;
         case 'ReceivedFlag':
             /**
              * Gets the value for blnReceivedFlag 
              * @return boolean
              */
             return $this->blnReceivedFlag;
         case 'CreatedBy':
             /**
              * Gets the value for intCreatedBy 
              * @return integer
              */
             return $this->intCreatedBy;
         case 'CreationDate':
             /**
              * Gets the value for dttCreationDate 
              * @return QDateTime
              */
             return $this->dttCreationDate;
         case 'ModifiedBy':
             /**
              * Gets the value for intModifiedBy 
              * @return integer
              */
             return $this->intModifiedBy;
         case 'ModifiedDate':
             /**
              * Gets the value for strModifiedDate (Read-Only Timestamp)
              * @return string
              */
             return $this->strModifiedDate;
             ///////////////////
             // Member Objects
             ///////////////////
         ///////////////////
         // Member Objects
         ///////////////////
         case 'Transaction':
             /**
              * Gets the value for the Transaction object referenced by intTransactionId (Unique)
              * @return Transaction
              */
             try {
                 if (!$this->objTransaction && !is_null($this->intTransactionId)) {
                     $this->objTransaction = Transaction::Load($this->intTransactionId);
                 }
                 return $this->objTransaction;
             } catch (QCallerException $objExc) {
                 $objExc->IncrementOffset();
                 throw $objExc;
             }
         case 'FromCompany':
             /**
              * Gets the value for the Company object referenced by intFromCompanyId (Not Null)
              * @return Company
              */
             try {
                 if (!$this->objFromCompany && !is_null($this->intFromCompanyId)) {
                     $this->objFromCompany = Company::Load($this->intFromCompanyId);
                 }
                 return $this->objFromCompany;
             } catch (QCallerException $objExc) {
                 $objExc->IncrementOffset();
                 throw $objExc;
             }
         case 'FromContact':
             /**
              * Gets the value for the Contact object referenced by intFromContactId (Not Null)
              * @return Contact
              */
             try {
                 if (!$this->objFromContact && !is_null($this->intFromContactId)) {
                     $this->objFromContact = Contact::Load($this->intFromContactId);
                 }
                 return $this->objFromContact;
             } catch (QCallerException $objExc) {
                 $objExc->IncrementOffset();
                 throw $objExc;
             }
         case 'ToContact':
             /**
              * Gets the value for the Contact object referenced by intToContactId (Not Null)
              * @return Contact
              */
             try {
                 if (!$this->objToContact && !is_null($this->intToContactId)) {
                     $this->objToContact = Contact::Load($this->intToContactId);
                 }
                 return $this->objToContact;
             } catch (QCallerException $objExc) {
                 $objExc->IncrementOffset();
                 throw $objExc;
             }
         case 'ToAddress':
             /**
              * Gets the value for the Address object referenced by intToAddressId (Not Null)
              * @return Address
              */
             try {
                 if (!$this->objToAddress && !is_null($this->intToAddressId)) {
                     $this->objToAddress = Address::Load($this->intToAddressId);
                 }
                 return $this->objToAddress;
             } catch (QCallerException $objExc) {
                 $objExc->IncrementOffset();
                 throw $objExc;
             }
         case 'CreatedByObject':
             /**
              * Gets the value for the UserAccount object referenced by intCreatedBy 
              * @return UserAccount
              */
             try {
                 if (!$this->objCreatedByObject && !is_null($this->intCreatedBy)) {
                     $this->objCreatedByObject = UserAccount::Load($this->intCreatedBy);
                 }
                 return $this->objCreatedByObject;
             } catch (QCallerException $objExc) {
                 $objExc->IncrementOffset();
                 throw $objExc;
             }
         case 'ModifiedByObject':
             /**
              * Gets the value for the UserAccount object referenced by intModifiedBy 
              * @return UserAccount
              */
             try {
                 if (!$this->objModifiedByObject && !is_null($this->intModifiedBy)) {
                     $this->objModifiedByObject = UserAccount::Load($this->intModifiedBy);
                 }
                 return $this->objModifiedByObject;
             } catch (QCallerException $objExc) {
                 $objExc->IncrementOffset();
                 throw $objExc;
             }
             ////////////////////////////
             // Virtual Object References (Many to Many and Reverse References)
             // (If restored via a "Many-to" expansion)
             ////////////////////////////
         ////////////////////////////
         // Virtual Object References (Many to Many and Reverse References)
         // (If restored via a "Many-to" expansion)
         ////////////////////////////
         default:
             try {
                 return parent::__get($strName);
             } catch (QCallerException $objExc) {
                 $objExc->IncrementOffset();
                 throw $objExc;
             }
     }
 }
 /**
  * Override method to perform a property "Get"
  * This will get the value of $strName
  *
  * @param string $strName Name of the property to get
  * @return mixed
  */
 public function __get($strName)
 {
     switch ($strName) {
         ///////////////////
         // Member Variables
         ///////////////////
         case 'AssetTransactionId':
             // Gets the value for intAssetTransactionId (Read-Only PK)
             // @return integer
             return $this->intAssetTransactionId;
         case 'AssetId':
             // Gets the value for intAssetId (Not Null)
             // @return integer
             return $this->intAssetId;
         case 'TransactionId':
             // Gets the value for intTransactionId (Not Null)
             // @return integer
             return $this->intTransactionId;
         case 'ParentAssetTransactionId':
             // Gets the value for intParentAssetTransactionId
             // @return integer
             return $this->intParentAssetTransactionId;
         case 'SourceLocationId':
             // Gets the value for intSourceLocationId
             // @return integer
             return $this->intSourceLocationId;
         case 'DestinationLocationId':
             // Gets the value for intDestinationLocationId
             // @return integer
             return $this->intDestinationLocationId;
         case 'NewAssetFlag':
             // Gets the value for blnNewAssetFlag
             // @return boolean
             return $this->blnNewAssetFlag;
         case 'NewAssetId':
             // Gets the value for intNewAssetId
             // @return integer
             return $this->intNewAssetId;
         case 'ScheduleReceiptFlag':
             // Gets the value for blnScheduleReceiptFlag
             // @return boolean
             return $this->blnScheduleReceiptFlag;
         case 'ScheduleReceiptDueDate':
             // Gets the value for dttScheduleReceiptDueDate
             // @return QDateTime
             return $this->dttScheduleReceiptDueDate;
         case 'CreatedBy':
             // Gets the value for intCreatedBy
             // @return integer
             return $this->intCreatedBy;
         case 'CreationDate':
             // Gets the value for dttCreationDate
             // @return QDateTime
             return $this->dttCreationDate;
         case 'ModifiedBy':
             // Gets the value for intModifiedBy
             // @return integer
             return $this->intModifiedBy;
         case 'ModifiedDate':
             // Gets the value for strModifiedDate (Read-Only Timestamp)
             // @return string
             return $this->strModifiedDate;
             ///////////////////
             // Member Objects
             ///////////////////
         ///////////////////
         // Member Objects
         ///////////////////
         case 'Asset':
             // Gets the value for the Asset object referenced by intAssetId (Not Null)
             // @return Asset
             try {
                 if (!$this->objAsset && !is_null($this->intAssetId)) {
                     $this->objAsset = Asset::Load($this->intAssetId);
                 }
                 return $this->objAsset;
             } catch (QCallerException $objExc) {
                 $objExc->IncrementOffset();
                 throw $objExc;
             }
         case 'Transaction':
             // Gets the value for the Transaction object referenced by intTransactionId (Not Null)
             // @return Transaction
             try {
                 if (!$this->objTransaction && !is_null($this->intTransactionId)) {
                     $this->objTransaction = Transaction::Load($this->intTransactionId);
                 }
                 return $this->objTransaction;
             } catch (QCallerException $objExc) {
                 $objExc->IncrementOffset();
                 throw $objExc;
             }
         case 'ParentAssetTransaction':
             // Gets the value for the AssetTransaction object referenced by intParentAssetTransactionId
             // @return AssetTransaction
             try {
                 if (!$this->objParentAssetTransaction && !is_null($this->intParentAssetTransactionId)) {
                     $this->objParentAssetTransaction = AssetTransaction::Load($this->intParentAssetTransactionId);
                 }
                 return $this->objParentAssetTransaction;
             } catch (QCallerException $objExc) {
                 $objExc->IncrementOffset();
                 throw $objExc;
             }
         case 'SourceLocation':
             // Gets the value for the Location object referenced by intSourceLocationId
             // @return Location
             try {
                 if (!$this->objSourceLocation && !is_null($this->intSourceLocationId)) {
                     $this->objSourceLocation = Location::Load($this->intSourceLocationId);
                 }
                 return $this->objSourceLocation;
             } catch (QCallerException $objExc) {
                 $objExc->IncrementOffset();
                 throw $objExc;
             }
         case 'DestinationLocation':
             // Gets the value for the Location object referenced by intDestinationLocationId
             // @return Location
             try {
                 if (!$this->objDestinationLocation && !is_null($this->intDestinationLocationId)) {
                     $this->objDestinationLocation = Location::Load($this->intDestinationLocationId);
                 }
                 return $this->objDestinationLocation;
             } catch (QCallerException $objExc) {
                 $objExc->IncrementOffset();
                 throw $objExc;
             }
         case 'NewAsset':
             // Gets the value for the Asset object referenced by intNewAssetId
             // @return Asset
             try {
                 if (!$this->objNewAsset && !is_null($this->intNewAssetId)) {
                     $this->objNewAsset = Asset::Load($this->intNewAssetId);
                 }
                 return $this->objNewAsset;
             } catch (QCallerException $objExc) {
                 $objExc->IncrementOffset();
                 throw $objExc;
             }
         case 'CreatedByObject':
             // Gets the value for the UserAccount object referenced by intCreatedBy
             // @return UserAccount
             try {
                 if (!$this->objCreatedByObject && !is_null($this->intCreatedBy)) {
                     $this->objCreatedByObject = UserAccount::Load($this->intCreatedBy);
                 }
                 return $this->objCreatedByObject;
             } catch (QCallerException $objExc) {
                 $objExc->IncrementOffset();
                 throw $objExc;
             }
         case 'ModifiedByObject':
             // Gets the value for the UserAccount object referenced by intModifiedBy
             // @return UserAccount
             try {
                 if (!$this->objModifiedByObject && !is_null($this->intModifiedBy)) {
                     $this->objModifiedByObject = UserAccount::Load($this->intModifiedBy);
                 }
                 return $this->objModifiedByObject;
             } catch (QCallerException $objExc) {
                 $objExc->IncrementOffset();
                 throw $objExc;
             }
         case 'AssetTransactionCheckout':
             // Gets the value for the AssetTransactionCheckout object that uniquely references this AssetTransaction
             // by objAssetTransactionCheckout (Unique)
             // @return AssetTransactionCheckout
             try {
                 if ($this->objAssetTransactionCheckout === false) {
                     // We've attempted early binding -- and the reverse reference object does not exist
                     return null;
                 }
                 if (!$this->objAssetTransactionCheckout) {
                     $this->objAssetTransactionCheckout = AssetTransactionCheckout::LoadByAssetTransactionId($this->intAssetTransactionId);
                 }
                 return $this->objAssetTransactionCheckout;
             } catch (QCallerException $objExc) {
                 $objExc->IncrementOffset();
                 throw $objExc;
             }
             ////////////////////////////
             // Virtual Object References (Many to Many and Reverse References)
             // (If restored via a "Many-to" expansion)
             ////////////////////////////
         ////////////////////////////
         // Virtual Object References (Many to Many and Reverse References)
         // (If restored via a "Many-to" expansion)
         ////////////////////////////
         case '_ChildAssetTransaction':
             // Gets the value for the private _objChildAssetTransaction (Read-Only)
             // if set due to an expansion on the asset_transaction.parent_asset_transaction_id reverse relationship
             // @return AssetTransaction
             return $this->_objChildAssetTransaction;
         case '_ChildAssetTransactionArray':
             // Gets the value for the private _objChildAssetTransactionArray (Read-Only)
             // if set due to an ExpandAsArray on the asset_transaction.parent_asset_transaction_id reverse relationship
             // @return AssetTransaction[]
             return (array) $this->_objChildAssetTransactionArray;
         case '__Restored':
             return $this->__blnRestored;
         default:
             try {
                 return parent::__get($strName);
             } catch (QCallerException $objExc) {
                 $objExc->IncrementOffset();
                 throw $objExc;
             }
     }
 }
Esempio n. 21
0
 /**
  * Override method to perform a property "Get"
  * This will get the value of $strName
  *
  * @param string $strName Name of the property to get
  * @return mixed
  */
 public function __get($strName)
 {
     switch ($strName) {
         ///////////////////
         // Member Variables
         ///////////////////
         case 'ShipmentId':
             /**
              * Gets the value for intShipmentId (Read-Only PK)
              * @return integer
              */
             return $this->intShipmentId;
         case 'ShipmentNumber':
             /**
              * Gets the value for strShipmentNumber (Unique)
              * @return string
              */
             return $this->strShipmentNumber;
         case 'TransactionId':
             /**
              * Gets the value for intTransactionId (Unique)
              * @return integer
              */
             return $this->intTransactionId;
         case 'FromCompanyId':
             /**
              * Gets the value for intFromCompanyId (Not Null)
              * @return integer
              */
             return $this->intFromCompanyId;
         case 'FromContactId':
             /**
              * Gets the value for intFromContactId (Not Null)
              * @return integer
              */
             return $this->intFromContactId;
         case 'FromAddressId':
             /**
              * Gets the value for intFromAddressId (Not Null)
              * @return integer
              */
             return $this->intFromAddressId;
         case 'ToCompanyId':
             /**
              * Gets the value for intToCompanyId (Not Null)
              * @return integer
              */
             return $this->intToCompanyId;
         case 'ToContactId':
             /**
              * Gets the value for intToContactId (Not Null)
              * @return integer
              */
             return $this->intToContactId;
         case 'ToAddressId':
             /**
              * Gets the value for intToAddressId (Not Null)
              * @return integer
              */
             return $this->intToAddressId;
         case 'CourierId':
             /**
              * Gets the value for intCourierId 
              * @return integer
              */
             return $this->intCourierId;
         case 'TrackingNumber':
             /**
              * Gets the value for strTrackingNumber 
              * @return string
              */
             return $this->strTrackingNumber;
         case 'ShipDate':
             /**
              * Gets the value for dttShipDate (Not Null)
              * @return QDateTime
              */
             return $this->dttShipDate;
         case 'ShippedFlag':
             /**
              * Gets the value for blnShippedFlag 
              * @return boolean
              */
             return $this->blnShippedFlag;
         case 'CreatedBy':
             /**
              * Gets the value for intCreatedBy 
              * @return integer
              */
             return $this->intCreatedBy;
         case 'CreationDate':
             /**
              * Gets the value for dttCreationDate 
              * @return QDateTime
              */
             return $this->dttCreationDate;
         case 'ModifiedBy':
             /**
              * Gets the value for intModifiedBy 
              * @return integer
              */
             return $this->intModifiedBy;
         case 'ModifiedDate':
             /**
              * Gets the value for strModifiedDate (Read-Only Timestamp)
              * @return string
              */
             return $this->strModifiedDate;
             ///////////////////
             // Member Objects
             ///////////////////
         ///////////////////
         // Member Objects
         ///////////////////
         case 'Transaction':
             /**
              * Gets the value for the Transaction object referenced by intTransactionId (Unique)
              * @return Transaction
              */
             try {
                 if (!$this->objTransaction && !is_null($this->intTransactionId)) {
                     $this->objTransaction = Transaction::Load($this->intTransactionId);
                 }
                 return $this->objTransaction;
             } catch (QCallerException $objExc) {
                 $objExc->IncrementOffset();
                 throw $objExc;
             }
         case 'FromCompany':
             /**
              * Gets the value for the Company object referenced by intFromCompanyId (Not Null)
              * @return Company
              */
             try {
                 if (!$this->objFromCompany && !is_null($this->intFromCompanyId)) {
                     $this->objFromCompany = Company::Load($this->intFromCompanyId);
                 }
                 return $this->objFromCompany;
             } catch (QCallerException $objExc) {
                 $objExc->IncrementOffset();
                 throw $objExc;
             }
         case 'FromContact':
             /**
              * Gets the value for the Contact object referenced by intFromContactId (Not Null)
              * @return Contact
              */
             try {
                 if (!$this->objFromContact && !is_null($this->intFromContactId)) {
                     $this->objFromContact = Contact::Load($this->intFromContactId);
                 }
                 return $this->objFromContact;
             } catch (QCallerException $objExc) {
                 $objExc->IncrementOffset();
                 throw $objExc;
             }
         case 'FromAddress':
             /**
              * Gets the value for the Address object referenced by intFromAddressId (Not Null)
              * @return Address
              */
             try {
                 if (!$this->objFromAddress && !is_null($this->intFromAddressId)) {
                     $this->objFromAddress = Address::Load($this->intFromAddressId);
                 }
                 return $this->objFromAddress;
             } catch (QCallerException $objExc) {
                 $objExc->IncrementOffset();
                 throw $objExc;
             }
         case 'ToCompany':
             /**
              * Gets the value for the Company object referenced by intToCompanyId (Not Null)
              * @return Company
              */
             try {
                 if (!$this->objToCompany && !is_null($this->intToCompanyId)) {
                     $this->objToCompany = Company::Load($this->intToCompanyId);
                 }
                 return $this->objToCompany;
             } catch (QCallerException $objExc) {
                 $objExc->IncrementOffset();
                 throw $objExc;
             }
         case 'ToContact':
             /**
              * Gets the value for the Contact object referenced by intToContactId (Not Null)
              * @return Contact
              */
             try {
                 if (!$this->objToContact && !is_null($this->intToContactId)) {
                     $this->objToContact = Contact::Load($this->intToContactId);
                 }
                 return $this->objToContact;
             } catch (QCallerException $objExc) {
                 $objExc->IncrementOffset();
                 throw $objExc;
             }
         case 'ToAddress':
             /**
              * Gets the value for the Address object referenced by intToAddressId (Not Null)
              * @return Address
              */
             try {
                 if (!$this->objToAddress && !is_null($this->intToAddressId)) {
                     $this->objToAddress = Address::Load($this->intToAddressId);
                 }
                 return $this->objToAddress;
             } catch (QCallerException $objExc) {
                 $objExc->IncrementOffset();
                 throw $objExc;
             }
         case 'Courier':
             /**
              * Gets the value for the Courier object referenced by intCourierId 
              * @return Courier
              */
             try {
                 if (!$this->objCourier && !is_null($this->intCourierId)) {
                     $this->objCourier = Courier::Load($this->intCourierId);
                 }
                 return $this->objCourier;
             } catch (QCallerException $objExc) {
                 $objExc->IncrementOffset();
                 throw $objExc;
             }
         case 'CreatedByObject':
             /**
              * Gets the value for the UserAccount object referenced by intCreatedBy 
              * @return UserAccount
              */
             try {
                 if (!$this->objCreatedByObject && !is_null($this->intCreatedBy)) {
                     $this->objCreatedByObject = UserAccount::Load($this->intCreatedBy);
                 }
                 return $this->objCreatedByObject;
             } catch (QCallerException $objExc) {
                 $objExc->IncrementOffset();
                 throw $objExc;
             }
         case 'ModifiedByObject':
             /**
              * Gets the value for the UserAccount object referenced by intModifiedBy 
              * @return UserAccount
              */
             try {
                 if (!$this->objModifiedByObject && !is_null($this->intModifiedBy)) {
                     $this->objModifiedByObject = UserAccount::Load($this->intModifiedBy);
                 }
                 return $this->objModifiedByObject;
             } catch (QCallerException $objExc) {
                 $objExc->IncrementOffset();
                 throw $objExc;
             }
             ////////////////////////////
             // Virtual Object References (Many to Many and Reverse References)
             // (If restored via a "Many-to" expansion)
             ////////////////////////////
         ////////////////////////////
         // Virtual Object References (Many to Many and Reverse References)
         // (If restored via a "Many-to" expansion)
         ////////////////////////////
         case '_FedexShipment':
             /**
              * Gets the value for the private _objFedexShipment (Read-Only)
              * if set due to an expansion on the fedex_shipment.shipment_id reverse relationship
              * @return FedexShipment
              */
             return $this->_objFedexShipment;
         case '_FedexShipmentArray':
             /**
              * Gets the value for the private _objFedexShipmentArray (Read-Only)
              * if set due to an ExpandAsArray on the fedex_shipment.shipment_id reverse relationship
              * @return FedexShipment[]
              */
             return (array) $this->_objFedexShipmentArray;
         default:
             try {
                 return parent::__get($strName);
             } catch (QCallerException $objExc) {
                 $objExc->IncrementOffset();
                 throw $objExc;
             }
     }
 }
Esempio n. 22
0
 /**
  * Override method to perform a property "Get"
  * This will get the value of $strName
  *
  * @param string $strName Name of the property to get
  * @return mixed
  */
 public function __get($strName)
 {
     switch ($strName) {
         ///////////////////
         // Member Variables
         ///////////////////
         case 'ShipmentId':
             // Gets the value for intShipmentId (Read-Only PK)
             // @return integer
             return $this->intShipmentId;
         case 'ShipmentNumber':
             // Gets the value for strShipmentNumber (Unique)
             // @return string
             return $this->strShipmentNumber;
         case 'TransactionId':
             // Gets the value for intTransactionId (Unique)
             // @return integer
             return $this->intTransactionId;
         case 'FromCompanyId':
             // Gets the value for intFromCompanyId (Not Null)
             // @return integer
             return $this->intFromCompanyId;
         case 'FromContactId':
             // Gets the value for intFromContactId (Not Null)
             // @return integer
             return $this->intFromContactId;
         case 'FromAddressId':
             // Gets the value for intFromAddressId (Not Null)
             // @return integer
             return $this->intFromAddressId;
         case 'ToCompanyId':
             // Gets the value for intToCompanyId (Not Null)
             // @return integer
             return $this->intToCompanyId;
         case 'ToContactId':
             // Gets the value for intToContactId (Not Null)
             // @return integer
             return $this->intToContactId;
         case 'ToAddressId':
             // Gets the value for intToAddressId (Not Null)
             // @return integer
             return $this->intToAddressId;
         case 'CourierId':
             // Gets the value for intCourierId
             // @return integer
             return $this->intCourierId;
         case 'TrackingNumber':
             // Gets the value for strTrackingNumber
             // @return string
             return $this->strTrackingNumber;
         case 'ShipDate':
             // Gets the value for dttShipDate (Not Null)
             // @return QDateTime
             return $this->dttShipDate;
         case 'ShippedFlag':
             // Gets the value for blnShippedFlag
             // @return boolean
             return $this->blnShippedFlag;
         case 'CreatedBy':
             // Gets the value for intCreatedBy
             // @return integer
             return $this->intCreatedBy;
         case 'CreationDate':
             // Gets the value for dttCreationDate
             // @return QDateTime
             return $this->dttCreationDate;
         case 'ModifiedBy':
             // Gets the value for intModifiedBy
             // @return integer
             return $this->intModifiedBy;
         case 'ModifiedDate':
             // Gets the value for strModifiedDate (Read-Only Timestamp)
             // @return string
             return $this->strModifiedDate;
             ///////////////////
             // Member Objects
             ///////////////////
         ///////////////////
         // Member Objects
         ///////////////////
         case 'Transaction':
             // Gets the value for the Transaction object referenced by intTransactionId (Unique)
             // @return Transaction
             try {
                 if (!$this->objTransaction && !is_null($this->intTransactionId)) {
                     $this->objTransaction = Transaction::Load($this->intTransactionId);
                 }
                 return $this->objTransaction;
             } catch (QCallerException $objExc) {
                 $objExc->IncrementOffset();
                 throw $objExc;
             }
         case 'FromCompany':
             // Gets the value for the Company object referenced by intFromCompanyId (Not Null)
             // @return Company
             try {
                 if (!$this->objFromCompany && !is_null($this->intFromCompanyId)) {
                     $this->objFromCompany = Company::Load($this->intFromCompanyId);
                 }
                 return $this->objFromCompany;
             } catch (QCallerException $objExc) {
                 $objExc->IncrementOffset();
                 throw $objExc;
             }
         case 'FromContact':
             // Gets the value for the Contact object referenced by intFromContactId (Not Null)
             // @return Contact
             try {
                 if (!$this->objFromContact && !is_null($this->intFromContactId)) {
                     $this->objFromContact = Contact::Load($this->intFromContactId);
                 }
                 return $this->objFromContact;
             } catch (QCallerException $objExc) {
                 $objExc->IncrementOffset();
                 throw $objExc;
             }
         case 'FromAddress':
             // Gets the value for the Address object referenced by intFromAddressId (Not Null)
             // @return Address
             try {
                 if (!$this->objFromAddress && !is_null($this->intFromAddressId)) {
                     $this->objFromAddress = Address::Load($this->intFromAddressId);
                 }
                 return $this->objFromAddress;
             } catch (QCallerException $objExc) {
                 $objExc->IncrementOffset();
                 throw $objExc;
             }
         case 'ToCompany':
             // Gets the value for the Company object referenced by intToCompanyId (Not Null)
             // @return Company
             try {
                 if (!$this->objToCompany && !is_null($this->intToCompanyId)) {
                     $this->objToCompany = Company::Load($this->intToCompanyId);
                 }
                 return $this->objToCompany;
             } catch (QCallerException $objExc) {
                 $objExc->IncrementOffset();
                 throw $objExc;
             }
         case 'ToContact':
             // Gets the value for the Contact object referenced by intToContactId (Not Null)
             // @return Contact
             try {
                 if (!$this->objToContact && !is_null($this->intToContactId)) {
                     $this->objToContact = Contact::Load($this->intToContactId);
                 }
                 return $this->objToContact;
             } catch (QCallerException $objExc) {
                 $objExc->IncrementOffset();
                 throw $objExc;
             }
         case 'ToAddress':
             // Gets the value for the Address object referenced by intToAddressId (Not Null)
             // @return Address
             try {
                 if (!$this->objToAddress && !is_null($this->intToAddressId)) {
                     $this->objToAddress = Address::Load($this->intToAddressId);
                 }
                 return $this->objToAddress;
             } catch (QCallerException $objExc) {
                 $objExc->IncrementOffset();
                 throw $objExc;
             }
         case 'Courier':
             // Gets the value for the Courier object referenced by intCourierId
             // @return Courier
             try {
                 if (!$this->objCourier && !is_null($this->intCourierId)) {
                     $this->objCourier = Courier::Load($this->intCourierId);
                 }
                 return $this->objCourier;
             } catch (QCallerException $objExc) {
                 $objExc->IncrementOffset();
                 throw $objExc;
             }
         case 'CreatedByObject':
             // Gets the value for the UserAccount object referenced by intCreatedBy
             // @return UserAccount
             try {
                 if (!$this->objCreatedByObject && !is_null($this->intCreatedBy)) {
                     $this->objCreatedByObject = UserAccount::Load($this->intCreatedBy);
                 }
                 return $this->objCreatedByObject;
             } catch (QCallerException $objExc) {
                 $objExc->IncrementOffset();
                 throw $objExc;
             }
         case 'ModifiedByObject':
             // Gets the value for the UserAccount object referenced by intModifiedBy
             // @return UserAccount
             try {
                 if (!$this->objModifiedByObject && !is_null($this->intModifiedBy)) {
                     $this->objModifiedByObject = UserAccount::Load($this->intModifiedBy);
                 }
                 return $this->objModifiedByObject;
             } catch (QCallerException $objExc) {
                 $objExc->IncrementOffset();
                 throw $objExc;
             }
         case 'ShipmentCustomFieldHelper':
             // Gets the value for the ShipmentCustomFieldHelper object that uniquely references this Shipment
             // by objShipmentCustomFieldHelper (Unique)
             // @return ShipmentCustomFieldHelper
             try {
                 if ($this->objShipmentCustomFieldHelper === false) {
                     // We've attempted early binding -- and the reverse reference object does not exist
                     return null;
                 }
                 if (!$this->objShipmentCustomFieldHelper) {
                     $this->objShipmentCustomFieldHelper = ShipmentCustomFieldHelper::LoadByShipmentId($this->intShipmentId);
                 }
                 return $this->objShipmentCustomFieldHelper;
             } catch (QCallerException $objExc) {
                 $objExc->IncrementOffset();
                 throw $objExc;
             }
             ////////////////////////////
             // Virtual Object References (Many to Many and Reverse References)
             // (If restored via a "Many-to" expansion)
             ////////////////////////////
         ////////////////////////////
         // Virtual Object References (Many to Many and Reverse References)
         // (If restored via a "Many-to" expansion)
         ////////////////////////////
         case '__Restored':
             return $this->__blnRestored;
         default:
             try {
                 return parent::__get($strName);
             } catch (QCallerException $objExc) {
                 $objExc->IncrementOffset();
                 throw $objExc;
             }
     }
 }
Esempio n. 23
0
 /**
  * Override method to perform a property "Get"
  * This will get the value of $strName
  *
  * @param string $strName Name of the property to get
  * @return mixed
  */
 public function __get($strName)
 {
     switch ($strName) {
         ///////////////////
         // Member Variables
         ///////////////////
         case 'ManufacturerId':
             // Gets the value for intManufacturerId (Read-Only PK)
             // @return integer
             return $this->intManufacturerId;
         case 'ShortDescription':
             // Gets the value for strShortDescription (Not Null)
             // @return string
             return $this->strShortDescription;
         case 'LongDescription':
             // Gets the value for strLongDescription
             // @return string
             return $this->strLongDescription;
         case 'ImagePath':
             // Gets the value for strImagePath
             // @return string
             return $this->strImagePath;
         case 'CreatedBy':
             // Gets the value for intCreatedBy
             // @return integer
             return $this->intCreatedBy;
         case 'CreationDate':
             // Gets the value for dttCreationDate
             // @return QDateTime
             return $this->dttCreationDate;
         case 'ModifiedBy':
             // Gets the value for intModifiedBy
             // @return integer
             return $this->intModifiedBy;
         case 'ModifiedDate':
             // Gets the value for strModifiedDate (Read-Only Timestamp)
             // @return string
             return $this->strModifiedDate;
             ///////////////////
             // Member Objects
             ///////////////////
         ///////////////////
         // Member Objects
         ///////////////////
         case 'CreatedByObject':
             // Gets the value for the UserAccount object referenced by intCreatedBy
             // @return UserAccount
             try {
                 if (!$this->objCreatedByObject && !is_null($this->intCreatedBy)) {
                     $this->objCreatedByObject = UserAccount::Load($this->intCreatedBy);
                 }
                 return $this->objCreatedByObject;
             } catch (QCallerException $objExc) {
                 $objExc->IncrementOffset();
                 throw $objExc;
             }
         case 'ModifiedByObject':
             // Gets the value for the UserAccount object referenced by intModifiedBy
             // @return UserAccount
             try {
                 if (!$this->objModifiedByObject && !is_null($this->intModifiedBy)) {
                     $this->objModifiedByObject = UserAccount::Load($this->intModifiedBy);
                 }
                 return $this->objModifiedByObject;
             } catch (QCallerException $objExc) {
                 $objExc->IncrementOffset();
                 throw $objExc;
             }
         case 'ManufacturerCustomFieldHelper':
             // Gets the value for the ManufacturerCustomFieldHelper object that uniquely references this Manufacturer
             // by objManufacturerCustomFieldHelper (Unique)
             // @return ManufacturerCustomFieldHelper
             try {
                 if ($this->objManufacturerCustomFieldHelper === false) {
                     // We've attempted early binding -- and the reverse reference object does not exist
                     return null;
                 }
                 if (!$this->objManufacturerCustomFieldHelper) {
                     $this->objManufacturerCustomFieldHelper = ManufacturerCustomFieldHelper::LoadByManufacturerId($this->intManufacturerId);
                 }
                 return $this->objManufacturerCustomFieldHelper;
             } catch (QCallerException $objExc) {
                 $objExc->IncrementOffset();
                 throw $objExc;
             }
             ////////////////////////////
             // Virtual Object References (Many to Many and Reverse References)
             // (If restored via a "Many-to" expansion)
             ////////////////////////////
         ////////////////////////////
         // Virtual Object References (Many to Many and Reverse References)
         // (If restored via a "Many-to" expansion)
         ////////////////////////////
         case '_AssetModel':
             // Gets the value for the private _objAssetModel (Read-Only)
             // if set due to an expansion on the asset_model.manufacturer_id reverse relationship
             // @return AssetModel
             return $this->_objAssetModel;
         case '_AssetModelArray':
             // Gets the value for the private _objAssetModelArray (Read-Only)
             // if set due to an ExpandAsArray on the asset_model.manufacturer_id reverse relationship
             // @return AssetModel[]
             return (array) $this->_objAssetModelArray;
         case '_InventoryModel':
             // Gets the value for the private _objInventoryModel (Read-Only)
             // if set due to an expansion on the inventory_model.manufacturer_id reverse relationship
             // @return InventoryModel
             return $this->_objInventoryModel;
         case '_InventoryModelArray':
             // Gets the value for the private _objInventoryModelArray (Read-Only)
             // if set due to an ExpandAsArray on the inventory_model.manufacturer_id reverse relationship
             // @return InventoryModel[]
             return (array) $this->_objInventoryModelArray;
         case '__Restored':
             return $this->__blnRestored;
         default:
             try {
                 return parent::__get($strName);
             } catch (QCallerException $objExc) {
                 $objExc->IncrementOffset();
                 throw $objExc;
             }
     }
 }
Esempio n. 24
0
 /**
  * Override method to perform a property "Get"
  * This will get the value of $strName
  *
  * @param string $strName Name of the property to get
  * @return mixed
  */
 public function __get($strName)
 {
     switch ($strName) {
         ///////////////////
         // Member Variables
         ///////////////////
         case 'CustomFieldId':
             /**
              * Gets the value for intCustomFieldId (Read-Only PK)
              * @return integer
              */
             return $this->intCustomFieldId;
         case 'CustomFieldQtypeId':
             /**
              * Gets the value for intCustomFieldQtypeId (Not Null)
              * @return integer
              */
             return $this->intCustomFieldQtypeId;
         case 'DefaultCustomFieldValueId':
             /**
              * Gets the value for intDefaultCustomFieldValueId 
              * @return integer
              */
             return $this->intDefaultCustomFieldValueId;
         case 'ShortDescription':
             /**
              * Gets the value for strShortDescription (Not Null)
              * @return string
              */
             return $this->strShortDescription;
         case 'ActiveFlag':
             /**
              * Gets the value for blnActiveFlag 
              * @return boolean
              */
             return $this->blnActiveFlag;
         case 'RequiredFlag':
             /**
              * Gets the value for blnRequiredFlag 
              * @return boolean
              */
             return $this->blnRequiredFlag;
         case 'CreatedBy':
             /**
              * Gets the value for intCreatedBy 
              * @return integer
              */
             return $this->intCreatedBy;
         case 'CreationDate':
             /**
              * Gets the value for dttCreationDate 
              * @return QDateTime
              */
             return $this->dttCreationDate;
         case 'ModifiedBy':
             /**
              * Gets the value for intModifiedBy 
              * @return integer
              */
             return $this->intModifiedBy;
         case 'ModifiedDate':
             /**
              * Gets the value for strModifiedDate (Read-Only Timestamp)
              * @return string
              */
             return $this->strModifiedDate;
             ///////////////////
             // Member Objects
             ///////////////////
         ///////////////////
         // Member Objects
         ///////////////////
         case 'DefaultCustomFieldValue':
             /**
              * Gets the value for the CustomFieldValue object referenced by intDefaultCustomFieldValueId 
              * @return CustomFieldValue
              */
             try {
                 if (!$this->objDefaultCustomFieldValue && !is_null($this->intDefaultCustomFieldValueId)) {
                     $this->objDefaultCustomFieldValue = CustomFieldValue::Load($this->intDefaultCustomFieldValueId);
                 }
                 return $this->objDefaultCustomFieldValue;
             } catch (QCallerException $objExc) {
                 $objExc->IncrementOffset();
                 throw $objExc;
             }
         case 'CreatedByObject':
             /**
              * Gets the value for the UserAccount object referenced by intCreatedBy 
              * @return UserAccount
              */
             try {
                 if (!$this->objCreatedByObject && !is_null($this->intCreatedBy)) {
                     $this->objCreatedByObject = UserAccount::Load($this->intCreatedBy);
                 }
                 return $this->objCreatedByObject;
             } catch (QCallerException $objExc) {
                 $objExc->IncrementOffset();
                 throw $objExc;
             }
         case 'ModifiedByObject':
             /**
              * Gets the value for the UserAccount object referenced by intModifiedBy 
              * @return UserAccount
              */
             try {
                 if (!$this->objModifiedByObject && !is_null($this->intModifiedBy)) {
                     $this->objModifiedByObject = UserAccount::Load($this->intModifiedBy);
                 }
                 return $this->objModifiedByObject;
             } catch (QCallerException $objExc) {
                 $objExc->IncrementOffset();
                 throw $objExc;
             }
             ////////////////////////////
             // Virtual Object References (Many to Many and Reverse References)
             // (If restored via a "Many-to" expansion)
             ////////////////////////////
         ////////////////////////////
         // Virtual Object References (Many to Many and Reverse References)
         // (If restored via a "Many-to" expansion)
         ////////////////////////////
         case '_CustomFieldValue':
             /**
              * Gets the value for the private _objCustomFieldValue (Read-Only)
              * if set due to an expansion on the custom_field_value.custom_field_id reverse relationship
              * @return CustomFieldValue
              */
             return $this->_objCustomFieldValue;
         case '_CustomFieldValueArray':
             /**
              * Gets the value for the private _objCustomFieldValueArray (Read-Only)
              * if set due to an ExpandAsArray on the custom_field_value.custom_field_id reverse relationship
              * @return CustomFieldValue[]
              */
             return (array) $this->_objCustomFieldValueArray;
         case '_EntityQtypeCustomField':
             /**
              * Gets the value for the private _objEntityQtypeCustomField (Read-Only)
              * if set due to an expansion on the entity_qtype_custom_field.custom_field_id reverse relationship
              * @return EntityQtypeCustomField
              */
             return $this->_objEntityQtypeCustomField;
         case '_EntityQtypeCustomFieldArray':
             /**
              * Gets the value for the private _objEntityQtypeCustomFieldArray (Read-Only)
              * if set due to an ExpandAsArray on the entity_qtype_custom_field.custom_field_id reverse relationship
              * @return EntityQtypeCustomField[]
              */
             return (array) $this->_objEntityQtypeCustomFieldArray;
         default:
             try {
                 return parent::__get($strName);
             } catch (QCallerException $objExc) {
                 $objExc->IncrementOffset();
                 throw $objExc;
             }
     }
 }
Esempio n. 25
0
<?php

require_once '../includes/prepend.inc.php';
// Check that the user is properly authenticated
if (!isset($_SESSION['intUserAccountId'])) {
    // authenticate error
    QApplication::Redirect('./index.php');
} else {
    QApplication::$objUserAccount = UserAccount::Load($_SESSION['intUserAccountId']);
}
$strWarning = "";
$arrCheckedAssetCode = "";
$strJavaScriptCode = "";
if ($_POST && $_POST['method'] == 'complete_transaction') {
    /*
    Run error checking on the array of asset codes and the destination location
    If there are no errors, then you will add the transaction to the database.
    	That will include an entry in the Transaction and Asset Transaction table.
    	You will also have to change the asset.location_id to the destination location
    */
    $arrAssetCode = array_unique(explode('#', $_POST['result']));
    $blnError = false;
    $arrCheckedAssetCode = array();
    foreach ($arrAssetCode as $strAssetCode) {
        if ($strAssetCode) {
            // Begin error checking
            $objNewAsset = Asset::LoadByAssetCode($strAssetCode);
            if (!$objNewAsset instanceof Asset) {
                $blnError = true;
                $strWarning .= $strAssetCode . " - That asset code does not exist.<br />";
            } elseif ($objNewAsset->LocationId == 2) {
Esempio n. 26
0
 /**
  * Override method to perform a property "Get"
  * This will get the value of $strName
  *
  * @param string $strName Name of the property to get
  * @return mixed
  */
 public function __get($strName)
 {
     switch ($strName) {
         ///////////////////
         // Member Variables
         ///////////////////
         case 'LocationId':
             // Gets the value for intLocationId (Read-Only PK)
             // @return integer
             return $this->intLocationId;
         case 'ShortDescription':
             // Gets the value for strShortDescription (Unique)
             // @return string
             return $this->strShortDescription;
         case 'LongDescription':
             // Gets the value for strLongDescription
             // @return string
             return $this->strLongDescription;
         case 'EnabledFlag':
             // Gets the value for blnEnabledFlag (Not Null)
             // @return boolean
             return $this->blnEnabledFlag;
         case 'AssetFlag':
             // Gets the value for blnAssetFlag (Not Null)
             // @return boolean
             return $this->blnAssetFlag;
         case 'InventoryFlag':
             // Gets the value for blnInventoryFlag (Not Null)
             // @return boolean
             return $this->blnInventoryFlag;
         case 'CreatedBy':
             // Gets the value for intCreatedBy
             // @return integer
             return $this->intCreatedBy;
         case 'CreationDate':
             // Gets the value for dttCreationDate
             // @return QDateTime
             return $this->dttCreationDate;
         case 'ModifiedBy':
             // Gets the value for intModifiedBy
             // @return integer
             return $this->intModifiedBy;
         case 'ModifiedDate':
             // Gets the value for strModifiedDate (Read-Only Timestamp)
             // @return string
             return $this->strModifiedDate;
             ///////////////////
             // Member Objects
             ///////////////////
         ///////////////////
         // Member Objects
         ///////////////////
         case 'CreatedByObject':
             // Gets the value for the UserAccount object referenced by intCreatedBy
             // @return UserAccount
             try {
                 if (!$this->objCreatedByObject && !is_null($this->intCreatedBy)) {
                     $this->objCreatedByObject = UserAccount::Load($this->intCreatedBy);
                 }
                 return $this->objCreatedByObject;
             } catch (QCallerException $objExc) {
                 $objExc->IncrementOffset();
                 throw $objExc;
             }
         case 'ModifiedByObject':
             // Gets the value for the UserAccount object referenced by intModifiedBy
             // @return UserAccount
             try {
                 if (!$this->objModifiedByObject && !is_null($this->intModifiedBy)) {
                     $this->objModifiedByObject = UserAccount::Load($this->intModifiedBy);
                 }
                 return $this->objModifiedByObject;
             } catch (QCallerException $objExc) {
                 $objExc->IncrementOffset();
                 throw $objExc;
             }
             ////////////////////////////
             // Virtual Object References (Many to Many and Reverse References)
             // (If restored via a "Many-to" expansion)
             ////////////////////////////
         ////////////////////////////
         // Virtual Object References (Many to Many and Reverse References)
         // (If restored via a "Many-to" expansion)
         ////////////////////////////
         case '_Asset':
             // Gets the value for the private _objAsset (Read-Only)
             // if set due to an expansion on the asset.location_id reverse relationship
             // @return Asset
             return $this->_objAsset;
         case '_AssetArray':
             // Gets the value for the private _objAssetArray (Read-Only)
             // if set due to an ExpandAsArray on the asset.location_id reverse relationship
             // @return Asset[]
             return (array) $this->_objAssetArray;
         case '_AssetTransactionAsSource':
             // Gets the value for the private _objAssetTransactionAsSource (Read-Only)
             // if set due to an expansion on the asset_transaction.source_location_id reverse relationship
             // @return AssetTransaction
             return $this->_objAssetTransactionAsSource;
         case '_AssetTransactionAsSourceArray':
             // Gets the value for the private _objAssetTransactionAsSourceArray (Read-Only)
             // if set due to an ExpandAsArray on the asset_transaction.source_location_id reverse relationship
             // @return AssetTransaction[]
             return (array) $this->_objAssetTransactionAsSourceArray;
         case '_AssetTransactionAsDestination':
             // Gets the value for the private _objAssetTransactionAsDestination (Read-Only)
             // if set due to an expansion on the asset_transaction.destination_location_id reverse relationship
             // @return AssetTransaction
             return $this->_objAssetTransactionAsDestination;
         case '_AssetTransactionAsDestinationArray':
             // Gets the value for the private _objAssetTransactionAsDestinationArray (Read-Only)
             // if set due to an ExpandAsArray on the asset_transaction.destination_location_id reverse relationship
             // @return AssetTransaction[]
             return (array) $this->_objAssetTransactionAsDestinationArray;
         case '_AuditScan':
             // Gets the value for the private _objAuditScan (Read-Only)
             // if set due to an expansion on the audit_scan.location_id reverse relationship
             // @return AuditScan
             return $this->_objAuditScan;
         case '_AuditScanArray':
             // Gets the value for the private _objAuditScanArray (Read-Only)
             // if set due to an ExpandAsArray on the audit_scan.location_id reverse relationship
             // @return AuditScan[]
             return (array) $this->_objAuditScanArray;
         case '_InventoryLocation':
             // Gets the value for the private _objInventoryLocation (Read-Only)
             // if set due to an expansion on the inventory_location.location_id reverse relationship
             // @return InventoryLocation
             return $this->_objInventoryLocation;
         case '_InventoryLocationArray':
             // Gets the value for the private _objInventoryLocationArray (Read-Only)
             // if set due to an ExpandAsArray on the inventory_location.location_id reverse relationship
             // @return InventoryLocation[]
             return (array) $this->_objInventoryLocationArray;
         case '_InventoryTransactionAsSource':
             // Gets the value for the private _objInventoryTransactionAsSource (Read-Only)
             // if set due to an expansion on the inventory_transaction.source_location_id reverse relationship
             // @return InventoryTransaction
             return $this->_objInventoryTransactionAsSource;
         case '_InventoryTransactionAsSourceArray':
             // Gets the value for the private _objInventoryTransactionAsSourceArray (Read-Only)
             // if set due to an ExpandAsArray on the inventory_transaction.source_location_id reverse relationship
             // @return InventoryTransaction[]
             return (array) $this->_objInventoryTransactionAsSourceArray;
         case '_InventoryTransactionAsDestination':
             // Gets the value for the private _objInventoryTransactionAsDestination (Read-Only)
             // if set due to an expansion on the inventory_transaction.destination_location_id reverse relationship
             // @return InventoryTransaction
             return $this->_objInventoryTransactionAsDestination;
         case '_InventoryTransactionAsDestinationArray':
             // Gets the value for the private _objInventoryTransactionAsDestinationArray (Read-Only)
             // if set due to an ExpandAsArray on the inventory_transaction.destination_location_id reverse relationship
             // @return InventoryTransaction[]
             return (array) $this->_objInventoryTransactionAsDestinationArray;
         case '__Restored':
             return $this->__blnRestored;
         default:
             try {
                 return parent::__get($strName);
             } catch (QCallerException $objExc) {
                 $objExc->IncrementOffset();
                 throw $objExc;
             }
     }
 }
Esempio n. 27
0
 /**
  * Override method to perform a property "Get"
  * This will get the value of $strName
  *
  * @param string $strName Name of the property to get
  * @return mixed
  */
 public function __get($strName)
 {
     switch ($strName) {
         ///////////////////
         // Member Variables
         ///////////////////
         case 'InventoryModelId':
             /**
              * Gets the value for intInventoryModelId (Read-Only PK)
              * @return integer
              */
             return $this->intInventoryModelId;
         case 'CategoryId':
             /**
              * Gets the value for intCategoryId 
              * @return integer
              */
             return $this->intCategoryId;
         case 'ManufacturerId':
             /**
              * Gets the value for intManufacturerId 
              * @return integer
              */
             return $this->intManufacturerId;
         case 'InventoryModelCode':
             /**
              * Gets the value for strInventoryModelCode (Unique)
              * @return string
              */
             return $this->strInventoryModelCode;
         case 'ShortDescription':
             /**
              * Gets the value for strShortDescription (Not Null)
              * @return string
              */
             return $this->strShortDescription;
         case 'LongDescription':
             /**
              * Gets the value for strLongDescription 
              * @return string
              */
             return $this->strLongDescription;
         case 'ImagePath':
             /**
              * Gets the value for strImagePath 
              * @return string
              */
             return $this->strImagePath;
         case 'Price':
             /**
              * Gets the value for fltPrice 
              * @return double
              */
             return $this->fltPrice;
         case 'CreatedBy':
             /**
              * Gets the value for intCreatedBy 
              * @return integer
              */
             return $this->intCreatedBy;
         case 'CreationDate':
             /**
              * Gets the value for dttCreationDate 
              * @return QDateTime
              */
             return $this->dttCreationDate;
         case 'ModifiedBy':
             /**
              * Gets the value for intModifiedBy 
              * @return integer
              */
             return $this->intModifiedBy;
         case 'ModifiedDate':
             /**
              * Gets the value for strModifiedDate (Read-Only Timestamp)
              * @return string
              */
             return $this->strModifiedDate;
             ///////////////////
             // Member Objects
             ///////////////////
         ///////////////////
         // Member Objects
         ///////////////////
         case 'Category':
             /**
              * Gets the value for the Category object referenced by intCategoryId 
              * @return Category
              */
             try {
                 if (!$this->objCategory && !is_null($this->intCategoryId)) {
                     $this->objCategory = Category::Load($this->intCategoryId);
                 }
                 return $this->objCategory;
             } catch (QCallerException $objExc) {
                 $objExc->IncrementOffset();
                 throw $objExc;
             }
         case 'Manufacturer':
             /**
              * Gets the value for the Manufacturer object referenced by intManufacturerId 
              * @return Manufacturer
              */
             try {
                 if (!$this->objManufacturer && !is_null($this->intManufacturerId)) {
                     $this->objManufacturer = Manufacturer::Load($this->intManufacturerId);
                 }
                 return $this->objManufacturer;
             } catch (QCallerException $objExc) {
                 $objExc->IncrementOffset();
                 throw $objExc;
             }
         case 'CreatedByObject':
             /**
              * Gets the value for the UserAccount object referenced by intCreatedBy 
              * @return UserAccount
              */
             try {
                 if (!$this->objCreatedByObject && !is_null($this->intCreatedBy)) {
                     $this->objCreatedByObject = UserAccount::Load($this->intCreatedBy);
                 }
                 return $this->objCreatedByObject;
             } catch (QCallerException $objExc) {
                 $objExc->IncrementOffset();
                 throw $objExc;
             }
         case 'ModifiedByObject':
             /**
              * Gets the value for the UserAccount object referenced by intModifiedBy 
              * @return UserAccount
              */
             try {
                 if (!$this->objModifiedByObject && !is_null($this->intModifiedBy)) {
                     $this->objModifiedByObject = UserAccount::Load($this->intModifiedBy);
                 }
                 return $this->objModifiedByObject;
             } catch (QCallerException $objExc) {
                 $objExc->IncrementOffset();
                 throw $objExc;
             }
             ////////////////////////////
             // Virtual Object References (Many to Many and Reverse References)
             // (If restored via a "Many-to" expansion)
             ////////////////////////////
         ////////////////////////////
         // Virtual Object References (Many to Many and Reverse References)
         // (If restored via a "Many-to" expansion)
         ////////////////////////////
         case '_InventoryLocation':
             /**
              * Gets the value for the private _objInventoryLocation (Read-Only)
              * if set due to an expansion on the inventory_location.inventory_model_id reverse relationship
              * @return InventoryLocation
              */
             return $this->_objInventoryLocation;
         case '_InventoryLocationArray':
             /**
              * Gets the value for the private _objInventoryLocationArray (Read-Only)
              * if set due to an ExpandAsArray on the inventory_location.inventory_model_id reverse relationship
              * @return InventoryLocation[]
              */
             return (array) $this->_objInventoryLocationArray;
         default:
             try {
                 return parent::__get($strName);
             } catch (QCallerException $objExc) {
                 $objExc->IncrementOffset();
                 throw $objExc;
             }
     }
 }
Esempio n. 28
0
 /**
  * Override method to perform a property "Get"
  * This will get the value of $strName
  *
  * @param string $strName Name of the property to get
  * @return mixed
  */
 public function __get($strName)
 {
     switch ($strName) {
         ///////////////////
         // Member Variables
         ///////////////////
         case 'AttachmentId':
             /**
              * Gets the value for intAttachmentId (Read-Only PK)
              * @return integer
              */
             return $this->intAttachmentId;
         case 'EntityQtypeId':
             /**
              * Gets the value for intEntityQtypeId (Not Null)
              * @return integer
              */
             return $this->intEntityQtypeId;
         case 'EntityId':
             /**
              * Gets the value for intEntityId (Not Null)
              * @return integer
              */
             return $this->intEntityId;
         case 'Filename':
             /**
              * Gets the value for strFilename (Not Null)
              * @return string
              */
             return $this->strFilename;
         case 'TmpFilename':
             /**
              * Gets the value for strTmpFilename 
              * @return string
              */
             return $this->strTmpFilename;
         case 'FileType':
             /**
              * Gets the value for strFileType 
              * @return string
              */
             return $this->strFileType;
         case 'Path':
             /**
              * Gets the value for strPath 
              * @return string
              */
             return $this->strPath;
         case 'Size':
             /**
              * Gets the value for intSize 
              * @return integer
              */
             return $this->intSize;
         case 'CreatedBy':
             /**
              * Gets the value for intCreatedBy (Not Null)
              * @return integer
              */
             return $this->intCreatedBy;
         case 'CreationDate':
             /**
              * Gets the value for dttCreationDate (Not Null)
              * @return QDateTime
              */
             return $this->dttCreationDate;
             ///////////////////
             // Member Objects
             ///////////////////
         ///////////////////
         // Member Objects
         ///////////////////
         case 'CreatedByObject':
             /**
              * Gets the value for the UserAccount object referenced by intCreatedBy (Not Null)
              * @return UserAccount
              */
             try {
                 if (!$this->objCreatedByObject && !is_null($this->intCreatedBy)) {
                     $this->objCreatedByObject = UserAccount::Load($this->intCreatedBy);
                 }
                 return $this->objCreatedByObject;
             } catch (QCallerException $objExc) {
                 $objExc->IncrementOffset();
                 throw $objExc;
             }
             ////////////////////////////
             // Virtual Object References (Many to Many and Reverse References)
             // (If restored via a "Many-to" expansion)
             ////////////////////////////
         ////////////////////////////
         // Virtual Object References (Many to Many and Reverse References)
         // (If restored via a "Many-to" expansion)
         ////////////////////////////
         default:
             try {
                 return parent::__get($strName);
             } catch (QCallerException $objExc) {
                 $objExc->IncrementOffset();
                 throw $objExc;
             }
     }
 }
Esempio n. 29
0
 public static function Authenticate($intModuleId = null)
 {
     // If logins have been disabled for this site, log the user out
     if (QApplication::$TracmorSettings->DisableLogins) {
         QApplication::Logout();
     }
     if (array_key_exists('intUserAccountId', $_SESSION)) {
         $objUserAccount = UserAccount::Load($_SESSION['intUserAccountId']);
         if ($objUserAccount) {
             // Assign the UserAccount object to the globally available QApplication
             QApplication::$objUserAccount = $objUserAccount;
             // If they are not in the admin panel
             if ($intModuleId) {
                 $objRoleModule = RoleModule::LoadByRoleIdModuleId($objUserAccount->RoleId, $intModuleId);
                 // If they do not have access to this module
                 if (!$objRoleModule->AccessFlag) {
                     QApplication::Redirect('../common/trespass.php');
                 } else {
                     QApplication::$objRoleModule = $objRoleModule;
                 }
             } elseif (!$objUserAccount->AdminFlag) {
                 QApplication::Redirect('../common/trespass.php');
             }
         } else {
             QApplication::Redirect('../common/trespass.php');
         }
     } else {
         QApplication::Redirect('../login.php?strReferer=' . urlencode(QApplication::$RequestUri));
     }
 }
Esempio n. 30
0
 /**
  * Override method to perform a property "Get"
  * This will get the value of $strName
  *
  * @param string $strName Name of the property to get
  * @return mixed
  */
 public function __get($strName)
 {
     switch ($strName) {
         ///////////////////
         // Member Variables
         ///////////////////
         case 'AssetId':
             /**
              * Gets the value for intAssetId (Read-Only PK)
              * @return integer
              */
             return $this->intAssetId;
         case 'AssetModelId':
             /**
              * Gets the value for intAssetModelId (Not Null)
              * @return integer
              */
             return $this->intAssetModelId;
         case 'LocationId':
             /**
              * Gets the value for intLocationId 
              * @return integer
              */
             return $this->intLocationId;
         case 'AssetCode':
             /**
              * Gets the value for strAssetCode (Unique)
              * @return string
              */
             return $this->strAssetCode;
         case 'ImagePath':
             /**
              * Gets the value for strImagePath 
              * @return string
              */
             return $this->strImagePath;
         case 'CheckedOutFlag':
             /**
              * Gets the value for blnCheckedOutFlag 
              * @return boolean
              */
             return $this->blnCheckedOutFlag;
         case 'ReservedFlag':
             /**
              * Gets the value for blnReservedFlag 
              * @return boolean
              */
             return $this->blnReservedFlag;
         case 'CreatedBy':
             /**
              * Gets the value for intCreatedBy 
              * @return integer
              */
             return $this->intCreatedBy;
         case 'CreationDate':
             /**
              * Gets the value for dttCreationDate 
              * @return QDateTime
              */
             return $this->dttCreationDate;
         case 'ModifiedBy':
             /**
              * Gets the value for intModifiedBy 
              * @return integer
              */
             return $this->intModifiedBy;
         case 'ModifiedDate':
             /**
              * Gets the value for strModifiedDate (Read-Only Timestamp)
              * @return string
              */
             return $this->strModifiedDate;
             ///////////////////
             // Member Objects
             ///////////////////
         ///////////////////
         // Member Objects
         ///////////////////
         case 'AssetModel':
             /**
              * Gets the value for the AssetModel object referenced by intAssetModelId (Not Null)
              * @return AssetModel
              */
             try {
                 if (!$this->objAssetModel && !is_null($this->intAssetModelId)) {
                     $this->objAssetModel = AssetModel::Load($this->intAssetModelId);
                 }
                 return $this->objAssetModel;
             } catch (QCallerException $objExc) {
                 $objExc->IncrementOffset();
                 throw $objExc;
             }
         case 'Location':
             /**
              * Gets the value for the Location object referenced by intLocationId 
              * @return Location
              */
             try {
                 if (!$this->objLocation && !is_null($this->intLocationId)) {
                     $this->objLocation = Location::Load($this->intLocationId);
                 }
                 return $this->objLocation;
             } catch (QCallerException $objExc) {
                 $objExc->IncrementOffset();
                 throw $objExc;
             }
         case 'CreatedByObject':
             /**
              * Gets the value for the UserAccount object referenced by intCreatedBy 
              * @return UserAccount
              */
             try {
                 if (!$this->objCreatedByObject && !is_null($this->intCreatedBy)) {
                     $this->objCreatedByObject = UserAccount::Load($this->intCreatedBy);
                 }
                 return $this->objCreatedByObject;
             } catch (QCallerException $objExc) {
                 $objExc->IncrementOffset();
                 throw $objExc;
             }
         case 'ModifiedByObject':
             /**
              * Gets the value for the UserAccount object referenced by intModifiedBy 
              * @return UserAccount
              */
             try {
                 if (!$this->objModifiedByObject && !is_null($this->intModifiedBy)) {
                     $this->objModifiedByObject = UserAccount::Load($this->intModifiedBy);
                 }
                 return $this->objModifiedByObject;
             } catch (QCallerException $objExc) {
                 $objExc->IncrementOffset();
                 throw $objExc;
             }
             ////////////////////////////
             // Virtual Object References (Many to Many and Reverse References)
             // (If restored via a "Many-to" expansion)
             ////////////////////////////
         ////////////////////////////
         // Virtual Object References (Many to Many and Reverse References)
         // (If restored via a "Many-to" expansion)
         ////////////////////////////
         case '_AssetTransaction':
             /**
              * Gets the value for the private _objAssetTransaction (Read-Only)
              * if set due to an expansion on the asset_transaction.asset_id reverse relationship
              * @return AssetTransaction
              */
             return $this->_objAssetTransaction;
         case '_AssetTransactionArray':
             /**
              * Gets the value for the private _objAssetTransactionArray (Read-Only)
              * if set due to an ExpandAsArray on the asset_transaction.asset_id reverse relationship
              * @return AssetTransaction[]
              */
             return (array) $this->_objAssetTransactionArray;
         case '_AssetTransactionAsNew':
             /**
              * Gets the value for the private _objAssetTransactionAsNew (Read-Only)
              * if set due to an expansion on the asset_transaction.new_asset_id reverse relationship
              * @return AssetTransaction
              */
             return $this->_objAssetTransactionAsNew;
         case '_AssetTransactionAsNewArray':
             /**
              * Gets the value for the private _objAssetTransactionAsNewArray (Read-Only)
              * if set due to an ExpandAsArray on the asset_transaction.new_asset_id reverse relationship
              * @return AssetTransaction[]
              */
             return (array) $this->_objAssetTransactionAsNewArray;
         default:
             try {
                 return parent::__get($strName);
             } catch (QCallerException $objExc) {
                 $objExc->IncrementOffset();
                 throw $objExc;
             }
     }
 }