👁 查看:opValidatorPCEmail.class.php
路径:/virtual/bigbrother/sns/lib/validator/opValidatorPCEmail.class.php
大小:753 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.
*/
/**
* opValidatorPCEmail validates PC emails.
*
* @package OpenPNE
* @subpackage validator
* @author Kousuke Ebihara <ebihara@tejimaya.com>
*/
class opValidatorPCEmail extends sfValidatorEmail
{
/**
* @see sfValidatorString
*/
protected function doClean($value)
{
$clean = parent::doClean($value);
if (opToolkit::isMobileEmailAddress($clean))
{
throw new sfValidatorError($this, 'invalid', array('value' => $value));
}
return $clean;
}
}