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

Changeset 12628


Ignore:
Timestamp:
Aug 13, 2009, 2:46:07 PM (10 years ago)
Author:
ebihara
Message:

#4240:added ability to add filter for member_config from the pc_backend application

Location:
OpenPNE3/trunk
Files:
1 added
3 edited

Legend:

Unmodified
Added
Removed
  • OpenPNE3/trunk/apps/pc_backend/modules/sns/actions/actions.class.php

    r10604 r12628  
    2626  {
    2727    $this->category = $request->getParameter('category', 'general');
    28     $this->form = new SnsConfigForm(array(), array('category' => $this->category));
     28
     29    $formName = 'op'.sfInflector::camelize($this->category).'SnsConfigForm';
     30    if (class_exists($formName, true))
     31    {
     32      $this->form = new $formName();
     33    }
     34    else
     35    {
     36      $this->form = new SnsConfigForm(array(), array('category' => $this->category));
     37    }
     38
    2939    if ($request->isMethod('post'))
    3040    {
     
    3343      {
    3444        $this->form->save();
     45        $this->getUser()->setFlash('notice', 'Saved.');
    3546        $this->redirect('sns/config?category='.$this->category);
    3647      }
  • OpenPNE3/trunk/lib/action/sfOpenPNEMemberAction.class.php

    r12543 r12628  
    399399    $categoryAttributes = sfConfig::get('openpne_member_category_attribute');
    400400
     401    $ignoredSnsConfig = Doctrine::getTable('SnsConfig')->get('ignored_sns_config', array());
     402    if ($ignoredSnsConfig)
     403    {
     404      $ignoredSnsConfig = unserialize($ignoredSnsConfig);
     405    }
     406
    401407    foreach ($categories as $key => $value)
    402408    {
     
    413419      }
    414420
     421      if (in_array($key, $ignoredSnsConfig))
     422      {
     423        unset($categories[$key]);
     424        continue;
     425      }
     426
    415427      $enabledKey = 'enable_pc';
    416428      if (sfConfig::get('sf_app') == 'mobile_frontend')
  • OpenPNE3/trunk/lib/config/config/sns_config.yml

    r11021 r12628  
    119119    IsRequired: true
    120120    Default:    "プライバシーポリシーはただいま準備中です。\nThe Privacy Policy is under construction."
     121
     122permit_member_config:
Note: See TracChangeset for help on using the changeset viewer.