-
-
Notifications
You must be signed in to change notification settings - Fork 48
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
use static var instead of session - #399
- Loading branch information
1 parent
430f1d6
commit a9bccdc
Showing
5 changed files
with
45 additions
and
42 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
<?php | ||
|
||
namespace OCA\Appointments\Backend; | ||
|
||
class HintVar | ||
{ | ||
public const APPT_NONE = 0; | ||
public const APPT_BOOK = 1; | ||
public const APPT_CONFIRM = 2; | ||
public const APPT_CANCEL = 3; | ||
public const APPT_SKIP = 4; | ||
public const APPT_TYPE_CHANGE = 5; | ||
|
||
/** @type int $hint */ | ||
private static $hint = self::APPT_NONE; | ||
|
||
public static function setHint(int $hint) | ||
{ | ||
self::$hint = $hint; | ||
} | ||
|
||
public static function getHint(): int | ||
{ | ||
return self::$hint; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters