Current Path :
/
home
/
develito
/
public_html
/
components
/
com_visforms
/
lib
/
validate
/
Or
Select Your Path :
Upload File :
New :
File
Dir
/home/develito/public_html/components/com_visforms/lib/validate/min.php
<?php /** * Visforms validate min class * * @author Aicha Vack * @package Joomla.Site * @subpackage com_visforms * @link http://www.vi-solutions.de * @license GNU General Public License version 2 or later; see license.txt * @copyright 2012 vi-solutions * @since Joomla 1.6 */ // no direct access defined('_JEXEC') or die('Restricted access'); class VisformsValidateMin extends VisformsValidate { protected $count; protected $minCount; public function __construct($type, $args) { parent::__construct($type, $args); //we expect an item with key 'count' and an item with key 'mincount' in $args $this->count = isset($args['count']) ? $args['count'] : 0; $this->mincount = isset($args['mincount']) ? $args['mincount'] : 0; } protected function test() { if ($this->count < $this->mincount) { return false; } else { return true; } } }