Inheritance diagram for DynExportBase:
Collaboration diagram for DynExportBase: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) | |
Protected Attributes | |
| $_iExportPerTick = null | |
| $_sFilePath = null | |
| $_aExportResultset = array() | |
| $_sThisTemplate = "dynexportbase.tpl" | |
| $_aCatLvlCache = null | |
DynExportBase framework class encapsulating a method for defining implementation class. Performs export function according to user chosen categories.
dyn
Definition at line 16 of file dynexportbase.php.
| DynExportBase.__construct | ( | ) |
Calls parent costructor and initializes $this->_sFilePath parameter
Reimplemented from oxAdminView.
Reimplemented in VoucherSerie_Export.
Definition at line 109 of file dynexportbase.php.
| DynExportBase._createHeapTable | ( | $ | sHeapTable, | |
| $ | sTableCharset | |||
| ) | [protected] |
creates heaptable
| string | $sHeapTable table name | |
| string | $sTableCharset table charset |
Definition at line 586 of file dynexportbase.php.
| DynExportBase._findDeepestCatPath | ( | $ | oArticle | ) | [protected] |
finds deepest category path
| oxarticle | $oArticle article object |
Definition at line 820 of file dynexportbase.php.
| DynExportBase._generateTableCharSet | ( | $ | sMysqlVersion | ) | [protected] |
generates table charset
| string | $sMysqlVersion MySql version |
Definition at line 558 of file dynexportbase.php.
| DynExportBase._getCatAdd | ( | $ | aChosenCat | ) | [protected] |
creates additional cat string
| array | $aChosenCat Selected category array |
Definition at line 607 of file dynexportbase.php.
| DynExportBase._getHeapTableName | ( | ) | [protected] |
| DynExportBase._initArticle | ( | $ | sHeapTable, | |
| $ | iCnt, | |||
| &$ | blContinue | |||
| ) | [protected] |
initialize article
| string | $sHeapTable heap table name | |
| int | $iCnt record number | |
| bool | &$blContinue false is used to stop exporting |
Definition at line 861 of file dynexportbase.php.
| DynExportBase._insertArticles | ( | $ | sHeapTable, | |
| $ | sCatAdd | |||
| ) | [protected] |
inserts articles into heaptable
| string | $sHeapTable heap table name | |
| string | $sCatAdd category id filter (part of sql) |
Definition at line 635 of file dynexportbase.php.
| DynExportBase._loadRootCats | ( | ) | [protected] |
| DynExportBase._removeParentArticles | ( | $ | sHeapTable | ) | [protected] |
removes parent articles so that we only have variants itself
| string | $sHeapTable table name |
Definition at line 691 of file dynexportbase.php.
| DynExportBase._setCampaignDetailLink | ( | $ | oArticle | ) | [protected] |
sets detail link for campaigns
| oxarticle | $oArticle article object |
Definition at line 897 of file dynexportbase.php.
| DynExportBase._setSessionParams | ( | ) | [protected] |
stores some info in session
Definition at line 723 of file dynexportbase.php.
| 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 |
Definition at line 533 of file dynexportbase.php.
| 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 |
Definition at line 512 of file dynexportbase.php.
| DynExportBase.createMainExportView | ( | ) |
Prepares and fill all data which all the dyn exports needs
Definition at line 142 of file dynexportbase.php.
| DynExportBase.getCategoryString | ( | $ | oArticle, | |
| $ | sSeparator = "/" | |||
| ) |
Loads all article parent categories and returns titles separated by "/"
| object | $oArticle Article object | |
| string | $sSeparator separator (default "/") |
Definition at line 338 of file dynexportbase.php.
| DynExportBase.getDeepestCategoryPath | ( | $ | oArticle | ) |
Searches for deepest path to a categorie this article is assigned to
| oxarticle | $oArticle article object |
Definition at line 437 of file dynexportbase.php.
| DynExportBase.getDefaultCategoryString | ( | $ | oArticle | ) |
Loads article default category
| oxarticle | $oArticle Article object |
Definition at line 383 of file dynexportbase.php.
| DynExportBase.getExportPerTick | ( | ) |
Returns how many articles should be exported per tick
Definition at line 258 of file dynexportbase.php.
| DynExportBase.getOneArticle | ( | $ | iCnt, | |
| &$ | blContinue | |||
| ) |
get's one oxid for exporting
| integer | $iCnt counter | |
| bool | &$blContinue false is used to stop exporting |
Definition at line 483 of file dynexportbase.php.
| DynExportBase.getViewId | ( | ) |
Returns view id ('dyn_interface')
Reimplemented from oxAdminView.
Reimplemented in VoucherSerie_Main.
Definition at line 920 of file dynexportbase.php.
| DynExportBase.nextTick | ( | $ | iCnt | ) |
virtual function must be overloaded
| integer | $iCnt counter |
Reimplemented in GenExport_Do, and VoucherSerie_Generate.
Definition at line 200 of file dynexportbase.php.
| DynExportBase.prepareCSV | ( | $ | sInput | ) |
Converts field for CSV
| string | $sInput input to process |
Definition at line 405 of file dynexportbase.php.
| DynExportBase.prepareExport | ( | ) |
create export resultset
Reimplemented in VoucherSerie_Main.
Definition at line 447 of file dynexportbase.php.
| DynExportBase.prepareXML | ( | $ | sInput | ) |
Changes special chars to be XML compatible
| string | $sInput string which have to be changed |
Definition at line 419 of file dynexportbase.php.
| DynExportBase.removeSid | ( | $ | sInput | ) |
Removes Session ID from $sInput
| string | $sInput Input to process |
Definition at line 287 of file dynexportbase.php.
| DynExportBase.render | ( | ) |
Calls parent rendering methods, sends implementation class names to template and returns default template name
Reimplemented from oxAdminDetails.
Reimplemented in GenExport_Main, and VoucherSerie_Main.
Definition at line 123 of file dynexportbase.php.
| DynExportBase.run | ( | ) |
Does Export
Reimplemented in VoucherSerie_Export, and VoucherSerie_Generate.
Definition at line 220 of file dynexportbase.php.
| DynExportBase.setExportPerTick | ( | $ | iCount | ) |
Sets how many articles should be exported per tick
| int | $iCount articles count per tick |
Definition at line 275 of file dynexportbase.php.
| DynExportBase.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 will be replaced by " " |
Definition at line 310 of file dynexportbase.php.
| DynExportBase.start | ( | ) |
Prepares Export
Reimplemented in VoucherSerie_Main.
Definition at line 159 of file dynexportbase.php.
| DynExportBase.stop | ( | $ | iError = 0 |
) |
Stops Export
| integer | $iError error number |
Definition at line 183 of file dynexportbase.php.
| DynExportBase.write | ( | $ | sLine | ) |
writes one line into open export file
| string | $sLine exported line |
Reimplemented in GenExport_Do, and VoucherSerie_Export.
Definition at line 210 of file dynexportbase.php.
DynExportBase.$_aCatLvlCache = null [protected] |
Definition at line 102 of file dynexportbase.php.
DynExportBase.$_aExportResultset = array() [protected] |
Definition at line 88 of file dynexportbase.php.
DynExportBase.$_iExportPerTick = null [protected] |
Definition at line 74 of file dynexportbase.php.
DynExportBase.$_sFilePath = null [protected] |
Definition at line 81 of file dynexportbase.php.
DynExportBase.$_sThisTemplate = "dynexportbase.tpl" [protected] |
Reimplemented from oxAdminView.
Reimplemented in GenExport_Do, GenExport_Main, VoucherSerie_Export, VoucherSerie_Generate, and VoucherSerie_Main.
Definition at line 95 of file dynexportbase.php.
| DynExportBase.$fpFile = null |
Definition at line 59 of file dynexportbase.php.
| DynExportBase.$iExportPerTick = 30 |
Reimplemented in VoucherSerie_Export.
Definition at line 67 of file dynexportbase.php.
| DynExportBase.$sClassDo = "" |
Reimplemented in GenExport, GenExport_Do, GenExport_Main, VoucherSerie_Export, VoucherSerie_Generate, and VoucherSerie_Main.
Definition at line 24 of file dynexportbase.php.
| DynExportBase.$sClassMain = "" |
Reimplemented in GenExport, GenExport_Do, and GenExport_Main.
Definition at line 31 of file dynexportbase.php.
| DynExportBase.$sExportFileName = "dynexport" |
Reimplemented in GenExport_Do.
Definition at line 52 of file dynexportbase.php.
| DynExportBase.$sExportFileType = "txt" |
Reimplemented in VoucherSerie_Export.
Definition at line 45 of file dynexportbase.php.
| DynExportBase.$sExportPath = "export/" |
Definition at line 38 of file dynexportbase.php.
1.7.1