ここの情報は古いです。ご理解頂いた上でお取り扱いください。

Changeset 9727


Ignore:
Timestamp:
Dec 27, 2008, 4:39:24 PM (11 years ago)
Author:
ebihara
Message:

#3224:added the opAuthLoginForm class

Location:
OpenPNE3/trunk/lib
Files:
1 added
1 edited

Legend:

Unmodified
Added
Removed
  • OpenPNE3/trunk/lib/user/opAuthAdapter.class.php

    r9710 r9727  
    3636  public function getAuthForm()
    3737  {
     38    $form = $this->getAuthLoginForm();
     39    if ($form)
     40    {
     41      return $form;
     42    }
     43
    3844    return $this->authForm;
     45  }
     46
     47  public function getAuthLoginForm()
     48  {
     49    $form = null;
     50
     51    $formClass = self::getAuthLoginFormClassName($this->authModeName);
     52    if (class_exists($formClass))
     53    {
     54      $form = new $formClass($this);
     55    }
     56
     57    return $form;
    3958  }
    4059
     
    81100  }
    82101
     102  public static function getAuthLoginFormClassName($authMode)
     103  {
     104    return 'opAuthLoginForm'.ucfirst($authMode);
     105  }
     106
    83107 /**
    84108  * @deprecated
Note: See TracChangeset for help on using the changeset viewer.