Download the PHP package dhtmlx/scheduler-helper without Composer
On this page you can find all versions of the php package dhtmlx/scheduler-helper. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Informations about the package scheduler-helper
Scheduler Helper for PHP
Requirements
- PHP>=5.4 (PDO~)
- MySQL, PostgreSQL, Sqlite, etc.
Installation
- composer 'dhtmlx/scheduler-helper'
or
- just download the files from this repository '[email protected]:DHTMLX/scheduler-helper-php.git'
How to use
In order to create a helper object you should call the class constructor DHTMLX_Scheduler\Helper([$connectorDataArray]):
In the helper a standard set of fields for working with a table is defined:
To redefine the helper and create new fields, you should use the method 'setFieldsNames([$fieldsDataArray])':
For getting only fields that have set, you need just to set 'true' like second parameter in the function 'setFieldsNames([$fieldsDataArray], true)'
For setting weather server time zone will be considered you should use server_date config(false by default). If true helper will use server time, else will use dates as it goes from database.
For setting weather if recurring occurrence date is saved in UTC in database "occurrence_timestamp_in_utc" config can be used (false by default). If true helper processes exceptions dates as UTC.
To save data to the database, use the method 'saveData([dataArray])':
To delete data from the database, you should use the method 'deleteById([ID])':
To get data of the recurring events, use the method 'getData([$startDateStr], [$endDateStr])':
Tests
In order to run tests:
-
Install PHPUnit following this instruction https://phpunit.de/manual/current/en/installation.html
-
Configure DB settings in tests/TestConfig.php
- Enter repository folder and execute
License
The MIT License
Copyright (c) 2015 DHTMLX
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.