View ProjeQtOr On SourceForge.net
ProjeQtOr - Project Management Tool
Supportez nous sur Capterra
OIN - Open Invention Network
ProjeQtOr free project management software - Import - Some code - ProjeQtOr

Prochaines Sessions

Les prochaines formations et démonstrations sont ouvertes, inscrivez-vous rapidement !

 

Démonstration de ProjeQtOr

(gratuit, sur inscription)
 

13 mai 2025 (10h30-12h)

5 juin 2025 (16h-17h30)

 
 

Planifiez avec ProjeQtOr

14 et 15 mai 2025 (9h-12h30)

18 et 19 juin 2025 (9h-12h30)

 
 

Administrez avec ProjeQtOr

20 et 21 mai (9h-12h30)

25 et 26 juin (9h-12h30)

 

 

 

Import - Some code

More
23 Mai 2013 16:18 - 23 Mai 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 Mai 2013 16:19 by Cr0w. Reason: Code Indentation

Please Connexion or Create an account to join the conversation.

More
23 Mai 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 Connexion or Create an account to join the conversation.

Moderators: babynusprotion
Time to create page: 0.027 seconds

Paramétrages de cookies

×

Cookies fonctionnels

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

Veuillez vous connecter pour voir vos activités!

Autres cookies

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