Core  3.2
PHP API documentation
 All Data Structures Namespaces Files Functions Variables Pages
migrDates2iso.php File Reference

Go to the source code of this file.

Functions

 convertDateToIso (Action $action, $onlyAnalyze=false)
 
 convertFamilyDateToIso (Action $action, $onlyAnalyze=false)
 

Variables

global $action
 
const REDCOLOR "\033" . '[01;31m'
 
const GREENCOLOR "\033" . '[01;32m'
 
const STOPCOLOR "\033" . '[0m'
 
 $usage = new ApiUsage()
 
 $force
 
 $onlyAnalyze
 
 $locale = substr(getParam("CORE_LCDATE") , 0, 3)
 
if((!$force)&&$dbDate=="ISO,
DMY"&&$locale=="iso") if(($force)||($dbDate=="SQL,
DMY"&&$locale=="dmy")) 
else
 

Function Documentation

convertDateToIso ( Action  $action,
  $onlyAnalyze = false 
)

Send date conversion dd/mm/yyyy to yyyy-mm-dd

Parameters
Action$action
bool$onlyAnalyze

Definition at line 64 of file migrDates2iso.php.

+ Here is the call graph for this function:

convertFamilyDateToIso ( Action  $action,
  $onlyAnalyze = false 
)

Send date conversion for parameters and default values dd/mm/yyyy to yyyy-mm-dd

Parameters
Action$action
bool$onlyAnalyze

Definition at line 111 of file migrDates2iso.php.

Variable Documentation

global $action

Migrate date which are in arrays

Definition at line 10 of file migrDates2iso.php.

$force
Initial value:
= ($usage->addOptionalParameter("force", "force conversion although the configuration is good", array(
"yes",
"no"
) , "no") == "yes")
$usage

Definition at line 21 of file migrDates2iso.php.

$locale = substr(getParam("CORE_LCDATE") , 0, 3)

Definition at line 32 of file migrDates2iso.php.

$onlyAnalyze
Initial value:
= ($usage->addOptionalParameter("analyze", "only analyze ", array(
"yes",
"no"
) , "no") == "yes")
$usage

Definition at line 25 of file migrDates2iso.php.

$usage = new ApiUsage()

Definition at line 18 of file migrDates2iso.php.

if ((!$force)&&$dbDate=="ISO, DMY"&&$locale=="iso") if (($force)||($dbDate=="SQL, DMY"&&$locale=="dmy")) else
Initial value:
{
$err = sprintf("Wrong Config Date detected : CORE_LCDATE= '%s', database datestyle='%s'\n", $locale, $dbDate)
$locale
if($file) if($subject==""&&$file) if($subject=="") $err

Definition at line 54 of file migrDates2iso.php.

const GREENCOLOR "\033" . '[01;32m'

Definition at line 15 of file migrDates2iso.php.

const REDCOLOR "\033" . '[01;31m'

Definition at line 14 of file migrDates2iso.php.

const STOPCOLOR "\033" . '[0m'

Definition at line 16 of file migrDates2iso.php.

← centre documentaire © anakeen