phpDocumentor CoreAPI
DateAPI
[ class tree: CoreAPI ] [ index: CoreAPI ] [ all elements ]

Procedural File: date_api.php

Source Location: /core/date_api.php

Page Details
Copyright:  Copyright (C) 2002 - 2009 MantisBT Team - mantisbt-dev@lists.sourceforge.net
Copyright:  Copyright (C) 2000 - 2002 Kenzaburo Ito - kenito@300baud.org
Link:  http://www.mantisbt.org
Functions
date_finish_calendar  [line 260]

null date_finish_calendar( string $p_field_name, string $p_button_name  )

creates javascript calendar objects, point to input element ($p_field_name) that diaplays date, and connects it with calendar button ($p_button_name) created with date_print_calendar.

should be called right after </form> tag

Parameters:
string   $p_field_name: 
string   $p_button_name: 

API Tags:
Access:  public

Information Tags:
Todo:  (thraxisp) this may want a browser check ( MS IE >= 5.0, Mozilla >= 1.0, Safari >=1.2, ...)

[ Top ]
date_get_null  [line 40]

int date_get_null( )

gets null date


API Tags:
Access:  public


[ Top ]
date_is_null  [line 31]

bool date_is_null( int $p_date  )

checks if date is null

Parameters:
int   $p_date: 

API Tags:
Access:  public


[ Top ]
date_print_calendar  [line 232]

null date_print_calendar( [string $p_button_name = 'trigger']  )

prints calendar icon and adds required javascript files.

button_name is name of button that will display calendar icon in caste there are more than one calendar on page

Parameters:
string   $p_button_name: 

API Tags:
Access:  public

Information Tags:
Todo:  (thraxisp) this may want a browser check ( MS IE >= 5.0, Mozilla >= 1.0, Safari >=1.2, ...)

[ Top ]
print_date  [line 51]

null print_date( string $p_format, int $p_date  )

prints the date given the formating string

Parameters:
string   $p_format: 
int   $p_date: 

API Tags:
Access:  public


[ Top ]
print_date_selection_set  [line 174]

null print_date_selection_set( string $p_name, string $p_format, [int $p_date = 0], [bool $p_default_disable = false], [bool $p_allow_blank = false], [int $p_year_start = 0], [int $p_year_end = 0]  )
Parameters:
string   $p_name: 
string   $p_format: 
int   $p_date: 
bool   $p_default_disable: 
bool   $p_allow_blank: 
int   $p_year_start: 
int   $p_year_end: 

API Tags:
Access:  public


[ Top ]
print_day_option_list  [line 95]

null print_day_option_list( [int $p_day = 0]  )
Parameters:
int   $p_day: 

API Tags:
Access:  public


[ Top ]
print_month_option_list  [line 61]

null print_month_option_list( [int $p_month = 0]  )
Parameters:
int   $p_month: 

API Tags:
Access:  public


[ Top ]
print_numeric_month_option_list  [line 79]

null print_numeric_month_option_list( [int $p_month = 0]  )
Parameters:
int   $p_month: 

API Tags:
Access:  public


[ Top ]
print_year_option_list  [line 111]

null print_year_option_list( [int $p_year = 0]  )
Parameters:
int   $p_year: 

API Tags:
Access:  public


[ Top ]
print_year_range_option_list  [line 131]

null print_year_range_option_list( [int $p_year = 0], [int $p_start = 0], [int $p_end = 0]  )
Parameters:
int   $p_year: 
int   $p_start: 
int   $p_end: 

API Tags:
Access:  public


[ Top ]


Documentation generated on Sun, 05 Apr 2009 23:01:11 +0100 by phpDocumentor 1.4.1