Skip to content

Commit db461ca

Browse files
authored
Merge pull request #11 from trms/fix-spelling-errors
fix spelling errors
2 parents 54df593 + 7981735 commit db461ca

1 file changed

Lines changed: 10 additions & 10 deletions

File tree

README.md

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ This package should be installed with composer and requires PHP 7+
1515
```bash
1616
composer install trms/carousel
1717
```
18-
## [Examples](#basic-useage-examples)
18+
## [Examples](#basic-usage-examples)
1919

2020
## [Servers & Requests](#servers-and-requests)
2121
[The Server Instance](#api)
@@ -44,7 +44,7 @@ composer install trms/carousel
4444

4545
## [Thrown Exceptions](#exceptions)
4646

47-
## Basic Useage Examples
47+
## Basic Usage Examples
4848

4949
### Creating a server instance
5050
Server methods that return more than one object will return a [collection](https://github.com/tightenco/collect), which can be treated like an array.
@@ -55,7 +55,7 @@ $server = new Server();
5555
$server->connect('http://my_carousel_server.com', 'username', 'password');
5656
```
5757

58-
### Requsting Carousel Resources
58+
### Requesting Carousel Resources
5959
All of the requests for Carousel resources are created by instantiating a `ModelRequest` with the appropriate `Model` class name and passing that to the server's `get` method. Passing an array of parameters to the `ModelRequest` is also important so that your query is limited to the items you want to get.
6060

6161
For example, to get a set of bulletins in a given zone:
@@ -68,7 +68,7 @@ $bulletins = $server->get($request);
6868
```
6969

7070
### Saving a Resource
71-
New or exisiting resources can be saved by passing them to the `save` method on a server instance.
71+
New or existing resources can be saved by passing them to the `save` method on a server instance.
7272

7373
```php
7474
use TRMS\Carousel\Models\BulletinTag;
@@ -87,7 +87,7 @@ use TRMS\Carousel\Models\Template;
8787

8888

8989
$templates = $server->get(new ModelRequest(Template::class, ['ZoneID'=>'5','IsDeleted'=>false]));
90-
$template = $templates->first(); // the server returns a laravel collection.
90+
$template = $templates->first(); // the server returns a Laravel Collection.
9191
$bulletin = Bulletin::fromTemplate($templates->first());
9292
// here you would likely modify the bulletin's 'Blocks' to alter content
9393
$group = new Group(['ZoneID'=>'5']);
@@ -143,7 +143,7 @@ File upload requests are used to post images video or audio to the server in ord
143143
|Method|Parameters|Returns|Description|
144144
|------|----------|-------|-----------|
145145
|constructor|Model ClassName, associative array|Request Object|Pass this the class name of the Model you would like to retrieve (ie: Bulletin::class) and an associative array that determines the values to create the resource with. (ie: ['ZoneID'=>'5']) (currently only ZoneID is supported and its also required)|
146-
|addFile|string|self - chainable|The URL or filepath of the file to upload to the server|
146+
|addFile|string|self - chainable|The URL or file path of the file to upload to the server|
147147

148148
### BulletinOrderRequest
149149
`TRMS\Carousel\Requests\BulletinOrderRequest`
@@ -186,7 +186,7 @@ A Bulletin is a piece of content displayed in Carousel. The closest analogy wou
186186
|setDateTimeOn|DateTime|self - chainable|Sets the `DateTimeOn` property.|
187187
|setDateTimeOff|DateTime|self - chainable|Sets the `DateTimeOff` property.|
188188
|resetCycleTimes|none|self - chainable|Resets the `CycleTimeOn` and `CycleTimeOff` to be 'on all day'.|
189-
|setCycleTimes|DateTime, DateTime|self - chainable|Sets the `CycleTimeOn` and `CycleTimeOff` propterties.|
189+
|setCycleTimes|DateTime, DateTime|self - chainable|Sets the `CycleTimeOn` and `CycleTimeOff` properties.|
190190
|setCycleTimeOn|DateTime|self - chainable|Sets the `CycleTimeOn` property.|
191191
|setCycleTimeOff|DateTime|self - chainable|Sets the `CycleTimeOff` property.|
192192
|setDaysOnAll|boolean (default true)|self - chainable|Sets display property for all days.|
@@ -202,13 +202,13 @@ A Bulletin is a piece of content displayed in Carousel. The closest analogy wou
202202
|DwellTime|int|How long the bulletin displays each rotation.|
203203
|UseSystemDwellTime|boolean|Should the system decide how long this bulletin displays each rotation, if false use the defined dwell time.|
204204
|IsAlert|boolean|Is this Bulletin an alert bulletin? Alerts will override any non-alert content in a zone.|
205-
|IsDeleted|boolean|Soft deletion property, soft deleted bulletins will be cleaned up and permenantly deleted after a time.|
205+
|IsDeleted|boolean|Soft deletion property, soft deleted bulletins will be cleaned up and permanently deleted after a time.|
206206
|IsScheduled|boolean|Does this bulletin respect the DateTimeOn and DateTimeOff values|
207207
|DateTimeIOn|string|The date and time the bulletin will begin playing. (there are helper methods for setting this value)|
208208
|DateTimeIOff|string|The date and time the bulletin will stop playing. (there are helper methods for setting this value)|
209209
|CycleTimeIOn|string|The time the bulletin will begin playing each day it is scheduled Only the time portion of this is used by the server. (there are helper methods for setting this value)|
210210
|CycleTimeIOn|string|The time the bulletin will begin playing each day it is scheduled Only the time portion of this is used by the server. (there are helper methods for setting this value)|
211-
|WeekdayOnOff|int|A bitfield representation of the days of the week that this bulletin will play during its schedule. (there are helper methods for setting this value)|
211+
|WeekdayOnOff|int|A bit-field representation of the days of the week that this bulletin will play during its schedule. (there are helper methods for setting this value)|
212212
|WeekdayOnOffDescription|string (read only)|A human readable representation of the WeekdayOnOff value.|
213213
|IsRepeating|boolean|Does this bulletin repeat playback every Nth bulletin.|
214214
|RepeatInterval|int|How often a repeating bulletin repeats.|
@@ -443,7 +443,7 @@ This represents a Group and the order of its Bulletins. The order of the `Bulle
443443

444444

445445
## Exceptions
446-
You can expect the following exceptions to be thrown if things go off the rails with the server, or if you attepmpt to do things that are unsupported or not allowed.
446+
You can expect the following exceptions to be thrown if things go off the rails with the server, or if you attempt to do things that are unsupported or not allowed.
447447

448448
`TRMS\Carousel\Exceptions\CarouselAPIException`
449449
`TRMS\Carousel\Exceptions\CarouselModelException`

0 commit comments

Comments
 (0)