👁 查看:MemberForm.class.php
路径:/virtual/bigbrother/sns/lib/form/MemberForm.class.php
大小:987 B · 修改:2010-08-10 13:59:42 · 权限:0644 · 可写
<?php

/**
 * This file is part of the OpenPNE package.
 * (c) OpenPNE Project (http://www.openpne.jp/)
 *
 * For the full copyright and license information, please view the LICENSE
 * file and the NOTICE file that were distributed with this source code.
 */

/**
 * Member form.
 *
 * @package    form
 * @subpackage member
 * @version    SVN: $Id: sfPropelFormTemplate.php 6174 2007-11-27 06:22:40Z fabien $
 */
class MemberForm extends BaseMemberForm
{
  public function configure()
  {
    $this->setWidgets(array(
      'name' => new sfWidgetFormInput(),
    ));

    $this->setValidators(array(
      'name' => new opValidatorString(array('max_length' => 64, 'trim' => true)),
    ));

    $this->widgetSchema->setNameFormat('member[%s]');
    $this->widgetSchema->getFormFormatter()->setTranslationCatalogue('form_member');
  }

  protected function doSave($con = null)
  {
    if ($this->isNew()) {
      $this->object->setIsActive(false);
    }

    parent::doSave($con);
  }
}
ページが見つかりませんでした – Lumiere Shop
ここを指しているリンクに誤りがあったようです。検索してみるのはいかがですか ?
お買い物カゴ