-
Base Methods
-
jf::$RBAC->Assign($Role, $Permission)
-
jf::$RBAC->Check($Permission, $UserID)
-
jf::$RBAC->Enforce($Permission)
-
jf::$RBAC->Reset($Ensure=false)
-
This file contains hidden or 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 array structure | |
* | |
* Goals: | |
* To define routes so we can facilitate 'Clean URLS' and future development | |
* To define permissions | |
* To allow plugins to override/add to other core, provider (3rd Pary) and custom plugins, without touching their core code | |
* Note: Template overrides are separate from Plugin overrides and will be applied in | |
* the Template system using the directory structure |
This file contains hidden or 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
<div id="navigation"> | |
<div class="center_wrapper"> | |
<ul> | |
<li class="current_page_item"> | |
<a href="http://localhost/AllianceCMS">Home</a> | |
</li> | |
<li> | |
<a href="http://localhost/AllianceCMS/hello/hey">Ciao Folks</a> | |
</li> | |
<li> |
This file contains hidden or 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 | |
file_put_contents($dbConnFile, $data); | |
$currentOS = strtoupper(substr(PHP_OS, 0, 3)); | |
if ($currentOS != 'WIN') { | |
chmod(DBCONNFILE, 0644); | |
} |
Proposed Interface:
-
Offer Two Interfaces:
-
All in one
use PhpRbac\Rbac; $rbac = new Rbac; // Equals original jb::$RBAC object structure
-
This file contains hidden or 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
@ECHO OFF | |
php "%~dp0phpDocumentor.phar" %* | |
PAUSE |
This file contains hidden or 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
#Naming Conventions | |
**Retrieval** | |
get(Descriptor) = Retrieve element(s), descriptor is optional | |
getOne = Retrieve single element | |
getSet = Retrieve a defined collection of elements | |
getAll = Retrieve all elements |
This file contains hidden or 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 | |
... | |
public function logoutAttempt() | |
{ | |
$sql = new Db(); | |
$this->sessionAxis->start(); |
This file contains hidden or 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 | |
... | |
public function loginAttempt() | |
{ | |
$sql = new Db(); | |
$form_helper = new FormHelper($this->basePath); |
This file contains hidden or 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 | |
/** | |
* Create random salt for blowfish crypt hash | |
*/ | |
$acmsSalt = sprintf('$2y$%02d$', 12).substr(str_replace('+', '.', base64_encode(pack('N4', mt_rand(), mt_rand(), mt_rand(), mt_rand()))), 0, 22).'$'; | |
OlderNewer