Calendar application
Namespace: Sphp \ Apps \ Calendars
Features
Sports log views
Holidays, Birthdays
Schedules
Example
Calendar example
Calendar Entries and Diaries
Namespace: Sphp \ Apps \ Calendars
Date Validation
Namespace: Sphp \ Apps \ Calendars \ Constraints
An instance of DateValidator defines a constraint for
validating Date instances. It is used to restrict some build-in
implementations of CalendarEntry visibility only to specific dates.
DateValidator defines a validator for Date instances.
Constraints is a collecton of any DateValidator instances.:
This aggregate is valid only if all of its members are valid.
AllOf is an aggregate of any DateValidator instances:
This aggregate validates date instaces as valid only if all of its members do so as well.
NoneOf is an aggregate of any DateValidator instances:
This aggregate validates Date instaces as valid only if all of its member constraints are invalid.
Factory is a static factory for following constraints:
After instance accepts only dates after given date
Annual instance accepts only dates matching an annual date
AnnuallyBetween instance accepts only dates between given dates annually
Before instance accepts only dates before given date
Between instance accepts only dates between given dates
Dates instance accepts only dates matching with given dates
Easter instance accepts only dates matching with given easter date
InPeriod instance accepts only dates matching given DatePeriod
Monthly instance accepts only dates belonging to given dates of a month
Months instance accepts only dates belonging to given months
VaryingAnnual instance accepts only dates matching a varying annual date
Weekdays instance accepts only dates belonging to given weeks of a year
Weeks instance accepts only dates belonging to given weeks of a year
Years instance accepts only dates belonging to given years
[1]
Calendar Entries and Diaries
Namespace: Sphp \ Apps \ Calendars \ Diaries
CalendarEntry
Workout implements calendar entry for sports workouts
NoteInterface defines further properties common for many different calendar entries.
SimpleNote is a rudamentary note without any time information
HolidayInterface defines all holidays.
Birthday is instances:
This aggregate validates date instaces as valid only if all of its members do so as well.
Holiday is instances:
This aggregate validates Date instaces as valid only if all of its member constraints are invalid.
CalendarEvent defines calendar events
YAML versionJSON versionNEON version
PHP versionYAML versionJSON versionNEON version
Calendar views
Namespace: Sphp \ Apps \ Calendars \ Views
Example
Calendar example
Sphp\Stdlib\Exceptions\FileSystemException require_once(/home3/fjlpxeha/playground.samiholck.fi/sphp/../fitnotes-app/setup.php): Failed to open stream: No such file or directory code: 2 file: /home3/fjlpxeha/playground.samiholck.fi/sphp/php/Sphp/Config/ErrorHandling/ErrorToExceptionThrower.php line: 163 Trace information file: /home3/fjlpxeha/playground.samiholck.fi/manual-app/content/examples/Sphp/Apps/Calendars/Views/DateCell/DateCell.php
line: 11
class: Sphp\Config\ErrorHandling\ErrorToExceptionThrower
instance method: __invoke
arguments: 2 'require_once(/home3/fjlpxeha/playground.samiholck.fi/sphp/../fitnotes-app/setup.php): Failed to open stream: No such file or directory' '/home3/fjlpxeha/playground.samiholck.fi/manual-app/content/examples/Sphp/Apps/Calendars/Views/DateCell/DateCell.php' 11 file: /home3/fjlpxeha/playground.samiholck.fi/manual-app/content/examples/Sphp/Apps/Calendars/Views/DateCell/DateCell.php
line: 11
function: require_once
file: /home3/fjlpxeha/playground.samiholck.fi/sphp/php/Sphp/Stdlib/Filesystem.php
line: 101
function: include
arguments: '/home3/fjlpxeha/playground.samiholck.fi/manual-app/content/examples/Sphp/Apps/Calendars/Views/DateCell/DateCell.php' file: /home3/fjlpxeha/playground.samiholck.fi/sphp/php/Sphp/Documentation/SyntaxHighlighting/PHPExampleRunner.php
line: 123
class: Sphp\Stdlib\Filesystem
static method: executePhpToString
arguments: './manual-app/content/examples/Sphp/Apps/Calendars/Views/DateCell/DateCell.php' file: /home3/fjlpxeha/playground.samiholck.fi/sphp/php/Sphp/Documentation/SyntaxHighlighting/PHPExampleRunner.php
line: 197
class: Sphp\Documentation\SyntaxHighlighting\PHPExampleRunner
instance method: getExcecutionResult
file: /home3/fjlpxeha/playground.samiholck.fi/sphp/php/Sphp/Documentation/SyntaxHighlighting/PHPExampleRunner.php
line: 165
class: Sphp\Documentation\SyntaxHighlighting\PHPExampleRunner
instance method: buildHtmlFlow
file: /home3/fjlpxeha/playground.samiholck.fi/sphp/php/Sphp/Documentation/SyntaxHighlighting/PHPExampleRunner.php
line: 277
class: Sphp\Documentation\SyntaxHighlighting\PHPExampleRunner
instance method: buildAccordion
file: /home3/fjlpxeha/playground.samiholck.fi/manual-app/content/docs/sphp-apps-calendars-views.php
line: 22
class: Sphp\Documentation\SyntaxHighlighting\PHPExampleRunner
instance method: __toString
file: /home3/fjlpxeha/playground.samiholck.fi/manual-app/app/commonmark.php
line: 42
function: include
arguments: '/home3/fjlpxeha/playground.samiholck.fi/manual-app/content/docs/sphp-apps-calendars-views.php' file: /home3/fjlpxeha/playground.samiholck.fi/manual-app/content/docs/sphp-apps-calendars.php
line: 38
class: Man\Routers\ManualPageBuilder
instance method: {closure}
arguments: 'Sphp\Apps\Calendars\Views' file: /home3/fjlpxeha/playground.samiholck.fi/manual-app/app/php/classes/Man/Routers/ManualPageBuilder.php
line: 58
function: include
arguments: '/home3/fjlpxeha/playground.samiholck.fi/manual-app/content/docs/sphp-apps-calendars.php' file: /home3/fjlpxeha/playground.samiholck.fi/manual-app/app/php/classes/Man/Routers/ManualPageBuilder.php
line: 43
class: Man\Routers\ManualPageBuilder
instance method: parse
arguments: 'sphp-apps-calendars' class: Man\Routers\ManualPageBuilder
instance method: __invoke
arguments: object(Sphp\Router\RouteData) file: /home3/fjlpxeha/playground.samiholck.fi/sphp/php/Sphp/Router/Router.php
line: 149
function: call_user_func
arguments: object(Man\Routers\ManualPageBuilder) object(Sphp\Router\RouteData) file: /home3/fjlpxeha/playground.samiholck.fi/manual-app/app/php/loaders.php
line: 22
class: Sphp\Router\Router
instance method: execute
file: /home3/fjlpxeha/playground.samiholck.fi/index.php
line: 7
function: require_once
arguments: '/home3/fjlpxeha/playground.samiholck.fi/manual-app/app/php/loaders.php' References External links