protected function outputFormatTableCurrency(array $items)
    {
        $header = array(
            $this->text('Code'),
            $this->text('Name'),
            $this->text('Symbol'),
            $this->text('Conversion rate'),
            $this->text('In database'),
            $this->text('Enabled')
        );

        $rows = array();

        foreach ($items as $item) {
            $rows[] = array(
                $item['code'],
                $this->text($item['name']),
                $item['symbol'],
                $item['conversion_rate'],
                empty($item['in_database']) ? $this->text('No') : $this->text('Yes'),
                empty($item['status']) ? $this->text('No') : $this->text('Yes'),
            );
        }

        $this->outputFormatTable($rows, $header);
    }
protected function outputFormatTableCurrency(array $items)
    {
        $header = array(
            $this->text('Code'),
            $this->text('Name'),
            $this->text('Symbol'),
            $this->text('Conversion rate'),
            $this->text('In database'),
            $this->text('Enabled')
        );

        $rows = array();

        foreach ($items as $item) {
            $rows[] = array(
                $item['code'],
                $this->text($item['name']),
                $item['symbol'],
                $item['conversion_rate'],
                empty($item['in_database']) ? $this->text('No') : $this->text('Yes'),
                empty($item['status']) ? $this->text('No') : $this->text('Yes'),
            );
        }

        $this->outputFormatTable($rows, $header);
    }
protected function outputFormatTableCurrency ( array $ items ) { $ header = array ( $ this -> text ( 'Code' ) , $ this -> text ( 'Name' ) , $ this -> text ( 'Symbol' ) , $ this -> text ( 'Conversion rate' ) , $ this -> text ( 'In database' ) , $ this -> text ( 'Enabled' ) ) ; $ rows = array ( ) ; foreach ( $ items as $ item ) { $ rows [ ] = array ( $ item [ 'code' ] , $ this -> text ( $ item [ 'name' ] ) , $ item [ 'symbol' ] , $ item [ 'conversion_rate' ] , empty ( $ item [ 'in_database' ] ) ? $ this -> text ( 'No' ) : $ this -> text ( 'Yes' ) , empty ( $ item [ 'status' ] ) ? $ this -> text ( 'No' ) : $ this -> text ( 'Yes' ) , ) ; } $ this -> outputFormatTable ( $ rows , $ header ) ; }
Output formatted table
@param array $items
Output formatted table