OXID eShop CE  4.10.7
 All Classes Namespaces Files Functions Variables Pages
oxView Class Reference
+ Inheritance diagram for oxView:
+ Collaboration diagram for oxView:

Public Member Functions

 init ()
 setViewParameters ($aParams=null)
 getViewParameter ($sKey)
 setIsCallForCache ($blIsCallForCache=null)
 getIsCallForCache ()
 getViewId ()
 render ()
 addGlobalParams ($oShop=null)
 addTplParam ($sPara, $sValue)
 getBelboonParam ()
 getViewConfig ()
 getTemplateName ()
 setTemplateName ($sTemplate)
 setClassName ($sClassName)
 getClassName ()
 setFncName ($sFncName)
 getFncName ()
 setViewData ($aViewData=null)
 getViewData ()
 getViewDataElement ($sParamId=null)
 setClassLocation ($sClassLocation=null)
 getClassLocation ()
 setThisAction ($sThisAction=null)
 getThisAction ()
 setParent ($oParent=null)
 getParent ()
 setIsComponent ($blIsComponent=null)
 getIsComponent ()
 executeFunction ($sFunction)
 getAdditionalParams ()
 getTrustedShopId ()
 getTSExcellenceId ()
 getCharSet ()
 getShopVersion ()
 getShopEdition ()
 getRevision ()
 getPackageInfo ()
 getShopFullEdition ()
 isDemoVersion ()
 isBetaVersion ()
 isRCVersion ()
 showBetaNote ()
 isDemoShop ()
 showNewsletter ()
 setShowNewsletter ($blShow)
 getShopLogo ()
 setShopLogo ($sLogo)
 getActCategory ()
 setActCategory ($oCategory)
 getCategoryId ()
 setCategoryId ($sCategoryId)
 getErrorDestination ()
 getActionClassName ()
 isConnectedWithFb ()
 getFbUserId ()
 showFbConnectToAccountMsg ()
 isMall ()
 showRdfa ()
 getSidForWidget ()
- Public Member Functions inherited from oxSuperCfg
 __call ($sMethod, $aArgs)
 __construct ()
 getConfig ()
 setConfig ($oConfig)
 getSession ()
 setSession ($oSession)
 getUser ()
 setUser ($oUser)
 isAdmin ()
 setAdminMode ($blAdmin)

Protected Member Functions

 _executeNewAction ($sNewAction)

Protected Attributes

 $_aViewData = array()
 $_sClassLocation = null
 $_sThisAction = null
 $_oParent = null
 $_blIsComponent = false
 $_sThisTemplate = null
 $_sViewId = null
 $_sClass = null
 $_sFnc = null
 $_sTrustedShopId = null
 $_sTSExcellenceId = null
 $_sCharSet = null
 $_sVersion = null
 $_blDemoVersion = null
 $_blDemoShop = null
 $_iNewsStatus = null
 $_sShopLogo = null
 $_sCategoryId = null
 $_oClickCat = null
 $_blIsCallForCache = false
 $_oViewConf = null

Static Protected Attributes

static $_blExecuted = false
- Static Protected Attributes inherited from oxSuperCfg
static $_oConfig = null
static $_oSession = null
static $_oRights = null
static $_oActUser = null
static $_blIsAdmin = null

Detailed Description

Base view class. Collects and passes data to template engine, sets some global configuration parameters.

Definition at line 7 of file oxview.php.

Member Function Documentation

oxView::_executeNewAction (   $sNewAction)
protected

Formats header for new controller action

Input example: "view_name?param1=val1&param2=val2" => "cl=view_name&param1=val1&param2=val2"

Parameters
string$sNewActionnew action params
Exceptions
oxSystemComponentExceptionsystem component exception

Definition at line 534 of file oxview.php.

oxView::addGlobalParams (   $oShop = null)

Sets and caches default parameters for shop object and returns it.

Template variables: isdemoversion, shop, isdemoversion, version, iShopID_TrustedShops, urlsign

Parameters
oxShop$oShopcurrent shop object
Returns
object $oShop current shop object

Reimplemented in oxUBase, and oxAdminView.

Definition at line 257 of file oxview.php.

oxView::addTplParam (   $sPara,
  $sValue 
)

Sets value to parameter used by template engine.

Parameters
string$sParaname of parameter to pass
string$sValuevalue of parameter

Definition at line 281 of file oxview.php.

oxView::executeFunction (   $sFunction)

Executes method (creates class and then executes). Returns executed function result.

Parameters
string$sFunctionname of function to execute
Exceptions
oxSystemComponentExceptionsystem component exception

Definition at line 499 of file oxview.php.

oxView::getActCategory ( )

Returns active category set by categories component; if category is not set by component - will create category object and will try to load by id passed by request

Returns
oxCategory

Reimplemented in Article_Seo.

Definition at line 862 of file oxview.php.

oxView::getActionClassName ( )

Returns name of a view class, which will be active for an action (given a generic fnc, e.g. logout)

Returns
string

Reimplemented in Thankyou.

Definition at line 926 of file oxview.php.

oxView::getAdditionalParams ( )

Template variable getter. Returns additional params for url

Returns
string

Reimplemented in oxUBase, RecommList, and Review.

Definition at line 586 of file oxview.php.

oxView::getBelboonParam ( )

Returns belboon parameter

Returns
string $sBelboon

Definition at line 291 of file oxview.php.

oxView::getCategoryId ( )

Get category ID

Returns
string

Definition at line 894 of file oxview.php.

oxView::getCharSet ( )

Returns active charset

Returns
string

Definition at line 653 of file oxview.php.

oxView::getClassLocation ( )

Get location of a executed class file

Returns
string

Definition at line 426 of file oxview.php.

oxView::getClassName ( )

Returns class name of current class

Returns
string

Definition at line 352 of file oxview.php.

oxView::getErrorDestination ( )

Returns a name of the view variable containing the error/exception messages

Reimplemented in Basket.

Definition at line 916 of file oxview.php.

oxView::getFbUserId ( )

Gets get Facebook user id

Deprecated:
since v5.3 (2016-05-20); Facebook will be extracted into module.
Returns
int

Definition at line 958 of file oxview.php.

oxView::getFncName ( )

Returns name of current action function

Returns
string

Definition at line 372 of file oxview.php.

oxView::getIsCallForCache ( )

Get cache sign to enable/disable use of cache

Returns
bool

Definition at line 222 of file oxview.php.

oxView::getIsComponent ( )

Get flag if this object is a component

Returns
bool

Definition at line 486 of file oxview.php.

oxView::getPackageInfo ( )

Returns shop package info

Returns
string

Definition at line 701 of file oxview.php.

oxView::getParent ( )

Get parent object

Returns
null

Definition at line 466 of file oxview.php.

oxView::getRevision ( )

Returns shop revision

Returns
string

Definition at line 691 of file oxview.php.

oxView::getShopEdition ( )

Returns shop edition

Returns
string

Definition at line 681 of file oxview.php.

oxView::getShopFullEdition ( )

Returns shop full edition

Returns
string

Definition at line 711 of file oxview.php.

oxView::getShopLogo ( )

Template variable getter. Returns shop logo from config option

Deprecated:
since v5.1.0 (2013-09-23); Use oxViewConfig::getShopLogo().
Returns
string

Definition at line 834 of file oxview.php.

oxView::getShopVersion ( )

Returns shop version

Returns
string

Definition at line 667 of file oxview.php.

oxView::getSidForWidget ( )

Returns session ID, but only in case it is needed to be included for widget calls. This basically happens on session change, when session cookie is not equals to the actual session ID.

Returns
string

Definition at line 1016 of file oxview.php.

oxView::getTemplateName ( )

Returns current view template file name

Returns
string

Reimplemented in aList.

Definition at line 322 of file oxview.php.

oxView::getThisAction ( )

Get name of running class method

Returns
string

Definition at line 446 of file oxview.php.

oxView::getTrustedShopId ( )

Returns shop id in classic trusted shops

Deprecated:
since 5.3.0 (2016.04.19); Use Trusted Shops Module instead.
Returns
string

Definition at line 598 of file oxview.php.

oxView::getTSExcellenceId ( )

Returns shop id in trusted shops if excellence product is ordered

Deprecated:
since 5.3.0 (2016.04.19); Use Trusted Shops Module instead.
Returns
string

Definition at line 631 of file oxview.php.

oxView::getViewConfig ( )

Returns view config object

Returns
oxViewConfig

Definition at line 308 of file oxview.php.

oxView::getViewData ( )

Get view data

Returns
array

Definition at line 392 of file oxview.php.

oxView::getViewDataElement (   $sParamId = null)

Get view data single array element

Parameters
string$sParamIdview data array key
Returns
mixed

Definition at line 404 of file oxview.php.

oxView::getViewId ( )

Returns view ID (currently it returns NULL)

Reimplemented in DynExportBase, oxUBase, oxAdminView, Details, Login, VoucherSerie_Main, aList, dyn_trusted_ratings, dyn_trusted, Review, Content, Dynscreen, dyn_econda, and dyn_interface.

Definition at line 230 of file oxview.php.

oxView::getViewParameter (   $sKey)

Get parameters to controllers

Parameters
string$sKeyparameter key
Returns
string

Definition at line 200 of file oxview.php.

oxView::init ( )

Initiates all components stored, executes oxView::addGlobalParams.

Reimplemented in oxUBase, oxAdminView, Search, Review, order, Payment, Thankyou, oxcmp_user, oxcmp_basket, oxcmp_categories, oxcmp_cur, Shop_List, oxWidget, List_User, and Download.

Definition at line 172 of file oxview.php.

oxView::isBetaVersion ( )

Returns if current shop is beta version.

Returns
bool

Definition at line 746 of file oxview.php.

oxView::isConnectedWithFb ( )

Checks if user is connected via Facebook connect

Deprecated:
since v5.3 (2016-05-20); Facebook will be extracted into module.
Returns
bool

Definition at line 938 of file oxview.php.

oxView::isDemoShop ( )

Returns if current shop is demo shop

Returns
string

Definition at line 794 of file oxview.php.

oxView::isDemoVersion ( )

Returns if current shop is demo version

Returns
string

Definition at line 732 of file oxview.php.

oxView::isMall ( )

Returns if shop is mall

Returns
bool

Definition at line 993 of file oxview.php.

oxView::isRCVersion ( )

Returns if current shop is release candidate version.

Returns
bool

Definition at line 762 of file oxview.php.

oxView::render ( )

Returns name of template to render

Returns
string current view template file name

Reimplemented in oxUBase, oxwArticleDetails, oxAdminView, Details, oxcmp_utils, Search, oxAdminList, oxcmp_categories, aList, Review, order, Payment, DynExportBase, Content, Account, Start, Thankyou, Account_Wishlist, GuestBook, RecommList, Basket, oxcmp_cur, oxcmp_user, Diagnostics_Main, oxcmp_basket, ManufacturerList, VendorList, Invite, Language_List, User, Account_Recommlist, GenImport_Main, Account_Noticelist, Tag, User_Payment, Rss, Account_Order, Shop_List, oxwArticleBox, Category_List, List_Order, Register, Language_Main, Order_Article, oxwRating, AdminGuestbook_List, Country_List, dyn_trusted, User_List, Account_Newsletter, VoucherSerie_Main, List_Review, Shop_License, Actions_List, Order_List, Account_Password, GenExport_Main, List_User, oxwReview, Article_List, Content_List, RecommAdd, oxwCategoryTree, Article_Files, UserGroup_List, Wrapping_List, Shop_Config, Module_Config, Account_User, oxcmp_news, dyn_trusted_ratings, Order_Main, Article_Extend, oxAdminDetails, SelectList_Main, Shop_Main, Login, Newsletter_Selection, User_Address, Download, oxcmp_lang, oxcmp_shop, Article_Variant, Module_List, Newsletter_Send, Order_Downloads, PriceAlarm_Send, Shop_System, Tags, Payment_Main, ClearCookies, oxwCookieNote, Shop_Seo, Navigation, News_Main, dyn_econda, Dynscreen_List, Order_Package, Statistic_Main, Theme_Config, User_Main, Adminguestbook_Main, Article_Crossselling, Delivery_Articles, Statistic_Service, VoucherSerie_Groups, Actions_Main, Article_Attribute, Article_Main, Article_Overview, Article_Pictures, Article_Review, Article_Stock, Attribute_Category, Attribute_Main, Category_Main, Delivery_Main, Delivery_Users, DeliverySet_Main, DeliverySet_Payment, DeliverySet_Users, Discount_Articles, Discount_Users, Module, Module_Main, Newsletter_Main, Newsletter_Plain, Newsletter_Preview, Order_Address, Order_Overview, Order_Remark, Payment_Country, PriceAlarm_Mail, PriceAlarm_Main, Shop, Theme, Theme_Main, User_Remark, UserGroup_Main, Wrapping_Main, Adminlinks_Main, Category_Order, Category_Pictures, Category_Text, Content_Main, Country_Main, Discount_Main, Manufacturer_Main, News_Text, SystemInfo, Theme_List, Tools, Tools_Main, User_Article, User_Extend, Vendor_Main, Module_SortList, Object_Seo, sysreq_main, Tpl, Article_Userdef, and User_Overview.

Definition at line 239 of file oxview.php.

oxView::setActCategory (   $oCategory)

Active category setter

Parameters
oxCategory$oCategoryactive category

Definition at line 884 of file oxview.php.

oxView::setCategoryId (   $sCategoryId)

Category ID setter

Parameters
string$sCategoryIdId of category to cache

Definition at line 908 of file oxview.php.

oxView::setClassLocation (   $sClassLocation = null)

Set location of a executed class file

Parameters
string$sClassLocationlocation of a executed class file

Definition at line 416 of file oxview.php.

oxView::setClassName (   $sClassName)

Current view class name setter.

Parameters
string$sClassNamecurrent view class name

Definition at line 342 of file oxview.php.

oxView::setFncName (   $sFncName)

Set current view action function name

Parameters
string$sFncNameaction function name

Definition at line 362 of file oxview.php.

oxView::setIsCallForCache (   $blIsCallForCache = null)

Set cache sign to enable/disable use of cache

Parameters
bool$blIsCallForCachecache sign to enable/disable use of cache

Definition at line 212 of file oxview.php.

oxView::setIsComponent (   $blIsComponent = null)

Set flag if this object is a component or not

Parameters
bool$blIsComponentflag if this object is a component

Definition at line 476 of file oxview.php.

oxView::setParent (   $oParent = null)

Set parent object. If this is a component we will have our parent view here.

Parameters
object$oParentparent object

Definition at line 456 of file oxview.php.

oxView::setShopLogo (   $sLogo)

Sets shop logo

Parameters
string$sLogoshop logo url
Deprecated:
since v5.1.0 (2013-09-23); Use oxViewConfig::setShopLogo().

Definition at line 850 of file oxview.php.

oxView::setShowNewsletter (   $blShow)

Sets if to show newsletter

Parameters
bool$blShowif TRUE - newsletter subscription box will be shown

Definition at line 822 of file oxview.php.

oxView::setTemplateName (   $sTemplate)

Sets current view template file name

Parameters
string$sTemplatetemplate name

Definition at line 332 of file oxview.php.

oxView::setThisAction (   $sThisAction = null)

Set name of running class method

Parameters
string$sThisActionname of running class method

Definition at line 436 of file oxview.php.

oxView::setViewData (   $aViewData = null)

Set array of data that is passed to template engine - array( "varName" => "varValue")

Parameters
array$aViewDataarray of data that is passed to template engine

Definition at line 382 of file oxview.php.

oxView::setViewParameters (   $aParams = null)

Add parameters to controllers

Parameters
array$aParamsview parameters array.

Definition at line 188 of file oxview.php.

oxView::showBetaNote ( )

Template variable getter. Returns if beta note can be displayed (for header.tpl)

Returns
bool

Definition at line 778 of file oxview.php.

oxView::showFbConnectToAccountMsg ( )

Returns true if popup message about connecting your existing account to Facebook account must be shown

Deprecated:
since v5.3 (2016-05-20); Facebook will be extracted into module.
Returns
bool

Definition at line 975 of file oxview.php.

oxView::showNewsletter ( )

Template variable getter. Returns if newsletter can be displayed (for _right.tpl)

Returns
integer

Definition at line 808 of file oxview.php.

oxView::showRdfa ( )

Returns if page has rdfa

Returns
bool

Reimplemented in Details, and Content.

Definition at line 1003 of file oxview.php.

Member Data Documentation

oxView::$_aViewData = array()
protected

Definition at line 15 of file oxview.php.

oxView::$_blDemoShop = null
protected

Definition at line 124 of file oxview.php.

oxView::$_blDemoVersion = null
protected

Definition at line 117 of file oxview.php.

oxView::$_blExecuted = false
staticprotected

Definition at line 78 of file oxview.php.

oxView::$_blIsCallForCache = false
protected

Definition at line 159 of file oxview.php.

oxView::$_blIsComponent = false
protected

Definition at line 43 of file oxview.php.

oxView::$_iNewsStatus = null
protected

Definition at line 131 of file oxview.php.

oxView::$_oClickCat = null
protected

Definition at line 152 of file oxview.php.

oxView::$_oParent = null
protected

Definition at line 36 of file oxview.php.

oxView::$_oViewConf = null
protected

Definition at line 166 of file oxview.php.

oxView::$_sCategoryId = null
protected

Definition at line 145 of file oxview.php.

oxView::$_sCharSet = null
protected

Definition at line 103 of file oxview.php.

oxView::$_sClass = null
protected

Definition at line 64 of file oxview.php.

oxView::$_sClassLocation = null
protected

Definition at line 22 of file oxview.php.

oxView::$_sFnc = null
protected

Definition at line 71 of file oxview.php.

oxView::$_sShopLogo = null
protected

Definition at line 138 of file oxview.php.

oxView::$_sThisAction = null
protected

Definition at line 29 of file oxview.php.

oxView::$_sThisTemplate = null
protected

Definition at line 50 of file oxview.php.

oxView::$_sTrustedShopId = null
protected

Definition at line 87 of file oxview.php.

oxView::$_sTSExcellenceId = null
protected

Definition at line 96 of file oxview.php.

oxView::$_sVersion = null
protected

Definition at line 110 of file oxview.php.

oxView::$_sViewId = null
protected

Definition at line 57 of file oxview.php.


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