lib/db/cortex.php
public function resetFields(array $fields) {
		$defaults = $this->defaults();
		foreach ($fields as $field) {
			unset($this->fieldsCache[$field]);
			unset($this->saveCsd[$field]);
			if (isset($defaults[$field]))
				$this->set($field,$defaults[$field]);
			else {
				$this->set($field,NULL);
			}
		}
	}
public function resetFields(array $fields) {
		$defaults = $this->defaults();
		foreach ($fields as $field) {
			unset($this->fieldsCache[$field]);
			unset($this->saveCsd[$field]);
			if (isset($defaults[$field]))
				$this->set($field,$defaults[$field]);
			else {
				$this->set($field,NULL);
			}
		}
	}
public function resetFields ( array $ fields ) { $ defaults = $ this -> defaults ( ) ; foreach ( $ fields as $ field ) { unset ( $ this -> fieldsCache [ $ field ] ) ; unset ( $ this -> saveCsd [ $ field ] ) ; if ( isset ( $ defaults [ $ field ] ) ) $ this -> set ( $ field , $ defaults [ $ field ] ) ; else { $ this -> set ( $ field , NULL ) ; } } }
reset only specific fields and return to their default values
@param array $fields
reset only specific fields and return to their default values