DataSift_Pylon::load PHP Method

load() private method

Loads an pylon object from the get data
private load ( array $data )
$data array An array containing the subscription data.
    private function load($data)
    {
        if (empty($data)) {
            throw new DataSift_Exception_InvalidData('No data found');
        }
        //Assign the instance variables
        foreach ($data as $key => $value) {
            $this->{'_' . $key} = $value;
        }
    }