OXID eShop CE  4.8.12
 All Classes Files Functions Variables Pages
account_user.php
Go to the documentation of this file.
1 <?php
2 
11 class Account_User extends Account
12 {
18  protected $_sThisTemplate = 'page/account/user.tpl';
19 
27  public function render()
28  {
29 
31 
32  // is logged in ?
33  if ( !( $this->getUser() ) ) {
34  return $this->_sThisTemplate = $this->_sThisLoginTemplate;
35  }
36 
37  return $this->_sThisTemplate;
38  }
39 
45  public function showShipAddress()
46  {
47  return oxSession::getVar( 'blshowshipaddress' );
48  }
49 
55  public function getBreadCrumb()
56  {
57  $aPaths = array();
58  $aPath = array();
59 
60  $aPath['title'] = oxRegistry::getLang()->translateString( 'MY_ACCOUNT', oxRegistry::getLang()->getBaseLanguage(), false );
61  $aPath['link'] = oxRegistry::get("oxSeoEncoder")->getStaticUrl( $this->getViewConfig()->getSelfLink() . 'cl=account' );
62  $aPaths[] = $aPath;
63 
64  $aPath['title'] = oxRegistry::getLang()->translateString( 'BILLING_SHIPPING_SETTINGS', oxRegistry::getLang()->getBaseLanguage(), false );
65  $aPath['link'] = $this->getLink();
66  $aPaths[] = $aPath;
67 
68  return $aPaths;
69  }
70 }