Your IP : 216.73.216.240


Current Path : /home/juvelize/www/administrator/components/com_acymailing/types/
Upload File :
Current File : /home/juvelize/www/administrator/components/com_acymailing/types/operators.php

<?php
/**
 * @package	Acymailing for Joomla!
 * @version	4.0.1
 * @author	acyba.com
 * @copyright	(C) 2009-2012 ACYBA S.A.RL. All rights reserved.
 * @license	GNU/GPLv3 http://www.gnu.org/licenses/gpl-3.0.html
 */
defined('_JEXEC') or die('Restricted access');
?><?php

class operatorsType{
	var $extra = '';
	function operatorsType(){

		$this->values = array();

		$this->values[] = JHTML::_('select.option', '<OPTGROUP>',JText::_('ACY_NUMERIC'));
		$this->values[] = JHTML::_('select.option', '=','=');
		$this->values[] = JHTML::_('select.option', '!=','!=');
		$this->values[] = JHTML::_('select.option', '>','>');
		$this->values[] = JHTML::_('select.option', '<','<');
		$this->values[] = JHTML::_('select.option', '>=','>=');
		$this->values[] = JHTML::_('select.option', '<=','<=');
		$this->values[] = JHTML::_('select.option', '</OPTGROUP>');
		$this->values[] = JHTML::_('select.option', '<OPTGROUP>',JText::_('ACY_STRING'));
		$this->values[] = JHTML::_('select.option', 'BEGINS',JText::_('ACY_BEGINS_WITH'));
		$this->values[] = JHTML::_('select.option', 'END',JText::_('ACY_ENDS_WITH'));
		$this->values[] = JHTML::_('select.option', 'CONTAINS',JText::_('ACY_CONTAINS'));
		$this->values[] = JHTML::_('select.option', 'NOTCONTAINS',JText::_('ACY_NOT_CONTAINS'));
		$this->values[] = JHTML::_('select.option', 'LIKE','LIKE');
		$this->values[] = JHTML::_('select.option', 'NOT LIKE','NOT LIKE');
		$this->values[] = JHTML::_('select.option', 'REGEXP','REGEXP');
		$this->values[] = JHTML::_('select.option', 'NOT REGEXP','NOT REGEXP');
		$this->values[] = JHTML::_('select.option', '</OPTGROUP>');
		$this->values[] = JHTML::_('select.option', '<OPTGROUP>',JText::_('OTHER'));
		$this->values[] = JHTML::_('select.option', 'IS NULL','IS NULL');
		$this->values[] = JHTML::_('select.option', 'IS NOT NULL','IS NOT NULL');
		$this->values[] = JHTML::_('select.option', '</OPTGROUP>');

	}

	function display($map){
		return JHTML::_('select.genericlist', $this->values, $map, 'class="inputbox" size="1" style="width:120px;" '.$this->extra, 'value', 'text');
	}

}