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

Changeset 9505


Ignore:
Timestamp:
Dec 8, 2008, 6:20:11 PM (11 years ago)
Author:
ebihara
Message:

#3117:added a member configuration for access block

Location:
OpenPNE3/trunk
Files:
2 added
5 edited

Legend:

Unmodified
Added
Removed
  • OpenPNE3/trunk/apps/pc_frontend/modules/member/actions/actions.class.php

    r9500 r9505  
    7070    $this->form = new $formClass($this->getUser()->getMember());
    7171
    72     if ($request->isMethod('post')) {
     72    if ($request->isMethod('post'))
     73    {
    7374      $this->form->bind($request->getParameter('member_config'));
    74       if ($this->form->isValid()) {
     75      if ($this->form->isValid())
     76      {
    7577        $this->form->save($this->getUser()->getMemberId());
    76         $this->redirect('member/config');
     78        $this->redirect('member/config?category='.$this->categoryName);
    7779      }
    7880    }
  • OpenPNE3/trunk/config/schema.yml

    r9478 r9505  
    1515    is_friend: { type: boolean }
    1616    is_friend_pre: { type: boolean }
     17    is_access_block: { type: boolean }
    1718    _uniques:
    1819      member_id_to_from: [ member_id_to, member_id_from ]
  • OpenPNE3/trunk/lib/config/config/member_config.yml

    r9502 r9505  
    4646    IsRequired: true
    4747    IsConfirm:  true
     48
     49accessBlock:
     50  access_block:
     51    Name:       "access_block"
     52    Caption:    "アクセスブロック"
     53    FormType:   "increased_input"
     54    ValueType:  "pass"
     55    IsRegist:   false
     56    IsConfig:   true
     57    IsUnique:   false
     58    IsRequired: false
     59    IsConfirm:  false
  • OpenPNE3/trunk/lib/form/OpenPNEFormAutoGenerate.class.php

    r9503 r9505  
    4444        $params['month_format'] = 'number';
    4545        $obj = new opWidgetFormDate($params);
     46        break;
     47      case 'increased_input':
     48        $obj = new opWidgetFormInputIncreased($params);
    4649        break;
    4750      default:
     
    117120        $obj = new sfValidatorPassword($option);
    118121        break;
     122      case 'pass':
     123        $obj = new sfValidatorPass($option);
     124        break;
    119125      default:
    120126        $obj = new sfValidatorString($option);
  • OpenPNE3/trunk/lib/model/MemberRelationship.php

    r9060 r9505  
    1111{
    1212  private $toInstance;
     13
     14  public function save(PropelPDO $con = null)
     15  {
     16    if ($this->isSelf())
     17    {
     18      throw new LogicException('Cannot save an object because member_id_to is equal to member_id_from');
     19    }
     20
     21    return parent::save($con);
     22  }
    1323
    1424  public function isFriend()
Note: See TracChangeset for help on using the changeset viewer.