Development

Changeset 24791 for plugins/sfDoctrineGuardExtraPlugin

You must first sign up to be able to contribute.

Show
Ignore:
Timestamp:
12/02/09 14:21:11 (3 years ago)
Author:
gimler
Message:

sfDoctrineGuardExtraPlugin[1.3]: change email send methods to public to access from other actions

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • plugins/sfDoctrineGuardExtraPlugin/branches/1.3/modules/sfGuardForgotPassword/lib/BasesfGuardForgotPasswordActions.class.php

    r24790 r24791  
    6161          ); 
    6262 
    63         $this->_sendPasswordMail($sfGuardUser); 
     63        $this->sendPasswordMail($sfGuardUser); 
    6464 
    6565        return $this->redirect('@sf_guard_do_password'); 
     
    7575   * @return void 
    7676   */ 
    77   protected function _sendPasswordMail($user) 
     77  public function sendPasswordMail($user) 
    7878  { 
    7979    $message = $this->getComponent( 
     
    128128    $this->sfGuardUser->save(); 
    129129 
    130     $this->_sendResetPasswordMail($this->sfGuardUser, $newPassword); 
     130    $this->sendResetPasswordMail($this->sfGuardUser, $newPassword); 
    131131  } 
    132132 
     
    139139   * @return void 
    140140   */ 
    141   protected function _sendResetPasswordMail($user, $password) 
     141  public function sendResetPasswordMail($user, $password) 
    142142  { 
    143143    $message = $this->getComponent( 
  • plugins/sfDoctrineGuardExtraPlugin/branches/1.3/modules/sfGuardRegister/lib/BasesfGuardRegisterActions.class.php

    r24790 r24791  
    5353        $sfGuardUser = $this->form->save(); 
    5454 
    55         $this->_sendRegisterConfirmMail($sfGuardUser, $values['password']); 
     55        $this->sendRegisterConfirmMail($sfGuardUser, $values['password']); 
    5656 
    5757        $this->getUser()->setFlash('values', $values); 
     
    7171   * @return void 
    7272   */ 
    73   protected function _sendRegisterConfirmMail($user, $password) 
     73  public function sendRegisterConfirmMail($user, $password) 
    7474  { 
    7575    $message = $this->getComponent( 
     
    122122    $sfGuardUser->save(); 
    123123 
    124     $this->_sendRegisterCompleteMail($sfGuardUser); 
     124    $this->sendRegisterCompleteMail($sfGuardUser); 
    125125 
    126126    $this->redirect('@sf_guard_register_complete?id='.$sfGuardUser->getId()); 
     
    134134   * @return void 
    135135   */ 
    136   protected function _sendRegisterCompleteMail($user) 
     136  public function sendRegisterCompleteMail($user) 
    137137  { 
    138138    $message = $this->getComponent(