/*
* The Flow
*
* view.html.php
* -> get all columns set by options
*
* HEADER (default.php) RENDER COLUMN HEADER
*
* -> renderHeader() -> all columns iterate in foreach
* -> header() -> column will be transformed to function
* -> e.g. skuHeader() -> all column data will be defined here, possible change for each view
* -> renderHeaderColumn() -> rendering of column HTML header
*
* BODY (default.php) RENDER COLUMN BODY
*
* -> foreach -> all columns iterate in default.php
* -> item -> column will be transformed to function
* -> e.g. sku -> commonColumn -> sku function calls commonColumn (e.g. title renders HTML immediately) - possible change for each view
* -> commonColumn() -> rendering of column HTML body
*
* SORTFIELDS (view.html.php) RENDER SORT FIELDS
*
* -> renderSortFields() -> all columns iterate in foreach
* -> header() -> column will be transformed to function
* -> e.g. skuHeader -> all column data will be defined here, possible change for each view - RETURNS DATA!!!, does not render column header
*/
public function __construct()
{
$app = Factory::getApplication();
$version = new Version();
$this->compatible = $version->isCompatible('4.0.0-alpha');
$this->view = $app->input->get('view');
$this->option = $app->input->get('option');
$this->tmpl = $app->input->get('tmpl');
$this->r = new PhocacartRenderAdminviews();
}