src/ORM/FieldType/DBYear.php
private function getDefaultOptions($start = null, $end = null)
    {
        if (!$start) {
            $start = (int)date('Y');
        }
        if (!$end) {
            $end = 1900;
        }
        $years = array();
        for ($i=$start; $i>=$end; $i--) {
            $years[$i] = $i;
        }
        return $years;
    }
private function getDefaultOptions($start = null, $end = null)
    {
        if (!$start) {
            $start = (int)date('Y');
        }
        if (!$end) {
            $end = 1900;
        }
        $years = array();
        for ($i=$start; $i>=$end; $i--) {
            $years[$i] = $i;
        }
        return $years;
    }
private function getDefaultOptions ( $ start = null , $ end = null ) { if ( ! $ start ) { $ start = ( int ) date ( 'Y' ) ; } if ( ! $ end ) { $ end = 1900 ; } $ years = array ( ) ; for ( $ i = $ start ; $ i >= $ end ; $ i -- ) { $ years [ $ i ] = $ i ; } return $ years ; }
Returns a list of default options that can
be used to populate a select box, or compare against
input values. Starts by default at the current year,
and counts back to 1900.

@param int|bool $start starting date to count down from
@param int|bool $end end date to count down to
@return array
Returns a list of default options that can be used to populate a select box or compare against input values . Starts by default at the current year and counts back to 1900 .