[ Index ]
 

Code source de vtiger CRM 5.0.2

Accédez au Source d'autres logiciels libresSoutenez Angelica Josefina !

title

Body

[fermer]

/modules/Calendar/ -> Date.php (sommaire)

(pas de description)

Poids: 523 lignes (15 kb)
Inclus ou requis: 2 fois
Référencé: 0 fois
Nécessite: 0 fichiers

Définit 1 class

DateTime:: (23 méthodes):
  DateTime()
  getTodayDatetimebyIndex()
  getThisweekDaysbyIndex()
  getThismonthDaysbyIndex()
  getThisyearMonthsbyIndex()
  getHourendtime()
  getDayendtime()
  getMonthendtime()
  get_Date()
  getmonthName_inshort()
  getMonth()
  getmonthName()
  getdayofWeek()
  getdayofWeek_inshort()
  setDateTime()
  getDateTime()
  get_formatted_date()
  get_formatted_time()
  get_changed_day()
  get_first_day_of_changed_week()
  get_first_day_of_changed_month()
  get_first_day_of_changed_year()
  get_date_str()


Classe: DateTime  - X-Ref

DateTime(&$timearr,$check)   X-Ref
Constructor for DateTime class

param: array  $timearr - collection of string
param: string $check   - check string

getTodayDatetimebyIndex($index,$day='', $month='', $year='')   X-Ref
function to get date and time using index

param: integer       $index - number between 0 to 23
param: string        $day   - date  
param: string        $month - month
param: string        $year  - year

getThisweekDaysbyIndex($index)   X-Ref
function to get days in week using index

param: integer       $index - number between 0 to 6

getThismonthDaysbyIndex($index,$day='', $month='', $year='')   X-Ref
function to get days in month using index

param: integer       $index - number between 0 to 42
param: string        $day   - date
param: string        $month - month
param: string        $year  - year

getThisyearMonthsbyIndex($index)   X-Ref
function to get months in year using index

param: integer       $index - number between 0 to 11

getHourendtime()   X-Ref
function to get hour end time
return DateTime obj  $datetimevalue


getDayendtime()   X-Ref
function to get day end time
return DateTime obj  $datetimevalue


getMonthendtime()   X-Ref
function to get month end time
return DateTime obj  $datetimevalue


get_Date()   X-Ref
function to get day of week
return string $this->day  - day (eg: Monday)


getmonthName_inshort()   X-Ref
function to get month name in short
return string $this->month_inshort  - month name (eg: Jan)


getMonth()   X-Ref
function to get month name
return string $this->month  - month name


getmonthName()   X-Ref
function to get month name
return string $this->month_inlong  - month name


getdayofWeek()   X-Ref
function to get day of week
return string $this->dayofweek_inlong  - day of week


getdayofWeek_inshort()   X-Ref
function to get day of week in short
return string $this->dayofweek_inshort  - day of week (eg: Mon)


setDateTime($ts)   X-Ref
function to set values for DateTime object

param: integer   $ts  - Time stamp

getDateTime()   X-Ref
function to get values from DateTime object


get_formatted_date()   X-Ref
function to get mysql formatted date
return formatted date in string format


get_formatted_time()   X-Ref
function to get mysql formatted time
return formatted time in string format


get_changed_day($mode)   X-Ref
function to get date depends on mode value

param: string $mode  - 'increment' or 'decrement'

get_first_day_of_changed_week($mode)   X-Ref
function to get changed week depends on mode value

param: string $mode  - 'increment' or 'decrement'

get_first_day_of_changed_month($mode)   X-Ref
function to get month depends on mode value

param: string $mode  - 'increment' or 'decrement'

get_first_day_of_changed_year($mode)   X-Ref
function to get year depends on mode value

param: string $mode  - 'increment' or 'decrement'

get_date_str()   X-Ref
function to get date string
return date string




Généré le : Sun Feb 25 10:22:19 2007 par Balluche grâce à PHPXref 0.7