/**
  * Register object to import export
  *
  * @param String $className
  * @param String $accountId
  */
 public static function register(Gpf_Csv_ObjectImportExport $class, $accountId = null)
 {
     if ($accountId === null) {
         $accountId = Gpf_Session::getAuthUser()->getAccountId();
     }
     $importExport = new Gpf_Db_ImportExport();
     $importExport->setName($class->getName());
     $importExport->setCode($class->getCode());
     $importExport->setDescription($class->getDescription());
     $importExport->setClassName(get_class($class));
     $importExport->setAccountId($accountId);
     $importExport->insert();
 }
 public function __construct() {
 	parent::__construct();
     $this->setName(Gpf_Lang::_runtime('Banners'));
     $this->setDescription(Gpf_Lang::_runtime("BannersImportExportDescription"));
 }    
 protected function loadFromTask() {
     parent::loadFromTask();
     $json = new Gpf_Rpc_Json();
     $values = $json->decode($this->getParams());
     $this->paramsArray['papUserIds'] = $values->papUserIds;
 }
 protected function insert(Gpf_DbEngine_Row $dbRow) {
     if ($dbRow instanceof Pap_Db_Campaign) {
         $dbRow->insert(false);
         return;
     }
     parent::insert($dbRow);
 }