当前位置: 首页>>代码示例>>PHP>>正文


PHP UserAccount::Load方法代码示例

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


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

示例1: Authenticate

 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');
     }
 }
开发者ID:heshuai64,项目名称:einv2,代码行数:26,代码来源:prepend.inc.php

示例2: SetupUserAccount

 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;
     }
 }
开发者ID:brustj,项目名称:tracmor,代码行数:18,代码来源:UserAccountEditFormBase.class.php

示例3: __get

 /**
  * 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
              */
//.........这里部分代码省略.........
开发者ID:heshuai64,项目名称:einv2,代码行数:101,代码来源:RoleModuleAuthorizationGen.class.php

示例4: __get

 /**
  * 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) {
//.........这里部分代码省略.........
开发者ID:proxymoron,项目名称:tracmor,代码行数:101,代码来源:RoleEntityQtypeBuiltInAuthorizationGen.class.php

示例5: __get

 /**
  * 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':
//.........这里部分代码省略.........
开发者ID:proxymoron,项目名称:tracmor,代码行数:101,代码来源:RoleGen.class.php

示例6: __get

 /**
  * 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;
//.........这里部分代码省略.........
开发者ID:heshuai64,项目名称:einv2,代码行数:101,代码来源:ShippingAccountGen.class.php

示例7: __get

 /**
  * 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;
             }
     }
 }
开发者ID:heshuai64,项目名称:einv2,代码行数:94,代码来源:DatagridColumnPreferenceGen.class.php

示例8: __get

 /**
  * 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[]
//.........这里部分代码省略.........
开发者ID:proxymoron,项目名称:tracmor,代码行数:101,代码来源:NotificationGen.class.php

示例9: __get

 /**
  * 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;
//.........这里部分代码省略.........
开发者ID:proxymoron,项目名称:tracmor,代码行数:101,代码来源:TransactionGen.class.php

示例10: __get

 /**
  * 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);
                 }
//.........这里部分代码省略.........
开发者ID:heshuai64,项目名称:einv2,代码行数:101,代码来源:CompanyGen.class.php

示例11: __get

 /**
  * 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':
             /**
//.........这里部分代码省略.........
开发者ID:heshuai64,项目名称:einv2,代码行数:101,代码来源:AuditGen.class.php

示例12: __get

 /**
  * 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;
             }
             ////////////////////////////
//.........这里部分代码省略.........
开发者ID:proxymoron,项目名称:tracmor,代码行数:101,代码来源:InventoryLocationGen.class.php

示例13: __get


//.........这里部分代码省略.........
              */
             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();
开发者ID:heshuai64,项目名称:einv2,代码行数:67,代码来源:InventoryTransactionGen.class.php

示例14: __get

 /**
  * 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) {
//.........这里部分代码省略.........
开发者ID:proxymoron,项目名称:tracmor,代码行数:101,代码来源:AssetTransactionCheckoutGen.class.php

示例15: __get

 /**
  * 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[]
//.........这里部分代码省略.........
开发者ID:proxymoron,项目名称:tracmor,代码行数:101,代码来源:CustomFieldValueGen.class.php


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