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

Public Member Functions

 __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

 $iYear
 
 $iMonth
 
 $iDay
 

Detailed Description

plugin_date classe pour gerer la date

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

Definition at line 23 of file plugin_date.php.

Constructor & Destructor Documentation

__construct (   $sDate = null,
  $sFormat = 'Y-m-d' 
)

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_date.php.

Here is the call graph for this function:

Member Function Documentation

addDay (   $iNb)

calcul date j+ public

Parameters
int$iNbcalcul date + $iNb jour

Definition at line 197 of file plugin_date.php.

Here is the call graph for this function:

addMonth (   $iNb)

calcul date m+ public

Parameters
int$iNbcalcul date + $iNb mois

Definition at line 207 of file plugin_date.php.

Here is the call graph for this function:

addYear (   $iNb)

calcul date a+ public

Parameters
int$iNbcalcul date + $iNb a

Definition at line 217 of file plugin_date.php.

Here is the call graph for this function:

getDay (   $sFormat = 'DD')

public

Returns
string Retourne le jour selon le format $sFormat
Parameters
string$sFormatdefinit le format a utiliser pour le retour (DD par defaut, ou D)

Definition at line 165 of file plugin_date.php.

getMkTime ( )

public

Returns
string retourne le mktime de la date

Definition at line 258 of file plugin_date.php.

Here is the caller graph for this function:

getMonth (   $sFormat = 'MM')

public

Returns
string Retourne le mois selon le format $sFormat
Parameters
string$sFormatdefinit le format a utiliser pour le retour (MM par defaut, ou M)

Definition at line 115 of file plugin_date.php.

Here is the caller graph for this function:

getNumberWeek ( )

public

Returns
string Retourne le numero de la semaine

Definition at line 186 of file plugin_date.php.

Here is the call graph for this function:

getStringDay (   $sFormat = 'DD')

public

Returns
string Retourne le jour au format texte

Definition at line 146 of file plugin_date.php.

Here is the call graph for this function:

getStringMonth (   $sFormat = 'MM')

public

Returns
string Retourne le mois au format texte

Definition at line 129 of file plugin_date.php.

Here is the call graph for this function:

getWeekDay ( )

public

Returns
string Retourne le jour de la semaine

Definition at line 179 of file plugin_date.php.

Here is the call graph for this function:

Here is the caller graph for this function:

getYear (   $sFormat = 'YYYY')

public

Returns
string Retourne l'annee selon le format $sFormat
Parameters
string$sFormatdefinit le format a utiliser pour le retour (YYYY par defaut ou YY)

Definition at line 100 of file plugin_date.php.

isBank ( )

public

Returns
bool retourne true/false selon que la journee soit ferie (noel,jour de l'an,jeudi de l'ascension, dimanche de paque,samedi,dimanche,lundi de paques, 1er mai, 8 mai)

Definition at line 267 of file plugin_date.php.

Here is the call graph for this function:

isToday ( )

public

Returns
bool retourne true/false selon que la date soit aujourd'hui

Definition at line 372 of file plugin_date.php.

isValid ( )

public

Returns
bool retourne true/false selon que la date est ou non valide

Definition at line 341 of file plugin_date.php.

Here is the caller graph for this function:

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 49 of file plugin_date.php.

Here is the call graph for this function:

Here is the caller graph for this function:

removeDay (   $iNb)

calcul date j- public

Parameters
int$iNbcalcul date - $iNb jour

Definition at line 228 of file plugin_date.php.

Here is the call graph for this function:

removeMonth (   $iNb)

calcul date m- public

Parameters
int$iNbcalcul date - $iNb mois

Definition at line 238 of file plugin_date.php.

Here is the call graph for this function:

removeYear (   $iNb)

calcul date a- public

Parameters
int$iNbcalcul date - $iNb a

Definition at line 248 of file plugin_date.php.

Here is the call graph for this function:

reset ( )

public

Definition at line 64 of file plugin_date.php.

Here is the caller graph for this function:

setDay (   $iDay)

public

Parameters
integer$iDay

Definition at line 91 of file plugin_date.php.

Here is the caller graph for this function:

setMonth (   $iMonth)

public

Parameters
integer$iMonth

Definition at line 84 of file plugin_date.php.

Here is the caller graph for this function:

setYear (   $iYear)

public

Parameters
integer$iYear

Definition at line 77 of file plugin_date.php.

Here is the caller graph for this function:

toString (   $sFormat = 'Y-m-d')

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 364 of file plugin_date.php.

Here is the call graph for this function:


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