Permalink
Browse files

php 7 fix.

  • Loading branch information...
1 parent 5ae970b commit d877fcbdbcaffceec4235a6d9ae74d3fd4ff63e8 @Stardog Stardog committed Feb 9, 2017
Showing with 9 additions and 9 deletions.
  1. +9 −9 lib/pear/Calendar/Day.php
@@ -100,7 +100,7 @@ class Calendar_Day extends Calendar
*
* @access public
*/
- function Calendar_Day($y, $m, $d)
+ public function __construct($y, $m, $d)
{
parent::__construct($y, $m, $d);
}
@@ -113,7 +113,7 @@ function Calendar_Day($y, $m, $d)
* @return boolean
* @access public
*/
- function build($sDates = array())
+ public function build($sDates = array())
{
include_once CALENDAR_ROOT.'Hour.php';
@@ -136,7 +136,7 @@ function build($sDates = array())
* @return void
* @access private
*/
- function setSelection($sDates)
+ public function setSelection($sDates)
{
foreach ($sDates as $sDate) {
if ($this->year == $sDate->thisYear()
@@ -161,7 +161,7 @@ function setSelection($sDates)
* @return void
* @access private
*/
- function setFirst($state = true)
+ public function setFirst($state = true)
{
$this->first = $state;
}
@@ -175,7 +175,7 @@ function setFirst($state = true)
* @return void
* @access private
*/
- function setLast($state = true)
+ public function setLast($state = true)
{
$this->last = $state;
}
@@ -187,7 +187,7 @@ function setLast($state = true)
* @return boolean
* @access public
*/
- function isFirst()
+ public function isFirst()
{
return $this->first;
}
@@ -199,7 +199,7 @@ function isFirst()
* @return boolean
* @access public
*/
- function isLast()
+ public function isLast()
{
return $this->last;
}
@@ -213,7 +213,7 @@ function isLast()
* @return void
* @access private
*/
- function setEmpty ($state = true)
+ public function setEmpty ($state = true)
{
$this->empty = $state;
}
@@ -224,7 +224,7 @@ function setEmpty ($state = true)
* @return boolean
* @access public
*/
- function isEmpty()
+ public function isEmpty()
{
return $this->empty;
}

0 comments on commit d877fcb

Please sign in to comment.