Skip to content

Commit

Permalink
corrected typos in var names
Browse files Browse the repository at this point in the history
  • Loading branch information
goerdy committed Sep 17, 2023
1 parent 40b8fa3 commit 9d0d0a9
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 12 deletions.
10 changes: 3 additions & 7 deletions example.php
Original file line number Diff line number Diff line change
@@ -1,18 +1,14 @@
<?php
require('mkCal.php');

$DaysTextArray;
$DaysColorArray;
$DaysHollidaysArray;

$DaysTextArray[2][18]="goerdy";
$DaysColorArray[2][18]="#FF0000";
$DaysColorArray[4][22]="#00FF00";
$DaysColorArray[12][3]="#0000FF";
$DaysHollydaysArray[3][17]="true";
$DaysHolidaysArray[3][17]="true";

//function mkCal($title, $Year, $locale, $daysText, $daysColor, $daysHollidays, $highlightHollidays, $highlightSunday, $ighlightSaturday, $footer, $format, $colorSceme)
//function mkCal($title, $Year, $locale, $daysText, $daysColor, $daysHolidays, $highlightHolidays, $highlightSunday, $ighlightSaturday, $footer, $format, $colorSceme)
$pdf = new PDF('L','mm','A4');
$pdf->mkCal("Example Calendar", 2024 ,"en_US", $DaysTextArray, $DaysColorArray, $DaysHollydaysArray, "#AAAA00" ,"#FF0000", "#990000", "some customizeable footer text", "A4Landscape", "#0000FF");
$pdf->mkCal("Example Calendar", 2024 ,"en_US", $DaysTextArray, $DaysColorArray, $DaysHolidaysArray, "#AAAA00" ,"#FF0000", "#990000", "some customizeable footer text", "A4Landscape", "#0000FF");

?>
6 changes: 3 additions & 3 deletions mkCal.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,15 @@ class PDF extends FPDF
{

// makeCalendar
function mkCal($title, $Year, $locale, $daysText, $daysColor, $daysHollidays, $highlightHollidays, $highlightSunday, $highlightSaturday, $footer, $format, $colorSceme)
function mkCal($title, $Year, $locale, $daysText, $daysColor, $daysHolidays, $highlightHolidays, $highlightSunday, $highlightSaturday, $footer, $format, $colorSceme)
{
/*
$title = String that contains the Header-text of the Calendar
$locale = locale setting for Month and Day names (e.g. de_DE)
$daysText = 2-dimensional string array [month][day] for text in cell
$daysColor = 2-dimensional string array [month][day] for bgcolor of cell (HEX)
$daysHollidays = 2-dimensional bool array [month][day] true=day is holliday
$highlightHollidays = Hex key of highlightcolor of Hollidays
$daysHolidays = 2-dimensional bool array [month][day] true=day is holiday
$highlightHolidays = Hex key of highlightcolor of Holidays
$highlightSunday = Hex key of highlightcolor of Sundays
$highlightSaturday = Hex key of highlightcolor of Saturdays
$footer = String with footer text
Expand Down
2 changes: 0 additions & 2 deletions test.php

This file was deleted.

0 comments on commit 9d0d0a9

Please sign in to comment.