👁 查看:MemberFormFilter.class.php
路径:/virtual/bigbrother/sns/lib/filter/MemberFormFilter.class.php
大小:1.02 KB · 修改: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 filter form.
*
* @package OpenPNE
* @subpackage filter
* @author Kousuke Ebihara <ebihara@tejimaya.com>
*/
class MemberFormFilter extends BaseMemberFormFilter
{
public function __construct($defaults = array(), $options = array(), $CSRFSecret = null)
{
return parent::__construct($defaults, $options, false);
}
public function configure()
{
$this->setWidgets(array(
'name' => new sfWidgetFormFilterInput(array('with_empty' => false)),
));
$this->setValidators(array(
'name' => new sfValidatorPass(),
));
$this->widgetSchema->setLabel('name', 'Nickname');
$this->errorSchema = new sfValidatorErrorSchema($this->validatorSchema);
$this->widgetSchema->setNameFormat('member[%s]');
}
}