Piwik\Plugins\API\Renderer\Csv::renderArray PHP Method

renderArray() public method

public renderArray ( $array )
    public function renderArray($array)
    {
        return $this->renderDataTable($array);
    }

Usage Example

示例#1
0
 /**
  * @expectedException \Exception
  * @expectedExceptionMessage Data structure returned is not convertible in the requested format
  */
 public function test_renderArray_ShouldConvertMultiDimensionalMixedArrayToJson()
 {
     $input = array("firstElement" => "isFirst", array("firstElement", "secondElement"), "thirdElement" => array("firstElement" => "isFirst", "secondElement" => "isSecond"));
     $this->builder->renderArray($input);
 }