ACC SHELL

Path : /srv/www/vhosts/centrumlb/3rdparty/Nette/Forms/
File Upload :
Current File : /srv/www/vhosts/centrumlb/3rdparty/Nette/Forms/Rule.php

<?php

/**
 * This file is part of the Nette Framework (http://nette.org)
 * Copyright (c) 2004 David Grudl (http://davidgrudl.com)
 * @package Nette\Forms
 */



/**
 * Single validation rule or condition represented as value object.
 *
 * @author     David Grudl
 * @package Nette\Forms
 */
class NRule extends NObject
{
	/** type */
	const CONDITION = 1;

	/** type */
	const VALIDATOR = 2;

	/** type */
	const FILTER = 3;

	/** @var IFormControl */
	public $control;

	/** @var mixed */
	public $operation;

	/** @var mixed */
	public $arg;

	/** @var int (CONDITION, VALIDATOR, FILTER) */
	public $type;

	/** @var bool */
	public $isNegative = FALSE;

	/** @var string (only for VALIDATOR type) */
	public $message;

	/** @var NRules (only for CONDITION type)  */
	public $subRules;

}

ACC SHELL 2018