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)); }
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)); }