|
@@ 88-98 (lines=11) @@
|
| 85 |
|
* @since Sept, 14 2015 |
| 86 |
|
* @return integer |
| 87 |
|
*/ |
| 88 |
|
protected function persian_day_of_week() { |
| 89 |
|
|
| 90 |
|
$this->day = str_replace( $this->config['week_days_name']['english'], $this->config['week_days_name']['persian'], $this->day); |
| 91 |
|
|
| 92 |
|
foreach ( $this->config['week_days_name']['persian'] as $key => $value ) { |
| 93 |
|
|
| 94 |
|
if( $value == $this->day ) return $key += 1; |
| 95 |
|
|
| 96 |
|
} |
| 97 |
|
|
| 98 |
|
} |
| 99 |
|
|
| 100 |
|
/** |
| 101 |
|
* @since Sept, 14 2015 |
|
@@ 104-115 (lines=12) @@
|
| 101 |
|
* @since Sept, 14 2015 |
| 102 |
|
* @return integer |
| 103 |
|
*/ |
| 104 |
|
protected function islamic_day_of_week() { |
| 105 |
|
|
| 106 |
|
$this->day = str_replace( $this->config['week_days_name']['english'], $this->config['week_days_name']['islamic'][$this->geregorian_DayofWeek], $this->day); |
| 107 |
|
|
| 108 |
|
foreach ( $this->config['week_days_name']['islamic'] as $key => $value ) { |
| 109 |
|
|
| 110 |
|
if( $value == $this->day ) return $key += 1; |
| 111 |
|
|
| 112 |
|
} |
| 113 |
|
|
| 114 |
|
|
| 115 |
|
} |
| 116 |
|
|
| 117 |
|
|
| 118 |
|
} |