Skip to content

Commit

Permalink
iCalcreator-2.27.20
Browse files Browse the repository at this point in the history
  • Loading branch information
iCalcreator committed May 25, 2019
1 parent 586a175 commit 2936c63
Show file tree
Hide file tree
Showing 27 changed files with 2,194 additions and 77 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ docs/summary and docs/using for details.

Stable 2.26.8 *(master)*.

Release 2.28 candidate (2.27.17)
Release 2.28 candidate (2.27.20)

Unsupported (tags):
- 2.26
Expand Down
6 changes: 3 additions & 3 deletions autoload.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
* copyright (c) 2007-2019 Kjell-Inge Gustafsson, kigkonsult, All rights reserved
* Link https://kigkonsult.se
* Package iCalcreator
* Version 2.27.18
* Version 2.27.20
* License Subject matter of licence is the software iCalcreator.
* The above copyright, link, package and version notices,
* this licence notice and the invariant [rfc5545] PRODID result use
Expand Down Expand Up @@ -33,12 +33,12 @@
* iCalcreator package autoloader
*
* @author Kjell-Inge Gustafsson, kigkonsult <ical@kigkonsult.se>
* @since 2.27.18 - 2019-04-09
* @since 2.27.20 - 2019-05-20
*/
/**
* Do NOT alter or remove the constant!!
*/
define( 'ICALCREATOR_VERSION', 'iCalcreator 2.27.18' );
define( 'ICALCREATOR_VERSION', 'iCalcreator 2.27.20' );
/**
* load iCalcreator src and support classes and Traits
*/
Expand Down
35 changes: 18 additions & 17 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,23 +2,24 @@
"name": "kigkonsult/icalcreator",
"type": "library",
"description": "iCalcreator is the PHP implementation of rfc2445/rfc5545, management of calendar information",
"keywords": [ "rfc2445",
"rfc5545",
"rfc6321",
"management",
"calendar",
"vCalendar",
"vevent",
"vtodo",
"vjournal",
"vfreebusy",
"valarm",
"vtimezone",
"standard",
"daylight",
"file" ],
"time" : "2019-04-04",
"license": ["LGPL-3.0-or-later"],
"keywords": [
"rfc2445",
"rfc5545",
"rfc6321",
"management",
"calendar",
"vCalendar",
"vevent",
"vtodo",
"vjournal",
"vfreebusy",
"valarm",
"vtimezone",
"standard",
"daylight"
],
"time" : "2019-05-25",
"license": "LGPL-3.0-or-later",
"homepage": "https://kigkonsult.se",
"support": {
"issues": "https://github.com/iCalcreator/iCalcreator/issues"
Expand Down
18 changes: 9 additions & 9 deletions docs/summary.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
copyright (c) 2007-2019 Kjell-Inge Gustafsson, kigkonsult, All rights reserved
Link https://kigkonsult.se
Package iCalcreator
Version 2.27.17
Version 2.27.20
License Subject matter of licence is the software iCalcreator.
The above copyright, link, package and version notices,
this licence notice and the invariant [rfc5545] PRODID result use
Expand All @@ -29,12 +29,12 @@
-->
<html lang="en">
<head>
<title>iCalcreator 2.27.17 manual</title>
<title>iCalcreator 2.27.20 manual</title>
<meta http-equiv="Content-Type" content="text/html;charset=utf-8">
<meta name="author" content="Kjell-Inge Gustafsson, kigkonsult, All rights reserved">
<meta name="copyright" content="2007-2019 Kjell-Inge Gustafsson, kigkonsult">
<meta name="keywords" content="ical, calendar, calender, xcal, xml, icalender, rfc2445, rfc5545, vcalender, php, create">
<meta name="description" content="using iCalcreator v2.27.17">
<meta name="description" content="using iCalcreator v2.27.20">
<style type="text/css">
* {
FONT-FAMILY : "Bitstream Vera Sans", Helvetica, "Lucida Grande","Lucida Sans Unicode", Lucida, Arial, Geneva, sans-serif;
Expand Down Expand Up @@ -144,9 +144,9 @@
</head>
<body>
<a name="top"></a>
<p class="header">iCalcreator v2.27.17</p>
<p class="header">iCalcreator v2.27.20</p>
<p>
iCalcreator v2.27.17<br>
iCalcreator v2.27.20<br>
Copyright &copy; 2007-2019 Kjell-Inge Gustafsson, kigkonsult, All rights reserved.<br>
<a href="#Copyright_and_Licence">Copyright_and_Licence</a><br>
<a href="https://kigkonsult.se" title="kigkonsult.se" target="_blank">kigkonsult.se</a><br>
Expand Down Expand Up @@ -192,7 +192,7 @@ <h4>The software</h4>
events, agendas, tasks, reports, totos and journaling information.
</p>
<p>
For iCalcreator 2.27.17 version (and later), <em>PHP</em> version 5.6+ is required.
For iCalcreator 2.27.20 version (and later), <em>PHP</em> version 5.6+ is required.
</p>

<h4>iCal</h4>
Expand Down Expand Up @@ -280,13 +280,13 @@ <h4>Install</h4>
<dt>Or
<dd> include the (download) iCalcreator folder to your include-path
<dd>Add
<dd><span class="format">require_once &quot;[path/]iCalcreator-2.27.17/autoload.php&quot;;</span>
<dd><span class="format">require_once &quot;[path/]iCalcreator-2.27.20/autoload.php&quot;;</span>
<dd>to your <em>PHP</em>-script.
<dd>The iCalcreator invoker has changed since previous version!
</dl>

<p>
iCalcreator 2.27.17 is using namespace &quot;Kigkonsult\Icalcreator&quot;.
iCalcreator 2.27.20 is using namespace &quot;Kigkonsult\Icalcreator&quot;.
</p>


Expand Down Expand Up @@ -712,7 +712,7 @@ <h2>COPYRIGHT AND LICENSE</h2>
<tr><td>Copyright<td>(c) 2007-2019 Kjell-Inge Gustafsson, kigkonsult, All rights reserved
<tr><td>Link <td>https://kigkonsult.se
<tr><td>Package <td>iCalcreator
<tr><td>Version <td>2.27.17
<tr><td>Version <td>2.27.20
<tr><td class="top">License <td>
Subject matter of licence is the software iCalcreator.<br>
The above copyright, link, package and version notices,<br>
Expand Down
20 changes: 10 additions & 10 deletions docs/using.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
copyright (c) 2007-2019 Kjell-Inge Gustafsson, kigkonsult, All rights reserved
Link https://kigkonsult.se
Package iCalcreator
Version 2.27.17
Version 2.27.20
License Subject matter of licence is the software iCalcreator.
The above copyright, link, package and version notices,
this licence notice and the invariant [rfc5545] PRODID result use
Expand All @@ -28,12 +28,12 @@
-->
<html lang="en">
<head>
<title>iCalcreator 2.27.17 manual</title>
<title>iCalcreator 2.27.20 manual</title>
<meta http-equiv="Content-Type" content="text/html;charset=utf-8">
<meta name="author" content="Kjell-Inge Gustafsson, kigkonsult, All rights reserved">
<meta name="copyright" content="2007-2019 Kjell-Inge Gustafsson, kigkonsult">
<meta name="keywords" content="ical, calendar, calender, xcal, xml, icalender, rfc2445, rfc5545, vcalender, php, create">
<meta name="description" content="using iCalcreator v2.27.17">
<meta name="description" content="using iCalcreator v2.27.20">
<style type="text/css">
* {
FONT-FAMILY : "Bitstream Vera Sans", Helvetica, "Lucida Grande","Lucida Sans Unicode", Lucida, Arial, Geneva, sans-serif;
Expand Down Expand Up @@ -158,9 +158,9 @@
</head>
<body>
<a name="top"></a>
<p class="header">iCalcreator v2.27.17</p>
<p class="header">iCalcreator v2.27.20</p>
<p>
iCalcreator v2.27.17<br>
iCalcreator v2.27.20<br>
Copyright &copy; 2007-2019 Kjell-Inge Gustafsson, kigkonsult, All rights reserved.<br>
<a href="#Copyright_and_Licence">Copyright_and_Licence</a><br>
<a href="https://kigkonsult.se" title="kigkonsult.se" target="_blank">kigkonsult.se</a><br>
Expand Down Expand Up @@ -212,7 +212,7 @@ <h2>Preface</h2>
iCalcreator features create, parse, edit and select <strong>calendar</strong> and <strong>calendar</strong> components.
</p>
<p>
For iCalcreator 2.27.17 version (and later), <em>PHP</em> version &gt;= 5.6 is required.
For iCalcreator 2.27.20 version (and later), <em>PHP</em> version &gt;= 5.6 is required.
</p>
<br>
<a href="#INDEX">[index]</a> <a href="#top">[top]</a>
Expand Down Expand Up @@ -333,11 +333,11 @@ <h4>xCal</h4>
<dt>Or
<dd> include the (download) iCalcreator folder to your include-path
<dd>Add
<dd><span class="format">require_once &quot;[path/]iCalcreator-2.27.17/autoload.php&quot;;</span>
<dd><span class="format">require_once &quot;[path/]iCalcreator-2.27.20/autoload.php&quot;;</span>
<dd>to your <em>PHP</em>-script.
</dl>
<p>
iCalcreator 2.27.17 is using namespace &quot;Kigkonsult\Icalcreator&quot;.
iCalcreator 2.27.20 is using namespace &quot;Kigkonsult\Icalcreator&quot;.
</p>

<br>
Expand Down Expand Up @@ -2990,7 +2990,7 @@ <h5>Set X-PROPERTY</h5>

$str = [
&quot;BEGIN:VCALENDAR&quot;,
&quot;PRODID:-//kigkonsult.se//NONSGML kigkonsult.se iCalcreator 2.27.17//&quot;,
&quot;PRODID:-//kigkonsult.se//NONSGML kigkonsult.se iCalcreator 2.27.20//&quot;,
&quot;VERSION:2.0&quot;,
&quot;BEGIN:VEVENT&quot;,
&quot;DTSTART:20101224T190000Z&quot;,
Expand Down Expand Up @@ -8736,7 +8736,7 @@ <h5>XML2iCal</h5>
<tr><td>Copyright<td>(c) 2007-2019 Kjell-Inge Gustafsson, kigkonsult, All rights reserved
<tr><td>Link <td>https://kigkonsult.se
<tr><td>Package <td>iCalcreator
<tr><td>Version <td>2.27.17
<tr><td>Version <td>2.27.20
<tr><td class="top">License <td>
Subject matter of licence is the software iCalcreator.<br>
The above copyright, link, package and version notices,<br>
Expand Down
9 changes: 6 additions & 3 deletions phpunit.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
copyright (c) 2007-2019 Kjell-Inge Gustafsson, kigkonsult, All rights reserved
Link https://kigkonsult.se
Package iCalcreator
Version 2.27.17
Version 2.27.20
License Subject matter of licence is the software iCalcreator.
The above copyright, link, package and version notices,
this licence notice and the invariant [rfc5545] PRODID result use
Expand Down Expand Up @@ -35,7 +35,7 @@
convertWarningsToExceptions="true"
processIsolation="false"
syntaxCheck="false"
bootstrap="autoload.php"
bootstrap="test/autoload.php"
>
<testsuites>
<testsuite name="Vcalendar Tests">
Expand Down Expand Up @@ -69,7 +69,10 @@
<file>./test/VtimezoneTest.php</file>
</testsuite>
<testsuite name="Recur Tests">
<file>./test/RecurTest.php</file>
<file>./test/RecurYearTest.php</file>
<file>./test/RecurMonthTest.php</file>
<file>./test/RecurWeekTest.php</file>
<file>./test/RecurDayTest.php</file>
<file>./test/SelectComponentsTest.php</file>
</testsuite>
<testsuite name="vCard Tests">
Expand Down
3 changes: 3 additions & 0 deletions releaseNotes
Original file line number Diff line number Diff line change
Expand Up @@ -45,3 +45,6 @@ iCalcreator 2.27.16 releaseNotes
2.27.18 bugs - SelectFactory::selectComponents args calendar, cType reviewing

2.27.19 bug - typo in DateTimeFactory::dateTimeHasOffset
------------

2.27.20 bug - Break/Continue mixup in RecurFactory::recurWeeklySimple2: split up tests, minor code clean up
7 changes: 3 additions & 4 deletions src/IcalBase.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
* copyright (c) 2007-2019 Kjell-Inge Gustafsson, kigkonsult, All rights reserved
* Link https://kigkonsult.se
* Package iCalcreator
* Version 2.27.18
* Version 2.27.20
* License Subject matter of licence is the software iCalcreator.
* The above copyright, link, package and version notices,
* this licence notice and the invariant [rfc5545] PRODID result use
Expand All @@ -27,7 +27,6 @@
*
* This file is a part of iCalcreator.
*/

namespace Kigkonsult\Icalcreator;

use Kigkonsult\Icalcreator\Util\Util;
Expand Down Expand Up @@ -61,7 +60,7 @@
* Do NOT alter or remove the constant!!
*/
if( ! defined( 'ICALCREATOR_VERSION' )) {
define( 'ICALCREATOR_VERSION', 'iCalcreator 2.27.18' );
define( 'ICALCREATOR_VERSION', 'iCalcreator 2.27.20' );
}

/**
Expand All @@ -70,7 +69,7 @@
* Properties and methods shared by Vcalendar and CalendarComponents
*
* @author Kjell-Inge Gustafsson, kigkonsult <ical@kigkonsult.se>
* @since 2.27.9 - 2018-12-29
* @since 2.27.20 - 2019-05-20
*/
abstract class IcalBase implements IcalInterface
{
Expand Down
5 changes: 2 additions & 3 deletions src/Util/RecurFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -906,7 +906,6 @@ public static function recurWeeklySimple2(
switch( true ) {
case( $Ymd <= $fcnStartYmd ) :
$wDate = $wDate->modify( $modify1 );
continue;
break;
case( $endYmd < $Ymd ) :
break 2;
Expand All @@ -917,7 +916,7 @@ public static function recurWeeklySimple2(
}
}
$wDate = $wDate->modify( $modify1 );
continue;
break;
default :
// now is the first day of next week
if( 1 < $recur[Vcalendar::INTERVAL] ) {
Expand Down Expand Up @@ -1317,7 +1316,7 @@ public static function fullRecur2date(
}
} // end if( isset( $recur[Vcalendar::UNTIL] ))
if( $wDateYMD > $fcnEndYMD ) {
return []; // nothing to do.. .
return; // nothing to do.. .
}
$recurFreqIsYearly = ( Vcalendar::YEARLY == $recur[Vcalendar::FREQ] );
$recurFreqIsMonthly = ( Vcalendar::MONTHLY == $recur[Vcalendar::FREQ] );
Expand Down
3 changes: 0 additions & 3 deletions src/Util/RexdateFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,6 @@ public static function formatExdate( $exdateData, $allowEmpty ) {
$content = $attributes = null;
foreach(( array_keys( $theExdate[Util::$LCvalue] )) as $eix ) {
$exdatePart = $theExdate[Util::$LCvalue][$eix];
$parNo = count( $exdatePart );
$formatted = DateTimeFactory::dateArrayToStr( $exdatePart, $isValueDate );
if( isset( $theExdate[Util::$LCparams][Vcalendar::TZID] )) {
$formatted = str_replace( Vcalendar::Z, null, $formatted );
Expand Down Expand Up @@ -534,8 +533,6 @@ public static function prepInputRdate( array $rDates, $params=null, $compType=nu
$output[Util::$LCparams][Vcalendar::TZID] = $paramTZid;
}
}
else
unset( $wDate[Util::$LCtz] );
$output[Util::$LCparams] = array_filter( $output[Util::$LCparams] );
return $output;
}
Expand Down
4 changes: 0 additions & 4 deletions src/Util/Util.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,14 +31,10 @@
namespace Kigkonsult\Icalcreator\Util;

use Kigkonsult\Icalcreator\Vcalendar;
use InvalidArgumentException;

use function array_key_exists;
use function in_array;
use function is_array;
use function method_exists;
use function sort;
use function strpos;
use function strtolower;
use function strtoupper;
use function ucfirst;
Expand Down
2 changes: 0 additions & 2 deletions test/DateIntervalTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,6 @@
use Kigkonsult\Icalcreator\Util\ParameterFactory;
use Exception;

include_once 'DtBase.php';

/**
* class DateTzTest, testing VALUE DATETIME for Standard/Daylight (allways local time), also empty value, DTSTART
*
Expand Down
2 changes: 0 additions & 2 deletions test/DateTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,6 @@
use Kigkonsult\Icalcreator\Util\DateTimeFactory;
use Kigkonsult\Icalcreator\Util\Util;

include_once 'DtBase.php';

/**
* class DateTest, testing VALUE DATE, also empty value, DTSTART, DTEND, DUE, RECURRENCE_ID, (single) EXDATE + RDATE
*
Expand Down
2 changes: 0 additions & 2 deletions test/DateTimeTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,6 @@
use Kigkonsult\Icalcreator\Util\DateTimeFactory;
use Kigkonsult\Icalcreator\Util\Util;

include_once 'DtBase.php';

/**
* class DateTimeTest, testing DTSTART, DTEND, DUE, RECURRENCE_ID, (single) EXDATE + RDATE
*
Expand Down
2 changes: 0 additions & 2 deletions test/DateTimeUTCTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,6 @@
use Kigkonsult\Icalcreator\Util\StringFactory;
use Kigkonsult\Icalcreator\Util\Util;

include_once 'DtBase.php';

/**
* class DateTest, testing DTSTAMP, LAST_MODIFIED, CREATED, COMPLETED, DTSTART (VFREEBUSY)
*
Expand Down
2 changes: 0 additions & 2 deletions test/DateTzTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,6 @@
use Kigkonsult\Icalcreator\Util\Util;
use Kigkonsult\Icalcreator\Util\ParameterFactory;

include_once 'DtBase.php';

/**
* class DateTzTest, testing VALUE DATETIME for Standard/Daylight (allways local time), also empty value, DTSTART
*
Expand Down
Loading

0 comments on commit 2936c63

Please sign in to comment.