register() public method

Called as a plugin is registered to the registry. Subclasses over- riding this method should call the parent method first.
public register ( $category, $path ) : boolean
$category String Name of category plugin was registered to
$path String The path the plugin was found in
return boolean True iff plugin initialized successfully; if false, the plugin will not be registered.
 function register($category, $path)
 {
     if (parent::register($category, $path)) {
         $this->addLocaleData();
         return true;
     }
     return false;
 }
 function register($category, $path)
 {
     if (parent::register($category, $path)) {
         $this->addLocaleData();
         $this->import('PagSeguroDAO');
         $CreditDao =& new PagSeguroDAO();
         DAORegistry::registerDAO('PagSeguroDAO', $CreditDao);
         return true;
     }
     return false;
 }
 /**
  * Register plugin
  * @return bool
  */
 function register($category, $path)
 {
     if (parent::register($category, $path)) {
         if (!Config::getVar('general', 'installed') || defined('RUNNING_UPGRADE')) {
             return true;
         }
         $this->addLocaleData();
         $this->import('PayPalDAO');
         $payPalDao = new PayPalDAO();
         DAORegistry::registerDAO('PayPalDAO', $payPalDao);
         return true;
     }
     return false;
 }