/**
  * Do Edit a specific provider
  *
  * Show the edit panel for a provider
  */
 function DoProviderEdit()
 {
     //only one provider can be edited
     if (is_array($this->cid)) {
         $id = (int) $this->cid[0];
     } else {
         $id = (int) $this->cid;
     }
     //set query and execute it, load selected provider
     $sql = "SELECT * FROM #__byjg_provider WHERE id={$id}";
     $this->ExecuteSql($sql);
     $row = $this->db->loadObject();
     $factory = new ProviderFactory();
     $provider = $factory->getInstance($row->name);
     if ($provider === false) {
         $this->errorHandler->Alert(JText::_('BYJG_PROVIDERFACTORY_NOT_FOUND'));
     }
     $provider->_params = $this->crypto->Decode($row->params);
     $this->html->editProvider($row, $provider);
 }