Skip to content

Commit

Permalink
back today i do not want to code,i am tired
Browse files Browse the repository at this point in the history
  • Loading branch information
onesy committed Jul 16, 2013
1 parent eebea99 commit 191f1bd
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 4 deletions.
1 change: 1 addition & 0 deletions frameworks/framework/CJFramework.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
include 'CJFrameworkModel.php';
include 'CJFrameworkCollection.php';
include 'CJFrameworkPluginLoader.php';
include 'CJThirdPartPluginConfig.php';

/**
* http header spell
Expand Down
19 changes: 17 additions & 2 deletions frameworks/framework/CJFrameworkPluginLoader.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,23 @@

class CJPluginLoader {

public static function CJThirdPartPluginRegister($plugin_name){
include 'CJThirdPartPluginConfig.php';
/**
* inverted configure ,it is the cfg dictonary of key words
* @var type
*/
public static $inverted_cfg = null;

/**
*
* @var type
*/
public static $cfg4loader = null;

public static function CJThirdPartPluginRegister($classname){

foreach (self::$cfg4loader as $key => $value) {

}

}

Expand Down
5 changes: 3 additions & 2 deletions frameworks/framework/CJThirdPartPluginConfig.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
<?php
define('REDIS','redis');

$thirdPartPlugins = array(
REDIS => array(),
REDIS => array('Redis.class.php' => 'Redis'),//means path = ThirdPartPlugin_root/Redis/Redis.class.php
);
global $thirdPartPlugins;
CJPluginLoader::$cfg4loader = $thirdPartPlugins;

0 comments on commit 191f1bd

Please sign in to comment.