src/Neuron/Core/Lock.php
public function setSoftLock ($sType, $id)
	{
		if (!isset ($this->softlocks[$sType]))
		{
			$this->softlocks[$sType] = array ();
		}
		
		if (!isset ($this->softlocks[$sType][$id]))
		{
			$this->softlocks[$sType][$id] = true;
			return true;
		}
		else
		{
			return false;
		}
	}
public function setSoftLock ($sType, $id)
	{
		if (!isset ($this->softlocks[$sType]))
		{
			$this->softlocks[$sType] = array ();
		}
		
		if (!isset ($this->softlocks[$sType][$id]))
		{
			$this->softlocks[$sType][$id] = true;
			return true;
		}
		else
		{
			return false;
		}
	}
public function setSoftLock ( $ sType , $ id ) { if ( ! isset ( $ this -> softlocks [ $ sType ] ) ) { $ this -> softlocks [ $ sType ] = array ( ) ; } if ( ! isset ( $ this -> softlocks [ $ sType ] [ $ id ] ) ) { $ this -> softlocks [ $ sType ] [ $ id ] = true ; return true ; } else { return false ; } }
/*
Soft lock: doesn't use MySQL and works only during the script.
It does allow multiple $id types
/ * Soft lock : doesn t use MySQL and works only during the script . It does allow multiple $id types