|
@@ 44-51 (lines=8) @@
|
| 41 |
|
* @since Aug, 03 2015 |
| 42 |
|
* @return integer |
| 43 |
|
*/ |
| 44 |
|
public function year() |
| 45 |
|
{ |
| 46 |
|
|
| 47 |
|
$this->config = include __DIR__.'/CalendarSettings/' . ucfirst($this->calendar_type) . '.php'; |
| 48 |
|
|
| 49 |
|
return $this->config[ 'day_of_year' ]( $this->date_time ); |
| 50 |
|
|
| 51 |
|
} |
| 52 |
|
|
| 53 |
|
|
| 54 |
|
/** |
|
@@ 60-67 (lines=8) @@
|
| 57 |
|
* @since Aug, 09 2015 |
| 58 |
|
* @return integer |
| 59 |
|
*/ |
| 60 |
|
public function week() |
| 61 |
|
{ |
| 62 |
|
|
| 63 |
|
$this->config = include __DIR__.'/CalendarSettings/' . ucfirst($this->calendar_type) . '.php'; |
| 64 |
|
|
| 65 |
|
return $this->config[ 'day_of_week' ]( $this->date_time ); |
| 66 |
|
|
| 67 |
|
} |
| 68 |
|
|
| 69 |
|
/** |
| 70 |
|
* Return last day of current month |
|
@@ 75-81 (lines=7) @@
|
| 72 |
|
* @since Oct, 18 2016 |
| 73 |
|
* @return integer |
| 74 |
|
*/ |
| 75 |
|
public function lastDayMonth() { |
| 76 |
|
|
| 77 |
|
$this->config = include __DIR__.'/CalendarSettings/' . ucfirst($this->calendar_type) . '.php'; |
| 78 |
|
|
| 79 |
|
return $this->config[ 'month_days_number' ][ intval( $this->date_time->format( 'm' ) ) ]; |
| 80 |
|
|
| 81 |
|
} |
| 82 |
|
} |
| 83 |
|
|