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
<?php | |
/** | |
* @desc Loop the primes as suggested by https://www.testingbrain.com/php-tutorial/a-prime-number-list-generation-php-script.html. | |
* @return array Primes and the sum of the primes up to and including that one. | |
*/ | |
function getPrimeArray(){ | |
$count = 0 ; | |
$prime = 2 ; | |
$table = []; |
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
public function __construct( | |
\<Vendor>\<ModuleName>\Helper\HelperName $helperName, | |
array $data = [] | |
) { | |
$this->_helperName = $helperName; | |
} |
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
<?php | |
namespace Elephant\CFParent\Helper; | |
class ElephantData extends \Magento\Framework\App\Helper\AbstractHelper | |
{ | |
public function __construct( | |
\Magento\Framework\App\Helper\Context $context, | |
array $data = [] |
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
<?php | |
/* | |
Plugin Name: Simple Shibboleth Authentication | |
Author: Martin Parm | |
Version: 0.0.1 | |
*/ | |
function custom_login(){ | |
$headers = getallheaders(); | |
// TODO: Bail on no SSO-heaers |