source/Application/Model/Article.php
public function getActiveCheckQuery($blForceCoreTable = null)
    {
        $sTable = $this->getViewName($blForceCoreTable);

        // check if article is still active
        $sQ = " $sTable.oxactive = 1 ";

        $sQ .= " and $sTable.oxhidden = 0 ";

        // enabled time range check ?
        if (\OxidEsales\Eshop\Core\Registry::getConfig()->getConfigParam('blUseTimeCheck')) {
            $sQ = $this->addSqlActiveRangeSnippet($sQ, $sTable);
        }

        return $sQ;
    }
public function getActiveCheckQuery($blForceCoreTable = null)
    {
        $sTable = $this->getViewName($blForceCoreTable);

        // check if article is still active
        $sQ = " $sTable.oxactive = 1 ";

        $sQ .= " and $sTable.oxhidden = 0 ";

        // enabled time range check ?
        if (\OxidEsales\Eshop\Core\Registry::getConfig()->getConfigParam('blUseTimeCheck')) {
            $sQ = $this->addSqlActiveRangeSnippet($sQ, $sTable);
        }

        return $sQ;
    }
public function getActiveCheckQuery ( $ blForceCoreTable = null ) { $ sTable = $ this -> getViewName ( $ blForceCoreTable ) ; // check if article is still active $ sQ = " $sTable.oxactive = 1 " ; $ sQ .= " and $sTable.oxhidden = 0 " ; // enabled time range check ? if ( \ OxidEsales \ Eshop \ Core \ Registry :: getConfig ( ) -> getConfigParam ( 'blUseTimeCheck' ) ) { $ sQ = $ this -> addSqlActiveRangeSnippet ( $ sQ , $ sTable ) ; } return $ sQ ; }
Returns part of sql query used in active snippet. Query checks
if product "oxactive = 1". If config option "blUseTimeCheck" is TRUE
additionally checks if "oxactivefrom < current data < oxactiveto"

@param bool $blForceCoreTable force core table usage

@return string
Returns part of sql query used in active snippet . Query checks if product oxactive = 1 . If config option blUseTimeCheck is TRUE additionally checks if oxactivefrom < current data < oxactiveto