Source for file Type.php
Documentation is available at Type.php
// vim: foldmethod=marker
* @author ICHII Takashi <ichii386@schweetheart.jp>
* @license http://www.opensource.org/licenses/bsd-license.php The BSD License
* @version $Id: 3c32067e915762fb5fc6a5b7940c8dc3a41f79d6 $
// {{{ Ethna_Plugin_Validator_Type
* @author ICHII Takashi <ichii386@schweetheart.jp>
/** @var bool 配列を受け取るかフラグ */
* @param string $name フォームの名前
* @param mixed $var フォームの値
* @param array $params プラグインのパラメータ
public function validate($name, $var, $params)
if (isset
($params['error'])) {
$msg =
_et('Please input integer value to {form}.');
if (isset
($params['error'])) {
$msg =
_et('Please input float value to {form}.');
if ($var !=
"1" &&
$var !=
"0") {
if (isset
($params['error'])) {
$msg =
_et('You can input 0 or 1 to {form}.');
if ($r == -
1 ||
$r ===
false) {
if (isset
($params['error'])) {
$msg =
_et('Please input valid datetime to {form}.');
Documentation generated on Fri, 11 Nov 2011 03:59:09 +0900 by phpDocumentor 1.4.3