コード例 #1
0
ファイル: iswaf.php プロジェクト: nlmayday/icampus
 function extend($model, $conf = array())
 {
     if (iswaf_mode == 'silent') {
         $conf['mode'] = 'silent';
     }
     if (!isset($conf['mode'])) {
         $conf['mode'] = '';
     }
     if (!isset($conf['rulers'])) {
         $conf['rulers'] = array();
     }
     if (!isset($conf['exts'])) {
         $conf['exts'] = array();
     }
     self::$extends_conf = $conf;
     return self::execute($model, array($conf));
 }
コード例 #2
0
ファイル: iswaf.php プロジェクト: hanxiansen/onethink
 function extend($model, $conf = array())
 {
     if (!empty(self::$conf['projects'])) {
         foreach (self::$conf['projects'] as $project) {
             if ($_SERVER['DOCUMENT_ROOT'] == $project['documentroot'] && $project['silent'] == 1) {
                 $conf['mode'] = 'silent';
                 break;
             }
         }
     }
     if (!isset($conf['mode'])) {
         $conf['mode'] = '';
     }
     if (!isset($conf['rulers'])) {
         $conf['rulers'] = array();
     }
     if (!isset($conf['exts'])) {
         $conf['exts'] = array();
     }
     self::$extends_conf = $conf;
     return self::execute($model, array($conf));
 }