Gdn_DataSet::format PHP Method

format() public method

Format the resultset with the given method.
public format ( string $FormatMethod ) : Gdn_Dataset
$FormatMethod string The method to use with Gdn_Format::To().
return Gdn_Dataset $this pointer for chaining.
    public function format($FormatMethod)
    {
        $Result =& $this->result();
        foreach ($Result as $Index => $Value) {
            $Result[$Index] = Gdn_Format::to($Value, $FormatMethod);
        }
        return $this;
    }