/** * Sets the "markers" for the beginning and of a of week, in the * built Calendar_Day children * @return void * @access private */ function setWeekMarkers() { $dIW = $this->cE->getDaysInWeek($this->thisYear(), $this->thisMonth(), $this->thisDay()); $sDOM = $this->tableHelper->getNumTableDaysInMonth(); for ($i = 1; $i <= $sDOM; $i += $dIW) { $this->children[$i]->setFirst(); $this->children[$i + ($dIW - 1)]->setLast(); } }
function testGetNumTableDaysInMonth() { $Helper = new Calendar_Table_Helper($this->mockcal); $this->assertEqual($Helper->getNumTableDaysInMonth(), 35); }