Skip to content

Commit abec4d4

Browse files
committed
Updated BusinessHours class
1 parent aa068b5 commit abec4d4

File tree

10 files changed

+56
-10
lines changed

10 files changed

+56
-10
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
/vendor
22
composer.lock
33
.idea
4+
composer.phar
45
.settings

README.md

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -32,10 +32,11 @@ License
3232

3333
- PHP SDK improved to support the following new APIs
3434

35-
- [Share Emails API]()
36-
- [Calls Preference API]()
37-
- [Data Sharing Settings API]()
38-
- [Fetch Full Data API]()
35+
- [Get Related Records Count of a Record]()
36+
- [Calls Preference]()
37+
- [Record-Level Sharing of Emails]()
38+
- [Data Sharing Rules API]()
39+
- [Get Rich Text Fields API]()
3940

4041
For older versions, please [refer](https://github.com/zoho/zohocrm-php-sdk-8.0/releases).
4142

src/com/zoho/crm/api/businesshours/BusinessHours.php

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ class BusinessHours implements Model
1414
private $sameAsEveryday;
1515
private $dailyTiming;
1616
private $customTiming;
17+
private $timezone;
1718
private $keyModified=array();
1819

1920
/**
@@ -163,6 +164,27 @@ public function setCustomTiming(array $customTiming)
163164

164165
}
165166

167+
/**
168+
* The method to get the timezone
169+
* @return string A string representing the timezone
170+
*/
171+
public function getTimezone()
172+
{
173+
return $this->timezone;
174+
175+
}
176+
177+
/**
178+
* The method to set the value to timezone
179+
* @param string $timezone A string
180+
*/
181+
public function setTimezone(string $timezone)
182+
{
183+
$this->timezone=$timezone;
184+
$this->keyModified['timezone'] = 1;
185+
186+
}
187+
166188
/**
167189
* The method to check if the user has modified the given key
168190
* @param string $key A string

src/com/zoho/crm/api/emailtemplates/EmailTemplate.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
use com\zoho\crm\api\sendmail\Template;
99
use com\zoho\crm\api\util\Model;
1010

11-
class EmailTemplate extends InventoryTemplates implements Model, Template
11+
class EmailTemplate extends InventoryTemplates implements Template, Model
1212
{
1313

1414
private $attachments;

src/com/zoho/crm/api/inventorytemplates/InventoryTemplates.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
use com\zoho\crm\api\sendmail\Template;
55
use com\zoho\crm\api\util\Model;
66

7-
class InventoryTemplates implements Model, Template
7+
class InventoryTemplates implements Template, Model
88
{
99

1010
private $createdTime;

src/resources/JSONDetails.json

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

versions/1.0.0/src/com/zoho/crm/api/businesshours/BusinessHours.php

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ class BusinessHours implements Model
1414
private $sameAsEveryday;
1515
private $dailyTiming;
1616
private $customTiming;
17+
private $timezone;
1718
private $keyModified=array();
1819

1920
/**
@@ -163,6 +164,27 @@ public function setCustomTiming(array $customTiming)
163164

164165
}
165166

167+
/**
168+
* The method to get the timezone
169+
* @return string A string representing the timezone
170+
*/
171+
public function getTimezone()
172+
{
173+
return $this->timezone;
174+
175+
}
176+
177+
/**
178+
* The method to set the value to timezone
179+
* @param string $timezone A string
180+
*/
181+
public function setTimezone(string $timezone)
182+
{
183+
$this->timezone=$timezone;
184+
$this->keyModified['timezone'] = 1;
185+
186+
}
187+
166188
/**
167189
* The method to check if the user has modified the given key
168190
* @param string $key A string

versions/1.0.0/src/com/zoho/crm/api/emailtemplates/EmailTemplate.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
use com\zoho\crm\api\sendmail\Template;
99
use com\zoho\crm\api\util\Model;
1010

11-
class EmailTemplate extends InventoryTemplates implements Model, Template
11+
class EmailTemplate extends InventoryTemplates implements Template, Model
1212
{
1313

1414
private $attachments;

versions/1.0.0/src/com/zoho/crm/api/inventorytemplates/InventoryTemplates.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
use com\zoho\crm\api\sendmail\Template;
55
use com\zoho\crm\api\util\Model;
66

7-
class InventoryTemplates implements Model, Template
7+
class InventoryTemplates implements Template, Model
88
{
99

1010
private $createdTime;

versions/1.0.0/src/resources/JSONDetails.json

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)