src/ShopBundle/objects/db/TShopDiscount.class.php
public function IsActive()
    {
        $sToday = date('Y-m-d H:i:s');
        $bIsActive = ($this->fieldActive && ($this->fieldActiveFrom <= $sToday && ($this->fieldActiveTo >= $sToday || '0000-00-00 00:00:00' == $this->fieldActiveTo)));

        return $bIsActive;
    }
public function IsActive()
    {
        $sToday = date('Y-m-d H:i:s');
        $bIsActive = ($this->fieldActive && ($this->fieldActiveFrom <= $sToday && ($this->fieldActiveTo >= $sToday || '0000-00-00 00:00:00' == $this->fieldActiveTo)));

        return $bIsActive;
    }
public function IsActive ( ) { $ sToday = date ( 'Y-m-d H:i:s' ) ; $ bIsActive = ( $ this -> fieldActive && ( $ this -> fieldActiveFrom <= $ sToday && ( $ this -> fieldActiveTo >= $ sToday || '0000-00-00 00:00:00' == $ this -> fieldActiveTo ) ) ) ; return $ bIsActive ; }
return true if the discount is active.

@return bool
return true if the discount is active .