Source of file AnnualFilter.php
Size: 0,672 Bytes - Last Modified: 2021-12-24T05:15:56+00:00
/var/www/docs.ssmods.com/process/src/code/filters/AnnualFilter.php
1234567891011121314151617181920212223242526272829 | <?php /* * To change this license header, choose License Headers in Project Properties. * To change this template file, choose Tools | Templates * and open the template in the editor. */ /** * * @author Hudhaifa Shatnawi <hudhaifa.shatnawi@gmail.com> * @version 1.0, Nov 11, 2016 - 8:32:02 AM */ class AnnualFilter extends DateFilter { protected function applyOneDate(DataQuery $query) { $this->model = $query->applyRelation($this->relation); $yearClause = 'YEAR(' . $this->getDbName() . ')'; $date = $this->getDate(); return $query->where(array( $yearClause => $date['y'], )); } } |