public function loadConfig($data)
    {
        $model = $this->getConfigModel(false);

        $newData = $model->loadFirst(array('grcfg_id_organization' => $data['gor_id_organization']));
        if (empty($newData)) {
            $newData = $model->loadNew();
        }
        $newData['grcfg_id_organization'] = $data['gor_id_organization'];

        return $newData;
    }
public function loadConfig($data)
    {
        $model = $this->getConfigModel(false);

        $newData = $model->loadFirst(array('grcfg_id_organization' => $data['gor_id_organization']));
        if (empty($newData)) {
            $newData = $model->loadNew();
        }
        $newData['grcfg_id_organization'] = $data['gor_id_organization'];

        return $newData;
    }
public function loadConfig ( $ data ) { $ model = $ this -> getConfigModel ( false ) ; $ newData = $ model -> loadFirst ( array ( 'grcfg_id_organization' => $ data [ 'gor_id_organization' ] ) ) ; if ( empty ( $ newData ) ) { $ newData = $ model -> loadNew ( ) ; } $ newData [ 'grcfg_id_organization' ] = $ data [ 'gor_id_organization' ] ; return $ newData ; }
Handles loading the config for the given data

@param array $data
@return array
Handles loading the config for the given data