Location: PHPKode > projects > EXtensible Production Suite (XPS) > xpsdev/core/models/module.php
<?php
class Module
{
	public function __construct()
	{
	}

	public function create_module_log($line)
	{
		$string_array = explode('(', $line);
		$string_array = explode(' ', $string_array[0]);
		$return_array = array();
	
		for($x=0; $x<sizeof($string_array); $x++)
		{
		 	$string_array[$x] = trim(strtoupper($string_array[$x]));
		}

		if($string_array[0] == 'CREATE')
		{
			$return_array['MODULE_OBJECT_TYPE'] = $string_array[1];
			$return_array['MODULE_OBJECT_NAME'] = $string_array[2];
		}
		elseif(($string_array[0] == 'ALTER') and ($string_array[6] == 'FOREIGN'))
		{
			$return_array['MODULE_OBJECT_TYPE'] = $string_array[6];
			$return_array['MODULE_OBJECT_NAME'] = $string_array[5];	
		}
				
		return $return_array;	 
	}	
}
?>
Return current item: EXtensible Production Suite (XPS)