This repository has been archived by the owner on Aug 13, 2020. It is now read-only.
-
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.
- Loading branch information
1 parent
0e022d3
commit 30811f3
Showing
22 changed files
with
338 additions
and
183 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
<?php | ||
|
||
/** | ||
* This file is part of the SurfStack package. | ||
* | ||
* @package SurfStack | ||
* @copyright Copyright (C) Joseph Spurrier. All rights reserved. | ||
* @author Joseph Spurrier (http://josephspurrier.com) | ||
* @license http://www.apache.org/licenses/LICENSE-2.0.html | ||
*/ | ||
|
||
namespace SurfStack\Templating\Core; | ||
|
||
/** | ||
* SurfStack Template Plugin Base | ||
* | ||
* Renders content in a template. | ||
*/ | ||
abstract class PluginBase | ||
{ | ||
/** | ||
* Array of settings from Template Engine | ||
* @var array | ||
*/ | ||
protected $arrEngineInternals = array(); | ||
|
||
/** | ||
* Array of assigned variables from Template Engine | ||
* @var array | ||
*/ | ||
protected $arrEngineVariables = array(); | ||
|
||
/** | ||
* Array of passed variables to the plugin | ||
* @var array | ||
*/ | ||
protected $arrPluginVariables = array(); | ||
|
||
/** | ||
* Store a data to a variable | ||
* @param string $key | ||
* @param string $value | ||
*/ | ||
public function store($key, $value) | ||
{ | ||
$this->$key = $value; | ||
} | ||
} |
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 was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.