View ProjeQtOr On SourceForge.net
ProjeQtOr - Project Management Tool
Support us on Capterra
OIN - Open Invention Network
ProjeQtOr free project management software - Import - Some code - ProjeQtOr
 
 

Import - Some code

More
23 May 2013 16:18 - 23 May 2013 16:19 #1 by Cr0w
Import - Some code was created by Cr0w
Hi,

I would like to understand the following part of the import(...) method in Importable.php.
foreach ($obj as $fld => $val) 
{
				
	if (is_object($val)) 
	{
					
		$objectArray[$fld] = $val;
				
		foreach ($val as $subfld => $subval) 
		{
				
			$capt = $val -> getColCaption($subfld);
			if ($subfld != 'id' and substr($capt, 0, 1) != '[') 
			{
				$captionArray[$capt] = $subfld;
				$captionObjectArray[$capt] = $fld;
			}
			
		}
	} 
	else 
	{
		$capt = $obj -> getColCaption($fld);
		
		if (substr($capt, 0, 1) != '[') 
		{
			$captionArray[$capt] = $fld;
		}
	}
}

Thanx
Last edit: 23 May 2013 16:19 by Cr0w. Reason: Code Indentation

Please Log in or Create an account to join the conversation.

More
23 May 2013 18:06 #2 by babynus
Replied by babynus on topic Re: Import - Some code
This part is dedicated to treatement of included objects.
For instance, in Activities, you have ActivityPlanningElement that correspond to an included object. Data is stored in another table. But you can fluently import data into this table if needed.

Babynus
Administrator of ProjeQtOr web site
The following user(s) said Thank You: Cr0w

Please Log in or Create an account to join the conversation.

Moderators: babynusprotion
Time to create page: 0.036 seconds

Cookies settings

×

Functional Cookies

Ce site utilise des cookies pour assurer son bon fonctionnement et ne peuvent pas être désactivés de nos systèmes. Nous ne les utilisons pas à des fins publicitaires. Si ces cookies sont bloqués, certaines parties du site ne pourront pas fonctionner.

Session

Please login to see yours activities!

Other cookies

Ce site web utilise un certain nombre de cookies pour gérer, par exemple, les sessions utilisateurs.