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

Changeset 9434


Ignore:
Timestamp:
Dec 1, 2008, 4:58:38 AM (12 years ago)
Author:
ebihara
Message:

#3030:added Member::getConfig() retrives the member's configuration

File:
1 edited

Legend:

Unmodified
Added
Removed
  • OpenPNE3/trunk/lib/model/Member.php

    r9060 r9434  
    1919    $profile = MemberProfilePeer::retrieveByMemberIdAndProfileName($this->getId(), $profileName);
    2020
    21     if (!$profile) {
     21    if (!$profile)
     22    {
    2223      return null;
    2324    }
    2425
    2526    return $profile->getValue();
     27  }
     28
     29  public function getConfig($configName)
     30  {
     31    $config = MemberConfigPeer::retrieveByNameAndMemberId($configName, $this->getId());
     32
     33    if (!$config)
     34    {
     35      return null;
     36    }
     37
     38    return $config->getValue();
    2639  }
    2740
Note: See TracChangeset for help on using the changeset viewer.