-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* [iet:10314221][iet:10314088]
- Loading branch information
Showing
5 changed files
with
41 additions
and
18 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
<?php | ||
/** | ||
* Base class. | ||
* | ||
* @package auth_ouopenid | ||
* @author Nick Freear, 07-March-2018. | ||
* @copyright © 2018 The Open University. | ||
* | ||
* @link https://docs.moodle.org/dev/Data_manipulation_API#Inserting_Records | ||
*/ | ||
|
||
namespace auth_ouopenid\local; | ||
|
||
class base { | ||
|
||
/** Output arbitrary data, eg. to HTTP header. | ||
*/ | ||
public static function debug($obj) { | ||
static $count = 0; | ||
header(sprintf('Xx-auth-ou-openid-%02d: %s', $count, json_encode($obj))); | ||
$count++; | ||
} | ||
} |
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