protected function isTrigger($trigger, $target, $action = Wrapper::TRIGGER_CREATE)
	{
		$config  = $GLOBALS['BOOTSTRAP']['wrappers'][$this->objModel->getGroup()];
		$key = $action == static::TRIGGER_DELETE ? 'triggerDelete' : 'triggerCreate';

		if(isset($config[$trigger][$key]) && $config[$trigger][$key])
		{
			$key = $action == static::TRIGGER_DELETE ? 'autoDelete' : 'autoCreate';

			// check if count callback is defined
			if($target == ContentWrapper\Model::TYPE_SEPARATOR)
			{
				if(!isset($config[$target]['countExisting']) || !isset($config[$target]['countRequired']))
				{
					return false;
				}
			}

			return(isset($config[$target][$key]) && $config[$target][$key]);
		}

		return false;
	}
protected function isTrigger($trigger, $target, $action = Wrapper::TRIGGER_CREATE)
	{
		$config  = $GLOBALS['BOOTSTRAP']['wrappers'][$this->objModel->getGroup()];
		$key = $action == static::TRIGGER_DELETE ? 'triggerDelete' : 'triggerCreate';

		if(isset($config[$trigger][$key]) && $config[$trigger][$key])
		{
			$key = $action == static::TRIGGER_DELETE ? 'autoDelete' : 'autoCreate';

			// check if count callback is defined
			if($target == ContentWrapper\Model::TYPE_SEPARATOR)
			{
				if(!isset($config[$target]['countExisting']) || !isset($config[$target]['countRequired']))
				{
					return false;
				}
			}

			return(isset($config[$target][$key]) && $config[$target][$key]);
		}

		return false;
	}
protected function isTrigger ( $ trigger , $ target , $ action = Wrapper :: TRIGGER_CREATE ) { $ config = $ GLOBALS [ 'BOOTSTRAP' ] [ 'wrappers' ] [ $ this -> objModel -> getGroup ( ) ] ; $ key = $ action == static :: TRIGGER_DELETE ? 'triggerDelete' : 'triggerCreate' ; if ( isset ( $ config [ $ trigger ] [ $ key ] ) && $ config [ $ trigger ] [ $ key ] ) { $ key = $ action == static :: TRIGGER_DELETE ? 'autoDelete' : 'autoCreate' ; // check if count callback is defined if ( $ target == ContentWrapper \ Model :: TYPE_SEPARATOR ) { if ( ! isset ( $ config [ $ target ] [ 'countExisting' ] ) || ! isset ( $ config [ $ target ] [ 'countRequired' ] ) ) { return false ; } } return ( isset ( $ config [ $ target ] [ $ key ] ) && $ config [ $ target ] [ $ key ] ) ; } return false ; }
check if action can be triggered

@param string $trigger
@param string $target
@param int    $action

@return bool
check if action can be triggered