public static function prependNullOption(&$list,$idField=NULL,$nameField=NULL,$text=NULL) {
	
		$idField	= $idField	? $idField	: 'id';
		$nameField	= $nameField? $nameField: 'name';
		$text		= $text		? $text		: Translator::do('SELECT_NULL_VALUE');
	
		$nullItem = new \stdClass();
	
		$nullItem->$idField		= '';
		$nullItem->$nameField	= $text;
	
		array_unshift($list,$nullItem);
	
		return $list;
	
	}
public static function prependNullOption(&$list,$idField=NULL,$nameField=NULL,$text=NULL) {
	
		$idField	= $idField	? $idField	: 'id';
		$nameField	= $nameField? $nameField: 'name';
		$text		= $text		? $text		: Translator::do('SELECT_NULL_VALUE');
	
		$nullItem = new \stdClass();
	
		$nullItem->$idField		= '';
		$nullItem->$nameField	= $text;
	
		array_unshift($list,$nullItem);
	
		return $list;
	
	}
public static function prependNullOption ( & $ list , $ idField = NULL , $ nameField = NULL , $ text = NULL ) { $ idField = $ idField ? $ idField : 'id' ; $ nameField = $ nameField ? $ nameField : 'name' ; $ text = $ text ? $ text : Translator :: do ( 'SELECT_NULL_VALUE' ) ; $ nullItem = new \ stdClass ( ) ; $ nullItem -> $ idField = '' ; $ nullItem -> $ nameField = $ text ; array_unshift ( $ list , $ nullItem ) ; return $ list ; }
Adds a NULL select field, with translated text - Select - on top.

@param	array	Array to which add first NULL value (reference var).
@param	string	Optional name of id var(default is 'id').
@param 	string	Optional name of value var (default is 'name').
@param	string	Optional text label of first NULL value (default is SELECT_NULL_VALUE translated)

@return	array
Adds a NULL select field with translated text - Select - on top .