samples/PhotoAlbum/lib/rb.php
public function getColumns( $table ) {
		$table = $this->safeTable($table);
		$columnsRaw = $this->adapter->get("DESCRIBE $table");
		foreach($columnsRaw as $r) {
			$columns[$r['Field']]=$r['Type'];
		}
		return $columns;
	}
public function getColumns( $table ) {
		$table = $this->safeTable($table);
		$columnsRaw = $this->adapter->get("DESCRIBE $table");
		foreach($columnsRaw as $r) {
			$columns[$r['Field']]=$r['Type'];
		}
		return $columns;
	}
public function getColumns ( $ table ) { $ table = $ this -> safeTable ( $ table ) ; $ columnsRaw = $ this -> adapter -> get ( "DESCRIBE $table" ) ; foreach ( $ columnsRaw as $ r ) { $ columns [ $ r [ 'Field' ] ] = $ r [ 'Type' ] ; } return $ columns ; }
Returns an array containing the column names of the specified table.

@param string $table table

@return array $columns columns
Returns an array containing the column names of the specified table .