XOOPS RMCommon Utilities  2.1.8.91RC
 All Classes Namespaces Files Functions Variables
RMFormDate Class Reference
Inheritance diagram for RMFormDate:
Inheritance graph

Public Member Functions

 __construct ($caption, $name, $date='', $year_range='', $time=0)
 
 options ($options)
 
 render ()
 
- Public Member Functions inherited from RMFormElement
 addClass ($class)
 
 getCaption ()
 
 getClass ()
 
 getDescription ()
 
 getExtra ()
 
 getForm ()
 
 getName ()
 
 id ()
 
 render ()
 
 setCaption ($caption)
 
 setClass ($class)
 
 setDescription ($desc)
 
 setExtra ($extra)
 
 setForm ($name)
 
 setId ($id)
 
 setName ($name)
 

Private Attributes

 $_date = 0
 
 $options = 0
 
 $time
 
 $year_range = ''
 

Additional Inherited Members

- Static Public Attributes inherited from RMFormElement
static $elementsIds = array()
 

Detailed Description

Definition at line 13 of file date.class.php.

Constructor & Destructor Documentation

RMFormDate::__construct (   $caption,
  $name,
  $date = '',
  $year_range = '',
  $time = 0 
)

Constructor

Parameters
<string>$caption
<string>$name Nombre identificador del campo
<string>$date Fecha en formato 'yyyy-mm-14'
stringYear range (eg. 2000:2020)
intShow time and time format (0 = Hide, 1 = Show date and time, 2 = Show only time)

Definition at line 29 of file date.class.php.

References $time, $year_range, RMTemplate\get(), options(), RMFormElement\setCaption(), and RMFormElement\setName().

Here is the call graph for this function:

Member Function Documentation

RMFormDate::options (   $options)

Set options for widget See documentation in http://trentrichardson.com/examples/timepicker/

Parameters
stringOptions in javascript format (eg. showHour: false, showMinute: false)

Definition at line 48 of file date.class.php.

References $options.

Referenced by __construct().

Here is the caller graph for this function:

RMFormDate::render ( )

Definition at line 54 of file date.class.php.

References $_date, $rtn, __(), elseif(), RMTemplate\get(), RMFormElement\getName(), and RMFormElement\id().

Here is the call graph for this function:

Member Data Documentation

RMFormDate::$_date = 0
private

Definition at line 16 of file date.class.php.

Referenced by render().

RMFormDate::$options = 0
private

Definition at line 17 of file date.class.php.

Referenced by options().

RMFormDate::$time
private

Definition at line 19 of file date.class.php.

Referenced by __construct().

RMFormDate::$year_range = ''
private

Definition at line 18 of file date.class.php.

Referenced by __construct().


The documentation for this class was generated from the following file: