Source of file NewsNewsFilter.php

Size: 4,562 Bytes - Last Modified: 2016-05-18T03:08:26+02:00

buildproject/core/module_news/system/NewsNewsFilter.php

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193
<?php
/*"******************************************************************************************************
*   (c) 2004-2006 by MulchProductions, www.mulchprod.de                                                 *
*   (c) 2007-2016 by Kajona, www.kajona.de                                                              *
*       Published under the GNU LGPL v2.1, see /system/licence_lgpl.txt                                 *
*-------------------------------------------------------------------------------------------------------*
*	$Id$                                *
********************************************************************************************************/


namespace Kajona\News\System;

use Kajona\System\System\Date;
use Kajona\System\System\FilterBase;
use Kajona\System\System\StringUtil;

/**
 * Class NewsNewsFilter
 *
 * @author stefan.meyer1@yahoo.de
 * @module news
 */
class NewsNewsFilter extends FilterBase
{
    /**
     * @var string
     * @tableColumn news.news_title
     * @fieldType Kajona\System\Admin\Formentries\FormentryText
     */
    private $strTitle;

    /**
     * @var Date
     * @tableColumn system_date.system_date_start
     * @fieldType Kajona\System\Admin\Formentries\FormentryDate
     * @filterCompareOperator GE
     */
    private $objDateStartFrom;

    /**
     * @var Date
     * @tableColumn system_date.system_date_start
     * @fieldType Kajona\System\Admin\Formentries\FormentryDate
     * @filterCompareOperator LE
     */
    private $objDateStartTo;


    /**
     * @var Date
     * @tableColumn system_date.system_date_end
     * @fieldType Kajona\System\Admin\Formentries\FormentryDate
     * @filterCompareOperator GE
     */
    private $objDateEndFrom;

    /**
     * @var Date
     * @tableColumn system_date.system_date_end
     * @fieldType Kajona\System\Admin\Formentries\FormentryDate
     * @filterCompareOperator LE
     */
    private $objDateEndTo;


    /**
     * @var Date
     * @tableColumn system_date.system_date_special
     * @fieldType Kajona\System\Admin\Formentries\FormentryDate
     * @filterCompareOperator GE
     */
    private $objDateSpecialFrom;

    /**
     * @var Date
     * @tableColumn system_date.system_date_special
     * @fieldType Kajona\System\Admin\Formentries\FormentryDate
     * @filterCompareOperator LE
     */
    private $objDateSpecialTo;

    /**
     * @return mixed
     */
    public function getStrTitle()
    {
        return $this->strTitle;
    }

    /**
     * @param mixed $strTitle
     */
    public function setStrTitle($strTitle)
    {
        $this->strTitle = $strTitle;
    }

    /**
     * @return Date
     */
    public function getObjDateStartFrom()
    {
        return StringUtil::toDate($this->objDateStartFrom);
    }

    /**
     * @param Date $objDateStartFrom
     */
    public function setObjDateStartFrom($objDateStartFrom)
    {
        $this->objDateStartFrom = $objDateStartFrom;
    }

    /**
     * @return Date
     */
    public function getObjDateStartTo()
    {
        return StringUtil::toDate($this->objDateStartTo);
    }

    /**
     * @param Date $objDateStartTo
     */
    public function setObjDateStartTo($objDateStartTo)
    {
        $this->objDateStartTo = $objDateStartTo;
    }

    /**
     * @return Date
     */
    public function getObjDateEndFrom()
    {
        return StringUtil::toDate($this->objDateEndFrom);
    }

    /**
     * @param Date $objDateEndFrom
     */
    public function setObjDateEndFrom($objDateEndFrom)
    {
        $this->objDateEndFrom = $objDateEndFrom;
    }

    /**
     * @return Date
     */
    public function getObjDateEndTo()
    {
        return StringUtil::toDate($this->objDateEndTo);
    }

    /**
     * @param Date $objDateEndTo
     */
    public function setObjDateEndTo($objDateEndTo)
    {
        $this->objDateEndTo = $objDateEndTo;
    }

    /**
     * @return Date
     */
    public function getObjDateSpecialFrom()
    {
        return StringUtil::toDate($this->objDateSpecialFrom);
    }

    /**
     * @param Date $objDateSpecialFrom
     */
    public function setObjDateSpecialFrom($objDateSpecialFrom)
    {
        $this->objDateSpecialFrom = $objDateSpecialFrom;
    }

    /**
     * @return Date
     */
    public function getObjDateSpecialTo()
    {
        return StringUtil::toDate($this->objDateSpecialTo);
    }

    /**
     * @param Date $objDateSpecialTo
     */
    public function setObjDateSpecialTo($objDateSpecialTo)
    {
        $this->objDateSpecialTo = $objDateSpecialTo;
    }
}