Project

General

Profile

« Previous | Next » 

Revision 1982

Added by darkviper about 11 years ago

/framework/AccessFile little Typofixes
/framework/AccessFileHelper added new method getDelTreeLog() and add const LOG_PRESERVE and LOG_CLEAR
set WbAdaptor::AppName to 'WebsiteBaker'

View differences:

AccessFileHelper.php
44 44
 */
45 45
	const DEL_ROOT_DELETE   = 1;
46 46
/**
47
 * clear logs
48
 */
49
	const LOG_CLEAR = true;
50
/**
51
 * preserve logs
52
 */
53
	const LOG_PRESERVE = false;
54
/**
47 55
 * to store the last delTree log
48 56
 */
49 57
	static $aDelTreeLog = array();
......
131 139
	}
132 140
/**
133 141
 * returns the log of the last delTree request
142
 * @param  bool  $bClearLog   TRUE clears the log after request, FALSE preserve the log
134 143
 * @return array
135 144
 */
136
	static function getDelTreeLog()
145
	static function getDelTreeLog($bClearLog = self::LOG_CLEAR)
137 146
	{
138
		return self::$aDelTreeLog;
147
		$aRetval = self::$aDelTreeLog;
148
		if($bClearLog) { self::$aDelTreeLog = array(); }
149
		return $aRetval;
139 150
	}
140 151

  
141 152
} // end of class AccessFileHelper

Also available in: Unified diff