

dyn
Public Member Functions | |
| __construct () | |
| render () | |
| createMainExportView () | |
| start () | |
| stop ($iError=0) | |
| nextTick ($iCnt) | |
| write ($sLine) | |
| run () | |
| 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 | |
| $sClass_do = "" | |
| $sClass_main = "" | |
| $sExportPath = "export/" | |
| $sExportFileType = "txt" | |
| $sExportFileName = "dynexport" | |
| $fpFile = null | |
| $iExportPerTick = 30 | |
Protected Member Functions | |
| _unHTMLEntities ($sInput) | |
| _getHeapTableName () | |
Protected Attributes | |
| $_sFilePath = null | |
| $_aExportResultset = array() | |
| $_sThisTemplate = "dynexportbase.tpl" | |
Private Member Functions | |
| _generateTableCharSet ($sMysqlVersion) | |
| _createHeapTable ($sHeapTable, $sTableCharset) | |
| _getCatAdd ($aChosenCat) | |
| _insertArticles ($sHeapTable, $sCatAdd) | |
| _removeParentArticles ($sHeapTable) | |
| _setSessionParams () | |
| _loadRootCats () | |
| _findDeepestCatPath ($oArticle) | |
| _initArticle ($sHeapTable, $iCnt) | |
| _setCampaignDetailLink ($oArticle) | |
| DynExportBase.__construct | ( | ) |
| DynExportBase.render | ( | ) |
Calls parent rendering methods, sends implementation class names to template and returns default template name
Reimplemented from oxAdminDetails.
Reimplemented in genExport_main.
| DynExportBase.createMainExportView | ( | ) |
Prepares and fill all data which all the dyn exports needs
| DynExportBase.start | ( | ) |
Prepares Export
| DynExportBase.stop | ( | $ | iError = 0 |
) |
Stops Export
| integer | $iError |
| DynExportBase.nextTick | ( | $ | iCnt | ) |
virtual function must be overloaded
| integer | $iCnt counter |
Reimplemented in genExport_do.
| DynExportBase.write | ( | $ | sLine | ) |
writes one line into open export file
| string | $sLine exported line |
Reimplemented in genExport_do.
| DynExportBase.run | ( | ) |
Does Export
| DynExportBase.removeSID | ( | $ | sInput | ) |
Removes Session ID from $sInput
| string | $sInput |
| DynExportBase.shrink | ( | $ | sInput, | |
| $ | iMaxSize, | |||
| $ | blRemoveNewline = true | |||
| ) |
Shortens a string to $iMaxSize adding "..."
| string | $sInput | |
| integer | $iMaxSize | |
| bool | $blRemoveNewline |
| DynExportBase.getCategoryString | ( | &$ | oArticle, | |
| $ | sSeparator = "/" | |||
| ) |
Loads all article parent categories and returns titles separated by "/"
| object | &$oArticle Article object | |
| string | $sSeparator separator (default "/") |
| DynExportBase.getDefaultCategoryString | ( | $ | oArticle | ) |
| DynExportBase.prepareCSV | ( | $ | sInput | ) |
Converts field for CSV
| string | $sInput |
| DynExportBase.prepareXML | ( | $ | sInput | ) |
Changes special chars to be XML compatible
| string | $sInput string which have to be changed |
| DynExportBase.getDeepestCategoryPath | ( | &$ | oArticle | ) |
Searches for deepest path to a categorie this article is assigned to
| object | &$oArticle article object |
| DynExportBase.prepareExport | ( | ) |
create export resultset
| DynExportBase.getOneArticle | ( | $ | iCnt, | |
| &$ | blContinue | |||
| ) |
get's one oxid for exporting
| integer | $iCnt counter | |
| bool | &$blContinue false is used to stop exporting |
| DynExportBase.assureContent | ( | $ | sInput, | |
| $ | sReplace = null | |||
| ) |
Make sure that string is never empty.
| string | $sInput string that will be replaced | |
| string | $sReplace string that will replace |
| DynExportBase._unHTMLEntities | ( | $ | sInput | ) | [protected] |
Replace HTML Entities Replacement for html_entity_decode which is only available from PHP 4.3.0 onj
| string | $sInput string to replace |
| DynExportBase._getHeapTableName | ( | ) | [protected] |
Create valid Heap table name
| DynExportBase._generateTableCharSet | ( | $ | sMysqlVersion | ) | [private] |
generates table charset
| string | $sMysqlVersion MySql version |
| DynExportBase._createHeapTable | ( | $ | sHeapTable, | |
| $ | sTableCharset | |||
| ) | [private] |
creates heaptable
| string | $sHeapTable table name | |
| string | $sTableCharset table charset |
| DynExportBase._getCatAdd | ( | $ | aChosenCat | ) | [private] |
creates additional cat string
| array | $aChosenCat |
| DynExportBase._insertArticles | ( | $ | sHeapTable, | |
| $ | sCatAdd | |||
| ) | [private] |
inserts articles into heaptable
| string | $sHeapTable | |
| string | $sCatAdd |
| DynExportBase._removeParentArticles | ( | $ | sHeapTable | ) | [private] |
removes parent articles so that we only have variants itself
| string | $sHeapTable table name |
| DynExportBase._setSessionParams | ( | ) | [private] |
stores some info in session
| DynExportBase._loadRootCats | ( | ) | [private] |
Load all root cat's == all trees
| DynExportBase._findDeepestCatPath | ( | $ | oArticle | ) | [private] |
finds deepest category path
| object | $oArticle article object |
| DynExportBase._initArticle | ( | $ | sHeapTable, | |
| $ | iCnt | |||
| ) | [private] |
initialize article
| string | $sHeapTable | |
| int | $iCnt |
| DynExportBase._setCampaignDetailLink | ( | $ | oArticle | ) | [private] |
sets detail link for campaigns
| object | $oArticle article object |
| DynExportBase.getViewId | ( | ) |
Current view ID getter helps to identify navigation position
Reimplemented from oxAdminView.
| DynExportBase.$sClass_do = "" |
Reimplemented in GenExport, genExport_do, and genExport_main.
| DynExportBase.$sClass_main = "" |
Reimplemented in GenExport, genExport_do, and genExport_main.
| DynExportBase.$sExportPath = "export/" |
| DynExportBase.$sExportFileType = "txt" |
| DynExportBase.$sExportFileName = "dynexport" |
Reimplemented in genExport_do.
| DynExportBase.$fpFile = null |
| DynExportBase.$iExportPerTick = 30 |
DynExportBase.$_sFilePath = null [protected] |
DynExportBase.$_aExportResultset = array() [protected] |
DynExportBase.$_sThisTemplate = "dynexportbase.tpl" [protected] |
1.5.5