function getBlockCode_Browse() { bx_store_import('SearchResult'); $o = new BxStoreSearchResult('user', process_db_input($this->_aProfile['NickName'], BX_TAGS_NO_ACTION, BX_SLASHES_NO_ACTION)); $o->aCurrent['rss'] = 0; $o->sBrowseUrl = "browse/my"; $o->aCurrent['title'] = _t('_bx_store_page_title_my_store'); if ($o->isError) { return DesignBoxContent(_t('_bx_store_block_users_products'), MsgBox(_t('_Empty')), 1); } if ($s = $o->processing()) { $this->_oTemplate->addCss(array('unit.css', 'twig.css', 'main.css')); return $s; } else { return DesignBoxContent(_t('_bx_store_block_users_products'), MsgBox(_t('_Empty')), 1); } }
function getMain() { $aPathInfo = pathinfo(__FILE__); require_once $aPathInfo['dirname'] . '/BxStoreSearchResult.php'; return BxStoreSearchResult::getMain(); }
function getMain() { if ($GLOBALS['oBxStoreModule']) { return $GLOBALS['oBxStoreModule']; } else { $aModule = BxStoreSearchResult::getModuleArray(); bx_import('Module', $aModule); bx_import('Template', $aModule); bx_import('Config', $aModule); $GLOBALS['oBxStoreModule'] = new BxStoreModule($aModule); return $GLOBALS['oBxStoreModule']; } }