public function fetchData(array $fields)
    {
        //set up the blank data
        $data = array();

        foreach ($fields as $name => $field) {
            $data[$name] = null;
        }

        //populate the data from the file
        $this->setDataModel($this->populateData($data));
    }
public function fetchData(array $fields)
    {
        //set up the blank data
        $data = array();

        foreach ($fields as $name => $field) {
            $data[$name] = null;
        }

        //populate the data from the file
        $this->setDataModel($this->populateData($data));
    }
public function fetchData ( array $ fields ) { //set up the blank data $ data = array ( ) ; foreach ( $ fields as $ name => $ field ) { $ data [ $ name ] = null ; } //populate the data from the file $ this -> setDataModel ( $ this -> populateData ( $ data ) ) ; }
Fetches the data for this settings config and stores it in the data property.

@param array $fields
Fetches the data for this settings config and stores it in the data property .