OXID eShop CE  4.9.6
 All Classes Files Functions Variables Pages
oxAdminView Class Reference
+ Inheritance diagram for oxAdminView:
+ Collaboration diagram for oxAdminView:

Public Member Functions

 __construct ()
 init ()
 addGlobalParams ($oShop=null)
 getServiceUrl ($sLangAbbr=null)
 render ()
 save ()
 resetContentCache ($blForceReset=null)
 resetCounter ($sCounterType, $sValue=null)
 getNavigation ()
 getViewId ()
 chshp ()
 resetSeoData ($sShopId)
 getPreviewId ()
 getEditObjectId ()
 setEditObjectId ($sId)
- Public Member Functions inherited from oxView
 setViewParameters ($aParams=null)
 getViewParameter ($sKey)
 setIsCallForCache ($blIsCallForCache=null)
 getIsCallForCache ()
 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 ()
 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)
 getConfig ()
 setConfig ($oConfig)
 getSession ()
 setSession ($oSession)
 getUser ()
 setUser ($oUser)
 isAdmin ()
 setAdminMode ($blAdmin)

Protected Member Functions

 _getEditShop ($sShopId)
 _getServiceProtocol ()
 _getShopVersionNr ()
 _setupNavigation ($sNode)
 _addNavigationHistory ($sNode)
 _getMaxUploadFileInfo ($iMaxFileSize, $blFormatted=false)
 _resetContentCache ()
 _allowAdminEdit ($sUserId)
 _getCountryByCode ($sCountryCode)
 _authorize ()
- Protected Member Functions inherited from oxView
 _executeNewAction ($sNewAction)

Protected Attributes

 $_aSumType
 $_sThisTemplate = null
 $_iDefEdit = 0
 $_iEditLang = 0
 $_sShopTitle = " - "
 $_sShopVersion = null
 $_sServiceUrl = null
 $_oEditShop = null
 $_sEditObjectId = null
- Protected Attributes inherited from oxView
 $_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 $_oNaviTree = null
static $_sAuthUserRights = null
- Static Protected Attributes inherited from oxView
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

Main "view" class. Organizes multilanguage, parameters fetching, DB managing, file checking and processing, etc.

Definition at line 8 of file oxadminview.php.

Constructor & Destructor Documentation

oxAdminView::__construct ( )

Creates oxshop object and loads shop data, sets title of shop

Reimplemented from oxSuperCfg.

Reimplemented in DynExportBase, Diagnostics_Main, VoucherSerie_Export, Module_Config, and Login.

Definition at line 96 of file oxadminview.php.

Member Function Documentation

oxAdminView::_addNavigationHistory (   $sNode)
protected

Store navigation history parameters to cookie

Parameters
string$sNodeactive view id

Definition at line 297 of file oxadminview.php.

oxAdminView::_allowAdminEdit (   $sUserId)
protected

Checks if current $sUserId user is not an admin and checks if user is able to be edited by logged in user. This method does not perform full rights check.

Parameters
string$sUserIduser id
Returns
bool

Definition at line 473 of file oxadminview.php.

oxAdminView::_authorize ( )
protected

performs authorization of admin user

Returns
boolean

Reimplemented in Login.

Definition at line 523 of file oxadminview.php.

oxAdminView::_getCountryByCode (   $sCountryCode)
protected

Get english country name by country iso alpha 2 code

Parameters
string$sCountryCodeCountry code
Returns
boolean

Definition at line 487 of file oxadminview.php.

oxAdminView::_getEditShop (   $sShopId)
protected

Returns (cached) shop object

Parameters
object$sShopIdshop id
Returns
oxshop

Definition at line 117 of file oxadminview.php.

oxAdminView::_getMaxUploadFileInfo (   $iMaxFileSize,
  $blFormatted = false 
)
protected

Returns maximum allowed size of upload file and formatted size equivalent

Parameters
int$iMaxFileSizerecommended maximum size of file (normalu value is taken from php ini, otherwise sets 2MB)
bool$blFormattedReturn formated
Returns
array

Definition at line 370 of file oxadminview.php.

oxAdminView::_getServiceProtocol ( )
protected

Returns service url protocol: "https" is admin works in ssl mode, "http" if no ssl

Returns
string

Definition at line 205 of file oxadminview.php.

oxAdminView::_getShopVersionNr ( )
protected

Returns shop version

Returns
string

Definition at line 249 of file oxadminview.php.

oxAdminView::_resetContentCache ( )
protected

Resets cache.

Definition at line 461 of file oxadminview.php.

oxAdminView::_setupNavigation (   $sNode)
protected

Sets-up navigation parameters

Parameters
string$sNodeactive view id

Reimplemented in oxAdminList, oxAdminDetails, Newsletter_Send, and PriceAlarm_Send.

Definition at line 268 of file oxadminview.php.

oxAdminView::addGlobalParams (   $oShop = null)

Sets some global parameters to Smarty engine (such as self link, etc.), returns modified shop object.

Parameters
object$oShopObject to modify some parameters
Returns
object

Reimplemented from oxView.

Definition at line 166 of file oxadminview.php.

oxAdminView::chshp ( )

Changing active shop

Reimplemented in Navigation.

Definition at line 561 of file oxadminview.php.

oxAdminView::getEditObjectId ( )

Returns active/editable object id

Returns
string

Reimplemented in Shop_Config.

Definition at line 601 of file oxadminview.php.

oxAdminView::getNavigation ( )

Returns navigation object

Returns
oxnavigationtree

Definition at line 537 of file oxadminview.php.

oxAdminView::getPreviewId ( )

Returns id which is used for product preview in shop during administration

Returns
string

Definition at line 591 of file oxadminview.php.

oxAdminView::getServiceUrl (   $sLangAbbr = null)

Returns service URL

Parameters
string$sLangAbbrlanguage abbr.
Returns
string

Definition at line 217 of file oxadminview.php.

oxAdminView::getViewId ( )

Current view ID getter helps to identify navigation position

Returns
string

Reimplemented from oxView.

Reimplemented in DynExportBase, Login, VoucherSerie_Main, dyn_trusted_ratings, dyn_trusted, Dynscreen, dyn_econda, and dyn_interface.

Definition at line 551 of file oxadminview.php.

oxAdminView::init ( )

Sets some shop configuration parameters (such as language), creates some list object (depends on subclass) and executes parent method parent::Init().

Reimplemented from oxView.

Reimplemented in Shop_List, and List_User.

Definition at line 137 of file oxadminview.php.

oxAdminView::render ( )

Executes parent method parent::render(), passes configuration data to Smarty engine.

Returns
string

Reimplemented from oxView.

Reimplemented in oxAdminList, DynExportBase, Diagnostics_Main, Language_List, GenImport_Main, User_Payment, Shop_List, Category_List, List_Order, Order_Article, AdminGuestbook_List, Language_Main, User_List, dyn_trusted, VoucherSerie_Main, List_Review, Actions_List, Order_List, Country_List, GenExport_Main, List_User, Article_List, Content_List, Article_Files, UserGroup_List, Wrapping_List, Shop_Config, Module_Config, Article_Extend, oxAdminDetails, SelectList_Main, Shop_Main, dyn_trusted_ratings, Login, Newsletter_Selection, User_Address, Article_Variant, Module_List, Newsletter_Send, Order_Downloads, PriceAlarm_Send, Shop_System, Payment_Main, Shop_Seo, Theme_Config, User_Main, Article_Crossselling, Delivery_Articles, News_Main, VoucherSerie_Groups, Actions_Main, Article_Attribute, Article_Main, Article_Overview, Article_Pictures, Article_Review, Article_Stock, Attribute_Category, Attribute_Main, Delivery_Main, Delivery_Users, DeliverySet_Main, DeliverySet_Payment, DeliverySet_Users, Discount_Articles, Discount_Users, dyn_econda, Dynscreen_List, Module, Module_Main, Newsletter_Main, Newsletter_Plain, Newsletter_Preview, Order_Address, Order_Overview, Order_Package, Order_Remark, Payment_Country, PriceAlarm_Mail, PriceAlarm_Main, Shop, Statistic_Main, Theme, Theme_Main, User_Remark, UserGroup_Main, Wrapping_Main, Adminguestbook_Main, Adminlinks_Main, Category_Order, Category_Pictures, Category_Text, Content_Main, Country_Main, Discount_Main, Manufacturer_Main, Statistic_Service, SystemInfo, Theme_List, Tools, Tools_Main, User_Article, User_Extend, Vendor_Main, Module_SortList, Object_Seo, sysreq_main, Article_Userdef, News_Text, and User_Overview.

Definition at line 320 of file oxadminview.php.

oxAdminView::resetContentCache (   $blForceReset = null)

Reset output cache

Parameters
bool$blForceResetif true, forces reset

Definition at line 415 of file oxadminview.php.

oxAdminView::resetCounter (   $sCounterType,
  $sValue = null 
)

Resets counters values from cache. Resets price category articles, category articles, vendor articles, manufacturer articles count.

Parameters
string$sCounterTypecounter type
string$sValuereset value

Definition at line 434 of file oxadminview.php.

oxAdminView::resetSeoData (   $sShopId)

Marks seo entires as expired, cleans up tag clouds cache

Parameters
string$sShopIdShop id

Definition at line 573 of file oxadminview.php.

oxAdminView::setEditObjectId (   $sId)

Sets editable object id

Parameters
string$sIdobject id

Definition at line 617 of file oxadminview.php.

Member Data Documentation

oxAdminView::$_aSumType
protected
Initial value:
array(
0 => 'abs',
1 => '%',
2 => 'itm'
)

Definition at line 16 of file oxadminview.php.

oxAdminView::$_iDefEdit = 0
protected

Definition at line 35 of file oxadminview.php.

oxAdminView::$_iEditLang = 0
protected

Definition at line 49 of file oxadminview.php.

oxAdminView::$_oEditShop = null
protected

Active shop object

Returns

Definition at line 84 of file oxadminview.php.

oxAdminView::$_oNaviTree = null
staticprotected

Definition at line 42 of file oxadminview.php.

oxAdminView::$_sAuthUserRights = null
staticprotected

Definition at line 77 of file oxadminview.php.

oxAdminView::$_sEditObjectId = null
protected

Definition at line 91 of file oxadminview.php.

oxAdminView::$_sServiceUrl = null
protected

Definition at line 70 of file oxadminview.php.

oxAdminView::$_sShopTitle = " - "
protected

Definition at line 56 of file oxadminview.php.

oxAdminView::$_sShopVersion = null
protected

Definition at line 63 of file oxadminview.php.

oxAdminView::$_sThisTemplate = null
protected

Definition at line 27 of file oxadminview.php.


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