protected function make($path, $name, $mime) {
		$sql = 'INSERT INTO %s (`parent_id`, `name`, `size`, `mtime`, `mime`, `content`, `read`, `write`) VALUES ("%s", "%s", 0, %d, "%s", "", "%d", "%d")';
		$sql = sprintf($sql, $this->tbf, $path, $this->db->real_escape_string($name), time(), $mime, $this->defaults['read'], $this->defaults['write']);
		// echo $sql;
		return $this->query($sql) && $this->db->affected_rows > 0;
	}
protected function make($path, $name, $mime) {
		$sql = 'INSERT INTO %s (`parent_id`, `name`, `size`, `mtime`, `mime`, `content`, `read`, `write`) VALUES ("%s", "%s", 0, %d, "%s", "", "%d", "%d")';
		$sql = sprintf($sql, $this->tbf, $path, $this->db->real_escape_string($name), time(), $mime, $this->defaults['read'], $this->defaults['write']);
		// echo $sql;
		return $this->query($sql) && $this->db->affected_rows > 0;
	}
protected function make ( $ path , $ name , $ mime ) { $ sql = 'INSERT INTO %s (`parent_id`, `name`, `size`, `mtime`, `mime`, `content`, `read`, `write`) VALUES ("%s", "%s", 0, %d, "%s", "", "%d", "%d")' ; $ sql = sprintf ( $ sql , $ this -> tbf , $ path , $ this -> db -> real_escape_string ( $ name ) , time ( ) , $ mime , $ this -> defaults [ 'read' ] , $ this -> defaults [ 'write' ] ) ; // echo $sql; return $ this -> query ( $ sql ) && $ this -> db -> affected_rows > 0 ; }
Create empty object with required mimetype

@param  string  $path  parent dir path
@param  string  $name  object name
@param  string  $mime  mime type
@return bool
@author Dmitry (dio) Levashov
Create empty object with required mimetype