MkFramework
 All Data Structures Functions
Public Member Functions | Protected Attributes
plugin_datetime Class Reference
Inheritance diagram for plugin_datetime:
Inheritance graph
[legend]
Collaboration diagram for plugin_datetime:
Collaboration graph
[legend]

Public Member Functions

 __construct ($sDate=null, $sFormat='Y-m-d h:i:s')
 
 loadFromFormat ($sDate, $sFormat)
 
 reset ()
 
 getHour ()
 
 getMinute ()
 
 getSecond ()
 
 setHour ($iHour)
 
 setMinute ($iMinute)
 
 setSecond ($iSecond)
 
 toString ($sFormat='Y-m-d H:i:s')
 
 getMkTime ()
 
- Public Member Functions inherited from plugin_date
 __construct ($sDate=null, $sFormat='Y-m-d')
 
 loadFromFormat ($sDate, $sFormat)
 
 reset ()
 
 setYear ($iYear)
 
 setMonth ($iMonth)
 
 setDay ($iDay)
 
 getYear ($sFormat='YYYY')
 
 getMonth ($sFormat='MM')
 
 getStringMonth ($sFormat='MM')
 
 getStringDay ($sFormat='DD')
 
 getDay ($sFormat='DD')
 
 getWeekDay ()
 
 getNumberWeek ()
 
 addDay ($iNb)
 
 addMonth ($iNb)
 
 addYear ($iNb)
 
 removeDay ($iNb)
 
 removeMonth ($iNb)
 
 removeYear ($iNb)
 
 getMkTime ()
 
 isBank ()
 
 isValid ()
 
 toString ($sFormat='Y-m-d')
 
 isToday ()
 

Protected Attributes

 $iHour
 
 $iMinute
 
 $iSecond
 
- Protected Attributes inherited from plugin_date
 $iYear
 
 $iMonth
 
 $iDay
 

Detailed Description

plugin_datetime classe pour gerer la date

Author
Mika http://mkf.mkdevs.com/

Definition at line 23 of file plugin_datetime.php.

Constructor & Destructor Documentation

__construct (   $sDate = null,
  $sFormat = 'Y-m-d h:i:s' 
)

constructeur public

Parameters
string$sDateon leur passe une chaine contenant la date par exemple '2007-12-25'
string$sFormaton definit leur format utilise, par exemple'Y-m-d'

Definition at line 35 of file plugin_datetime.php.

Here is the call graph for this function:

Member Function Documentation

getHour ( )

public

Returns
string retourne l'heure

Definition at line 84 of file plugin_datetime.php.

getMinute ( )

public

Returns
string retourne les minutes

Definition at line 91 of file plugin_datetime.php.

getMkTime ( )

public

Returns
string retourne le mktime de la date

Definition at line 137 of file plugin_datetime.php.

Here is the caller graph for this function:

getSecond ( )

public

Returns
string retourne les secondes

Definition at line 98 of file plugin_datetime.php.

loadFromFormat (   $sDate,
  $sFormat 
)

public

Parameters
string$sDateon leur passe une chaine contenant la date par exemple '2007-12-25'
string$sFormaton definit leur format utilise, par exemple'Y-m-d'

Definition at line 50 of file plugin_datetime.php.

Here is the call graph for this function:

Here is the caller graph for this function:

reset ( )

public

Definition at line 69 of file plugin_datetime.php.

Here is the caller graph for this function:

setHour (   $iHour)

public

Parameters
integer$iHour

Definition at line 106 of file plugin_datetime.php.

Here is the caller graph for this function:

setMinute (   $iMinute)

public

Parameters
integer$iMinute

Definition at line 113 of file plugin_datetime.php.

Here is the caller graph for this function:

setSecond (   $iSecond)

public

Parameters
integer$iSecond

Definition at line 120 of file plugin_datetime.php.

Here is the caller graph for this function:

toString (   $sFormat = 'Y-m-d H:i:s')

public

Returns
string la date au format $sFormat cf format connu de la fonction php date()
Parameters
stringformat voulu en retour (appel la fonction date() )

Definition at line 129 of file plugin_datetime.php.

Here is the call graph for this function:


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