fishbones/core/Log.php
/**
	 * clears log file
	 * @return boolean true on sucess, false on error
	 */
clears log file
@return boolean true on sucess, false on error
clears log file @return boolean true on sucess false on error
public function clearLog() {
		if( $this->file ) {
			$clo = fclose( $this->file );
		}
		if( !$clo ) {
			$this->error = "<error>error clearing log file</error>\n";
			return false;			
		}
		$del = ftruncate( $this->file, 0 );
		if ( !$del ) {
			$this->error = "<error>error clearing log file</error>\n";
			return false;
		}
		return true;
	}
public function clearLog ( ) { if ( $ this -> file ) { $ clo = fclose ( $ this -> file ) ; } if ( ! $ clo ) { $ this -> error = " <error>error clearing log file</error> \n " ; return false ; } $ del = ftruncate ( $ this -> file , 0 ) ; if ( ! $ del ) { $ this -> error = " <error>error clearing log file</error> \n " ; return false ; } return true ; }
clears log file
 @return boolean true on sucess, false on error
clears log file @return boolean true on sucess false on error