Public Member Functions | Protected Member Functions | Protected Attributes

User Class Reference

Inheritance diagram for User:
Collaboration diagram for User:

List of all members.

Public Member Functions

 render ()
 getShowNoRegOption ()
 getLoginOption ()
 getCountryList ()
 getOrderRemark ()
 isNewsSubscribed ()
 setShowShipAddress ($blShowShipAddress)
 showShipAddress ()
 getDelAddress ()

Protected Member Functions

 _getWishListId ()
 _addFakeAddress ($oAddresses)
 _getSelectedAddress ()
 _fillFormWithFacebookData ()

Protected Attributes

 $_sThisTemplate = 'user.tpl'
 $_blIsOrderStep = true
 $_blShowNoRegOpt = null
 $_sSelectedAddress = null
 $_iOption = null
 $_oCountryList = null
 $_sOrderRemark = null
 $_sWishId = null

Detailed Description

User details. Collects and arranges user object data (information, like shipping address, etc.).

Definition at line 7 of file user.php.


Member Function Documentation

User._addFakeAddress ( oAddresses  )  [protected]

Generats fake address for selection

Parameters:
object $oAddresses user address list
Returns:
null

Reimplemented in Register.

Definition at line 136 of file user.php.

User._fillFormWithFacebookData (  )  [protected]

Fills user form with date taken from Facebook

Returns:
null

Definition at line 370 of file user.php.

User._getSelectedAddress (  )  [protected]

Returns active user object

Returns:
object Returns selected delivery address
string

Definition at line 178 of file user.php.

User._getWishListId (  )  [protected]

Checks if product from wishlist is added

Returns:
$sWishId

Definition at line 115 of file user.php.

User.getCountryList (  ) 

Template variable getter. Returns country list

Returns:
object

Definition at line 226 of file user.php.

User.getDelAddress (  ) 

Template variable getter. Returns shipping address

Returns:
bool

Reimplemented in Register.

Definition at line 347 of file user.php.

User.getLoginOption (  ) 

Template variable getter. Returns user login option

Returns:
integer

Definition at line 207 of file user.php.

User.getOrderRemark (  ) 

Template variable getter. Returns order remark

Returns:
string

Definition at line 245 of file user.php.

User.getShowNoRegOption (  ) 

Template variable getter. Returns reverse option blOrderDisWithoutReg

Returns:
bool

Definition at line 194 of file user.php.

User.isNewsSubscribed (  ) 

Template variable getter. Returns if user subscribed for newsletter

Returns:
bool

Definition at line 263 of file user.php.

User.render (  ) 

Loads customer basket object form session (oxsession.getBasket()), passes action article/basket/country list to template engine. If available - loads user delivery address data (oxaddress). If user is connected using Facebook connect calls user._fillFormWithFacebookData to prefill form data with data taken from user Facebook account. Returns name template file to render user._sThisTemplate.

Returns:
string $this->_sThisTemplate current template file name

Reimplemented from oxUBase.

Reimplemented in Register.

Definition at line 67 of file user.php.

User.setShowShipAddress ( blShowShipAddress  ) 

Sets if show user shipping address

Parameters:
bool $blShowShipAddress if TRUE - shipping address is shown
Deprecated:
Returns:
null

Definition at line 291 of file user.php.

User.showShipAddress (  ) 

Template variable getter. Checks to show or not shipping address entry form

Returns:
bool

Definition at line 302 of file user.php.


Member Data Documentation

User.$_blIsOrderStep = true [protected]

Reimplemented from oxUBase.

Reimplemented in Register.

Definition at line 19 of file user.php.

User.$_blShowNoRegOpt = null [protected]

Definition at line 25 of file user.php.

User.$_iOption = null [protected]

Definition at line 37 of file user.php.

User.$_oCountryList = null [protected]

Definition at line 43 of file user.php.

User.$_sOrderRemark = null [protected]

Definition at line 49 of file user.php.

User.$_sSelectedAddress = null [protected]

Definition at line 31 of file user.php.

User.$_sThisTemplate = 'user.tpl' [protected]

Reimplemented from oxView.

Reimplemented in Register.

Definition at line 13 of file user.php.

User.$_sWishId = null [protected]

Definition at line 55 of file user.php.


The documentation for this class was generated from the following file: