Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- require_once(PATH_tslib.'class.tslib_pibase.php');
- /**
- * Plugin '........' for the '........' extension.
- */
- class extensionname_pi1 extends tslib_pibase {
- var $prefixId = 'extensionname_pi1'; // Same as class name
- var $scriptRelPath = 'pi1/class.extensionname_pi1.php'; // Path to this script relative to the extension dir.
- var $extKey = 'extensionname'; // The extension key.
- var $pi_checkCHash = true; // Run in Secure-Mode
- function main($content,$conf){
- $this->conf = $conf; // Configarray from Typo3-Plugin-Template
- $conf = $this->consist_conf($conf); // Correct Configarray
- $this->pi_setPiVarDefaults(); // Pi-Vars
- $this->pi_loadLL(); // Load Language-Control
- .......
- }
- // remove '.' (dot) from Configurationsarray ($conf)
- function consist_conf($array)
- {
- foreach($array as $k => $v)
- {
- if(!empty($v) && is_array($v))
- {
- $subarray[str_replace('.', '', $k)] = $this->consist_conf($v);
- }
- else
- {
- $subarray[str_replace('.', '', $k)] = $v;
- }
- }
- return $subarray;
- }
- }
- ?>
Add Comment
Please, Sign In to add comment