Sindbad~EG File Manager

Current Path : /var/www/html/ch.sumar.com.py/wp-content/plugins/peepso/classes/fields/tests/
Upload File :
Current File : /var/www/html/ch.sumar.com.py/wp-content/plugins/peepso/classes/fields/tests/fieldtestcountmin.php

<?php

class PeepSoFieldTestCountmin extends PeepSoFieldTestAbstract
{

	public function __construct($value, $args)
	{
		parent::__construct($value, $args);
		$this->admin_label				= __('Require a selection of  minimum', 'peepso-core');

		$this->admin_value				= 'int';
		$this->admin_value_label_after 	= __('option(s)', 'peepso-core');

		$this->message					= __('You have to select at least %s option(s)', 'peepso-core');
	}

	public function test()
	{
		if( !is_countable($this->value) || count($this->value) < $this->args) {

			$this->error = sprintf( $this->message, $this->args);

			return FALSE;
		}

		return TRUE;
	}
}

Sindbad File Manager Version 1.0, Coded By Sindbad EG ~ The Terrorists