Model/Fields/PaymentPlan.php
public function formatData(array $rows)
    {
        $options = [];

        if (($rows) && count($rows) > 0) {
            foreach ($rows as $row) {
                $options[$row['id']] = $row['plan_name'];
            }
        }

        return $options;
    }
public function formatData(array $rows)
    {
        $options = [];

        if (($rows) && count($rows) > 0) {
            foreach ($rows as $row) {
                $options[$row['id']] = $row['plan_name'];
            }
        }

        return $options;
    }
public function formatData ( array $ rows ) { $ options = [ ] ; if ( ( $ rows ) && count ( $ rows ) > 0 ) { foreach ( $ rows as $ row ) { $ options [ $ row [ 'id' ] ] = $ row [ 'plan_name' ] ; } } return $ options ; }
Format the data from DB.
@return array
Format the data from DB .