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. These validators are used for example
to restrict the visibility of CalendarEntry only to specific dates.
The DateValidator interface has following instantiable implementations
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 accepts only dates after given date
Annual accepts only dates matching an annual date (a date ccurring once every year)
VaryingAnnual accepts only dates matching a varying annual date (a date ccurring once every year)
AnnuallyBetween accepts only dates between given dates annually
Before accepts only dates before given date
Between accepts only dates between given dates
Dates accepts only dates matching with given dates
Easter cases accepts only dates matching with given easter date in question
InPeriod accepts only dates matching given DatePeriod
Monthly accepts only dates belonging to given dates of a month
Months accepts only dates belonging to given months
Weekdays accepts only dates matching given weekdays (Monday = 1, ..., Sunday = 7)
Weeks accepts only dates belonging to given ISO (1-53)
weeks of a year
Years 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: 121
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: 195
class: Sphp\Documentation\SyntaxHighlighting\PHPExampleRunner
instance method: getExcecutionResult
file: /home3/fjlpxeha/playground.samiholck.fi/sphp/php/Sphp/Documentation/SyntaxHighlighting/PHPExampleRunner.php
line: 163
class: Sphp\Documentation\SyntaxHighlighting\PHPExampleRunner
instance method: buildHtmlFlow
file: /home3/fjlpxeha/playground.samiholck.fi/sphp/php/Sphp/Documentation/SyntaxHighlighting/PHPExampleRunner.php
line: 275
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: 75
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