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

Public Member Functions

 render ()
 save ()
 addToCategory ($sCatID, $sOXID)
 copyArticle ($sOldId=null, $sNewId=null, $sParentId=null)
 saveinnlang ()
 addDefaultValues ($aParams)
 getCategoryList ()
 getVendorList ()
 getManufacturerList ()
- Public Member Functions inherited from oxAdminDetails
 resetNrOfCatArticles ()
 resetNrOfVendorArticles ()
 resetNrOfManufacturerArticles ()
 changeFolder ()
- Public Member Functions inherited from oxAdminView
 __construct ()
 init ()
 addGlobalParams ($oShop=null)
 getServiceUrl ($sLangAbbr=null)
 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 ()
 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)
 getConfig ()
 setConfig ($oConfig)
 getSession ()
 setSession ($oSession)
 getUser ()
 setUser ($oUser)
 isAdmin ()
 setAdminMode ($blAdmin)

Protected Member Functions

 _getEditValue ($oObject, $sField)
 _processLongDesc ($sValue)
 _resetCategoriesCounter ($sArticleId)
 _setTags ($sTags, $sArticleId)
 _copyCategories ($sOldId, $sNewId)
 _copyAttributes ($sOldId, $sNewId)
 _copyFiles ($sOldId, $sNewId)
 _copySelectlists ($sOldId, $sNewId)
 _copyCrossseling ($sOldId, $sNewId)
 _copyAccessoires ($sOldId, $sNewId)
 _copyStaffelpreis ($sOldId, $sNewId)
 _copyArtExtends ($sOldId, $sNewId)
 _formJumpList ($oArticle, $oParentArticle)
 _getTitle ($oObj)
- Protected Member Functions inherited from oxAdminDetails
 _getTextEditor ($iWidth, $iHeight, $oObject, $sField, $sStylesheet=null)
 _processEditValue ($sValue)
 _getPlainEditor ($iWidth, $iHeight, $oObject, $sField)
 _generateTextEditor ($iWidth, $iHeight, $oObject, $sField, $sStylesheet=null)
 _createCategoryTree ($sTplVarName, $sEditCatId= '', $blForceNonCache=false, $iTreeShopId=null)
 _getCategoryTree ($sTplVarName, $sSelectedCatId, $sEditCatId= '', $blForceNonCache=false, $iTreeShopId=null)
 _setupNavigation ($sNode)
 _resetCounts ($aIds)
- Protected Member Functions inherited from oxAdminView
 _getEditShop ($sShopId)
 _getServiceProtocol ()
 _getShopVersionNr ()
 _addNavigationHistory ($sNode)
 _getMaxUploadFileInfo ($iMaxFileSize, $blFormatted=false)
 _allowAdminEdit ($sUserId)
 _getCountryByCode ($sCountryCode)
 _authorize ()
- Protected Member Functions inherited from oxView
 _executeNewAction ($sNewAction)

Additional Inherited Members

- Protected Attributes inherited from oxAdminDetails
 $_oEditor = null
- Static Protected Attributes inherited from oxAdminView
static $_oNaviTree = null
static $_sAuthUserRights = null

Detailed Description

Admin article main manager. Collects and updates (on user submit) article base parameters data ( such as title, article No., short Description and etc.). Admin Menu: Manage Products -> Articles -> Main.

Definition at line 9 of file article_main.php.

Member Function Documentation

Article_Main::_copyAccessoires (   $sOldId,
  $sNewId 
)
protected

Copying accessoires assignments

Parameters
string$sOldIdId from old article
string$sNewIdId from new article
Returns
null

Definition at line 579 of file article_main.php.

Article_Main::_copyArtExtends (   $sOldId,
  $sNewId 
)
protected

Copying article extends

Parameters
string$sOldIdId from old article
string$sNewIdId from new article
Returns
null

Definition at line 628 of file article_main.php.

Article_Main::_copyAttributes (   $sOldId,
  $sNewId 
)
protected

Copying attributes assignments

Parameters
string$sOldIdId from old article
string$sNewIdId from new article
Returns
null

Definition at line 469 of file article_main.php.

Article_Main::_copyCategories (   $sOldId,
  $sNewId 
)
protected

Copying category assignments

Parameters
string$sOldIdId from old article
string$sNewIdId from new article
Returns
null

Definition at line 434 of file article_main.php.

Article_Main::_copyCrossseling (   $sOldId,
  $sNewId 
)
protected

Copying crossseling assignments

Parameters
string$sOldIdId from old article
string$sNewIdId from new article
Returns
null

Definition at line 554 of file article_main.php.

Article_Main::_copyFiles (   $sOldId,
  $sNewId 
)
protected

Copying files

Parameters
string$sOldIdId from old article
string$sNewIdId from new article
Returns
null

Definition at line 498 of file article_main.php.

Article_Main::_copySelectlists (   $sOldId,
  $sNewId 
)
protected

Copying selectlists assignments

Parameters
string$sOldIdId from old article
string$sNewIdId from new article
Returns
null

Definition at line 529 of file article_main.php.

Article_Main::_copyStaffelpreis (   $sOldId,
  $sNewId 
)
protected

Copying staffelpreis assignments

Parameters
string$sOldIdId from old article
string$sNewIdId from new article
Returns
null

Definition at line 604 of file article_main.php.

Article_Main::_formJumpList (   $oArticle,
  $oParentArticle 
)
protected

Function forms article variants jump list.

Parameters
object$oArticlearticle object
object$oParentArticlearticle parent object
Returns
null

Definition at line 669 of file article_main.php.

Article_Main::_getEditValue (   $oObject,
  $sField 
)
protected

Returns string which must be edited by editor

Parameters
oxbase$oObjectobject whifh field will be used for editing
string$sFieldname of editable field
Returns
string

Reimplemented from oxAdminDetails.

Definition at line 98 of file article_main.php.

Article_Main::_getTitle (   $oObj)
protected

Returns formed variant title

Parameters
object$oObjproduct object
Returns
string

Definition at line 709 of file article_main.php.

Article_Main::_processLongDesc (   $sValue)
protected

Fixes html broken by html editor

Parameters
string$sValuevalue to fix
Returns
string

Definition at line 246 of file article_main.php.

Article_Main::_resetCategoriesCounter (   $sArticleId)
protected

Resets article categories counters

Parameters
string$sArticleIdArticle id
Returns
void

Definition at line 267 of file article_main.php.

Article_Main::_setTags (   $sTags,
  $sArticleId 
)
protected

Sets tags to article. Returns invalid tags array

Parameters
string$sTagsTags string to set for article
string$sArticleIdArticle id
Returns
array of oxTag objects

Definition at line 288 of file article_main.php.

Article_Main::addDefaultValues (   $aParams)

Sets default values for empty article (currently does nothing), returns array with parameters.

Parameters
array$aParamsParameters, to set default values
Returns
array

Definition at line 656 of file article_main.php.

Article_Main::addToCategory (   $sCatID,
  $sOXID 
)

Add article to category.

Parameters
string$sCatIDCategory id
string$sOXIDArticle id
Returns
null

Definition at line 306 of file article_main.php.

Article_Main::copyArticle (   $sOldId = null,
  $sNewId = null,
  $sParentId = null 
)

Copies article (with all parameters) to new articles.

Parameters
string$sOldIdold product id (default null)
string$sNewIdnew product id (default null)
string$sParentIdproduct parent id
Returns
null

Definition at line 331 of file article_main.php.

Article_Main::getCategoryList ( )

Returns shop manufacturers list

Returns
oxmanufacturerlist

Definition at line 724 of file article_main.php.

Article_Main::getManufacturerList ( )

Returns shop manufacturers list

Returns
oxmanufacturerlist

Definition at line 749 of file article_main.php.

Article_Main::getVendorList ( )

Returns shop manufacturers list

Returns
oxmanufacturerlist

Definition at line 736 of file article_main.php.

Article_Main::render ( )

Loads article parameters and passes them to Smarty engine, returns name of template file "article_main.tpl".

Returns
string

Reimplemented from oxAdminDetails.

Definition at line 17 of file article_main.php.

Article_Main::save ( )

Saves changes of article parameters.

Returns
null

Reimplemented from oxAdminView.

Definition at line 115 of file article_main.php.

Article_Main::saveinnlang ( )

Saves article parameters in different language.

Returns
null

Definition at line 643 of file article_main.php.


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