OXID eShop CE
6.1.5
|
Public Member Functions | |
__construct () | |
render () | |
createMainExportView () | |
start () | |
stop ($iError=0) | |
nextTick ($iCnt) | |
write ($sLine) | |
run () | |
getExportPerTick () | |
setExportPerTick ($iCount) | |
removeSid ($sInput) | |
shrink ($sInput, $iMaxSize, $blRemoveNewline=true) | |
getCategoryString ($oArticle, $sSeparator="/") | |
getDefaultCategoryString ($oArticle) | |
prepareCSV ($sInput) | |
prepareXML ($sInput) | |
getDeepestCategoryPath ($oArticle) | |
prepareExport () | |
getOneArticle ($iCnt, & $blContinue) | |
assureContent ($sInput, $sReplace=null) | |
getViewId () | |
Public Attributes | |
$sClassDo = "" | |
$sClassMain = "" | |
$sExportPath = "export/" | |
$sExportFileType = "txt" | |
$sExportFileName = "dynexport" | |
$fpFile = null | |
$iExportPerTick = 30 | |
Protected Member Functions | |
_unHtmlEntities ($sInput) | |
_getHeapTableName () | |
_generateTableCharSet ($sMysqlVersion) | |
_createHeapTable ($sHeapTable, $sTableCharset) | |
_getCatAdd ($aChosenCat) | |
_insertArticles ($sHeapTable, $sCatAdd) | |
_removeParentArticles ($sHeapTable) | |
_setSessionParams () | |
_loadRootCats () | |
_findDeepestCatPath ($oArticle) | |
_initArticle ($sHeapTable, $iCnt, & $blContinue) | |
_setCampaignDetailLink ($oArticle) | |
updateArticle ($article) | |
getDb () | |
Protected Attributes | |
$_iExportPerTick = null | |
$_sFilePath = null | |
$_aExportResultset = [] | |
$_sThisTemplate = "dynexportbase.tpl" | |
$_aCatLvlCache = null | |
DynExportBase framework class encapsulating a method for defining implementation class. Performs export function according to user chosen categories.
@subpackage dyn
OxidEsales\EshopCommunity\Application\Controller\Admin\DynamicExportBaseController::__construct | ( | ) |
Calls parent costructor and initializes $this->_sFilePath parameter
|
protected |
creates heaptable
string | $sHeapTable | table name |
string | $sTableCharset | table charset |
|
protected |
finds deepest category path
\OxidEsales\Eshop\Application\Model\Article | $oArticle | article object |
|
protected |
generates table charset
string | $sMysqlVersion | MySql version |
|
protected |
creates additional cat string
array | $aChosenCat | Selected category array |
|
protected |
Create valid Heap table name
|
protected |
initialize article
string | $sHeapTable | heap table name |
int | $iCnt | record number |
bool | $blContinue | false is used to stop exporting |
|
protected |
inserts articles into heaptable
string | $sHeapTable | heap table name |
string | $sCatAdd | category id filter (part of sql) |
|
protected |
Load all root cat's == all trees
|
protected |
removes parent articles so that we only have variants itself
string | $sHeapTable | table name |
|
protected |
sets detail link for campaigns
\OxidEsales\Eshop\Application\Model\Article | $oArticle | article object |
|
protected |
stores some info in session
|
protected |
Replace HTML Entities Replacement for html_entity_decode which is only available from PHP 4.3.0 onj
string | $sInput | string to replace |
OxidEsales\EshopCommunity\Application\Controller\Admin\DynamicExportBaseController::assureContent | ( | $sInput, | |
$sReplace = null |
|||
) |
Make sure that string is never empty.
string | $sInput | string that will be replaced |
string | $sReplace | string that will replace |
OxidEsales\EshopCommunity\Application\Controller\Admin\DynamicExportBaseController::createMainExportView | ( | ) |
Prepares and fill all data which all the dyn exports needs
OxidEsales\EshopCommunity\Application\Controller\Admin\DynamicExportBaseController::getCategoryString | ( | $oArticle, | |
$sSeparator = "/" |
|||
) |
Loads all article parent categories and returns titles separated by "/"
object | $oArticle | Article object |
string | $sSeparator | separator (default "/") |
|
protected |
Get the actual database.
OxidEsales\EshopCommunity\Application\Controller\Admin\DynamicExportBaseController::getDeepestCategoryPath | ( | $oArticle | ) |
Searches for deepest path to a categorie this article is assigned to
\OxidEsales\Eshop\Application\Model\Article | $oArticle | article object |
OxidEsales\EshopCommunity\Application\Controller\Admin\DynamicExportBaseController::getDefaultCategoryString | ( | $oArticle | ) |
Loads article default category
\OxidEsales\Eshop\Application\Model\Article | $oArticle | Article object |
OxidEsales\EshopCommunity\Application\Controller\Admin\DynamicExportBaseController::getExportPerTick | ( | ) |
Returns how many articles should be exported per tick
OxidEsales\EshopCommunity\Application\Controller\Admin\DynamicExportBaseController::getOneArticle | ( | $iCnt, | |
& | $blContinue | ||
) |
get's one oxid for exporting
integer | $iCnt | counter |
bool | $blContinue | false is used to stop exporting |
OxidEsales\EshopCommunity\Application\Controller\Admin\DynamicExportBaseController::getViewId | ( | ) |
Returns view id ('dyn_interface')
OxidEsales\EshopCommunity\Application\Controller\Admin\DynamicExportBaseController::nextTick | ( | $iCnt | ) |
virtual function must be overloaded
integer | $iCnt | counter |
OxidEsales\EshopCommunity\Application\Controller\Admin\DynamicExportBaseController::prepareCSV | ( | $sInput | ) |
Converts field for CSV
string | $sInput | input to process |
OxidEsales\EshopCommunity\Application\Controller\Admin\DynamicExportBaseController::prepareExport | ( | ) |
create export resultset
OxidEsales\EshopCommunity\Application\Controller\Admin\DynamicExportBaseController::prepareXML | ( | $sInput | ) |
Changes special chars to be XML compatible
string | $sInput | string which have to be changed |
OxidEsales\EshopCommunity\Application\Controller\Admin\DynamicExportBaseController::removeSid | ( | $sInput | ) |
Removes Session ID from $sInput
string | $sInput | Input to process |
OxidEsales\EshopCommunity\Application\Controller\Admin\DynamicExportBaseController::render | ( | ) |
Calls parent rendering methods, sends implementation class names to template and returns default template name
OxidEsales\EshopCommunity\Application\Controller\Admin\DynamicExportBaseController::run | ( | ) |
Does Export
OxidEsales\EshopCommunity\Application\Controller\Admin\DynamicExportBaseController::setExportPerTick | ( | $iCount | ) |
Sets how many articles should be exported per tick
int | $iCount | articles count per tick |
OxidEsales\EshopCommunity\Application\Controller\Admin\DynamicExportBaseController::shrink | ( | $sInput, | |
$iMaxSize, | |||
$blRemoveNewline = true |
|||
) |
Removes tags, shortens a string to $iMaxSize adding "..."
string | $sInput | input to process |
integer | $iMaxSize | maximum output size |
bool | $blRemoveNewline | if true - and \r will be replaced by " " |
OxidEsales\EshopCommunity\Application\Controller\Admin\DynamicExportBaseController::start | ( | ) |
Prepares Export
OxidEsales\EshopCommunity\Application\Controller\Admin\DynamicExportBaseController::stop | ( | $iError = 0 | ) |
Stops Export
integer | $iError | error number |
|
protected |
Updates Article object. Method is used for overriding.
\OxidEsales\Eshop\Application\Model\Article | $article |
OxidEsales\EshopCommunity\Application\Controller\Admin\DynamicExportBaseController::write | ( | $sLine | ) |
writes one line into open export file
string | $sLine | exported line |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
OxidEsales\EshopCommunity\Application\Controller\Admin\DynamicExportBaseController::$fpFile = null |
OxidEsales\EshopCommunity\Application\Controller\Admin\DynamicExportBaseController::$iExportPerTick = 30 |
OxidEsales\EshopCommunity\Application\Controller\Admin\DynamicExportBaseController::$sClassDo = "" |
OxidEsales\EshopCommunity\Application\Controller\Admin\DynamicExportBaseController::$sClassMain = "" |
OxidEsales\EshopCommunity\Application\Controller\Admin\DynamicExportBaseController::$sExportFileName = "dynexport" |
OxidEsales\EshopCommunity\Application\Controller\Admin\DynamicExportBaseController::$sExportFileType = "txt" |
OxidEsales\EshopCommunity\Application\Controller\Admin\DynamicExportBaseController::$sExportPath = "export/" |