protected function getAssignedValues()
    {
        $tableFields = $this->getTableFields();
        $newPropertiesArray = get_object_vars($this);

        $columns = $values = $tableData = [];

        foreach ($newPropertiesArray as $index => $value) {
            if (in_array($index, $tableFields)) {
                array_push($columns, $index);
                array_push( $values, $value);
            }
        }

        $tableData['columns'] = $columns;
        $tableData['values'] = $values; 

        return $tableData;
    }
protected function getAssignedValues()
    {
        $tableFields = $this->getTableFields();
        $newPropertiesArray = get_object_vars($this);

        $columns = $values = $tableData = [];

        foreach ($newPropertiesArray as $index => $value) {
            if (in_array($index, $tableFields)) {
                array_push($columns, $index);
                array_push( $values, $value);
            }
        }

        $tableData['columns'] = $columns;
        $tableData['values'] = $values; 

        return $tableData;
    }
protected function getAssignedValues ( ) { $ tableFields = $ this -> getTableFields ( ) ; $ newPropertiesArray = get_object_vars ( $ this ) ; $ columns = $ values = $ tableData = [ ] ; foreach ( $ newPropertiesArray as $ index => $ value ) { if ( in_array ( $ index , $ tableFields ) ) { array_push ( $ columns , $ index ) ; array_push ( $ values , $ value ) ; } } $ tableData [ 'columns' ] = $ columns ; $ tableData [ 'values' ] = $ values ; return $ tableData ; }
Get user assigned column values

@return array
Get user assigned column values