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

Changeset 10173


Ignore:
Timestamp:
Jan 15, 2009, 2:34:12 PM (14 years ago)
Author:
ShogoKawahara
Message:

fixed error of using OpenPNEFormAutoGenerate of non-recommending class

Location:
OpenPNE3/trunk/lib/form
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • OpenPNE3/trunk/lib/form/CommunityConfigForm.class.php

    r10003 r10173  
    1616 * @author     Kousuke Ebihara <ebihara@tejimaya.com>
    1717 */
    18 class CommunityConfigForm extends OpenPNEFormAutoGenerate
     18class CommunityConfigForm extends sfForm
    1919{
    2020  protected
     
    6363  {
    6464    $config = $this->configSettings[$name];
    65     $this->widgetSchema[sprintf($this->fieldName, $name)] = $this->generateWidget($config);
     65    $this->widgetSchema[sprintf($this->fieldName, $name)] = opFormItemGenerator::generateWidget($config);
    6666    $this->widgetSchema->setLabel(sprintf($this->fieldName, $name), $config['Caption']);
    6767    $communityConfig = CommunityConfigPeer::retrieveByNameAndCommunityId($name, $this->community->getId());
     
    7070      $this->setDefault(sprintf($this->fieldName, $name), $communityConfig->getValue());
    7171    }
    72     $this->validatorSchema[sprintf($this->fieldName, $name)] = $this->generateValidator($config);
     72    $this->validatorSchema[sprintf($this->fieldName, $name)] = opFormItemGenerator::generateValidator($config);
    7373  }
    7474
  • OpenPNE3/trunk/lib/form/HomeWidgetConfigForm.class.php

    r10003 r10173  
    1616 * @author     Kousuke Ebihara <ebihara@tejimaya.com>
    1717 */
    18 class HomeWidgetConfigForm extends OpenPNEFormAutoGenerate
     18class HomeWidgetConfigForm extends sfForm
    1919{
    2020  protected $homeWidget;
     
    3535    foreach ($widgetConfig as $key => $value)
    3636    {
    37       $this->setWidget($key, $this->generateWidget($value));
    38       $this->setValidator($key, $this->generateValidator($value));
     37      $this->setWidget($key, opFormItemGenerator::generateWidget($value));
     38      $this->setValidator($key, opFormItemGenerator::generateValidator($value));
    3939
    4040      $config = HomeWidgetConfigPeer::retrieveByWidgetIdAndName($homeWidget->getId(), $key);
  • OpenPNE3/trunk/lib/form/MemberConfigForm.class.php

    r10003 r10173  
    1616 * @author     Kousuke Ebihara <ebihara@tejimaya.com>
    1717 */
    18 class MemberConfigForm extends OpenPNEFormAutoGenerate
     18class MemberConfigForm extends sfForm
    1919{
    2020  protected $memberConfigSettings = array();
     
    7474  {
    7575    $config = $this->memberConfigSettings[$name];
    76     $this->widgetSchema[$name] = $this->generateWidget($config);
     76    $this->widgetSchema[$name] = opFormItemGenerator::generateWidget($config);
    7777    $this->widgetSchema->setLabel($name, $config['Caption']);
    7878    $memberConfig = MemberConfigPeer::retrieveByNameAndMemberId($name, $this->member->getId());
     
    8080      $this->setDefault($name, $memberConfig->getValue());
    8181    }
    82     $this->validatorSchema[$name] = $this->generateValidator($config);
     82    $this->validatorSchema[$name] = opFormItemGenerator::generateValidator($config);
    8383
    8484    if (!empty($config['IsConfirm'])) {
  • OpenPNE3/trunk/lib/form/MemberProfileForm.class.php

    r10093 r10173  
    1616 * @author     Kousuke Ebihara <ebihara@tejimaya.com>
    1717 */
    18 class MemberProfileForm extends OpenPNEFormAutoGenerate
     18class MemberProfileForm extends sfForm
    1919{
    2020  public function __construct($profileMember = array(), $options = array(), $CSRFSecret = null)
     
    115115      $profile_i18n = $profile->getProfileI18ns();
    116116      $profileWithI18n = $profile->toArray() + $profile_i18n[0]->toArray();
    117       $this->widgetSchema[$profile->getName()] = $this->generateWidget($profileWithI18n, $this->getFormOptionsValue($profile->getId()));
    118       $this->validatorSchema[$profile->getName()] = $this->generateValidator($profileWithI18n, $this->getFormOptions($profile->getId()));
     117      $this->widgetSchema[$profile->getName()] = opFormItemGenerator::generateWidget($profileWithI18n, $this->getFormOptionsValue($profile->getId()));
     118      $this->validatorSchema[$profile->getName()] = opFormItemGenerator::generateValidator($profileWithI18n, $this->getFormOptions($profile->getId()));
    119119    }
    120120  }
  • OpenPNE3/trunk/lib/form/SnsConfigForm.class.php

    r10043 r10173  
    1616 * @author     Kousuke Ebihara <ebihara@tejimaya.com>
    1717 */
    18 class SnsConfigForm extends OpenPNEFormAutoGenerate
     18class SnsConfigForm extends sfForm
    1919{
    2020  public function configure()
     
    3434      }
    3535
    36       $this->setWidget($configName, $this->generateWidget($snsConfig[$configName]));
    37       $this->setValidator($configName, $this->generateValidator($snsConfig[$configName]));
     36      $this->setWidget($configName, opFormItemGenerator::generateWidget($snsConfig[$configName]));
     37      $this->setValidator($configName, opFormItemGenerator::generateValidator($snsConfig[$configName]));
    3838      $this->widgetSchema->setLabel($configName, $snsConfig[$configName]['Caption']);
    3939      if (isset($snsConfig[$configName]['Help']))
  • OpenPNE3/trunk/lib/form/opAuthConfigForm.class.php

    r10003 r10173  
    1616 * @author     Kousuke Ebihara <ebihara@tejimaya.com>
    1717 */
    18 abstract class opAuthConfigForm extends OpenPNEFormAutoGenerate
     18abstract class opAuthConfigForm extends sfForm
    1919{
    2020  protected
     
    6767      }
    6868
    69       $obj = $this->generateWidget($value);
     69      $obj = opFormItemGenerator::generateWidget($value);
    7070      $this->setWidget($key, $obj);
    71       $this->setValidator($key, $this->generateValidator($value));
     71      $this->setValidator($key, opFormItemGenerator::generateValidator($value));
    7272    }
    7373
Note: See TracChangeset for help on using the changeset viewer.