PHP Classes

Time Selection

Recommend this page to a friend!

      pCalendar Dayview  >  All threads  >  Time Selection  >  (Un) Subscribe thread alerts  
Subject:Time Selection
Summary:Customising Start and End Times
Messages:1
Author:Graham Finlay
Date:2006-10-10 11:06:42
 

  1. Time Selection   Reply   Report abuse  
Picture of Graham Finlay Graham Finlay - 2006-10-10 11:06:42
I have tried to alter the class to be able to customise the start and end times for the day as shown below. It works in the class, however, I don't seem to be able to alterthe times on the example page. Can anyone help me?

class.-----.php
var $calSDay = '0';
var $calEDay = '24';
*
*/
function pCal_Day($curDat,$display = array())/*start and end of day*/ {

$this->calendarStart = $display[0] = $this->calSDay;
$this->calendarEnd = $display[1] = $this->calEDay - 0.25;

example1.php

$cal = new pCal_Day(date('Y-m-d'));
$cal->calSDay = '8';
$cal->calEDay = '18';