FrameworkConfiguration.loadIncludes ( ArrayObject arrayObject  )  [private]

A private include loader.

Parameters:
$arrayObject The array object with all include files
Returns:
void

Definition at line 99 of file class_FrameworkConfiguration.php.

References readConfig().

00099                                                                  {
00100                 // Load only if there are includes defined
00101                 if (!is_null($arrayObject)) {
00102                         for ($idx = $arrayObject->getIterator(); $idx->valid(); $idx->next()) {
00103                                 // Get include file
00104                                 $inc = $idx->current();
00105 
00106                                 // Is the file name really set?
00107                                 if (!empty($inc)) {
00108                                         // Base path is by default added
00109                                         $fqfn = $inc;
00110 
00111                                         // Base path added? (Uni* / Windows)
00112                                         if ((substr($inc, 0, 1) != "/") && (substr($inc, 1, 1) != ":")) {
00113                                                 // Generate FQFN
00114                                                 $fqfn = sprintf("%s/inc/extra/%s", $this->readConfig('base_path'), $inc);
00115                                         } // END - if
00116                                 } // END - if
00117 
00118                                 // Include them all here
00119                                 require($fqfn);
00120                         }
00121                 } // END - if
00122         }

Here is the call graph for this function:


Generated on Mon Dec 8 01:12:13 2008 for Ship-Simulator by  doxygen 1.5.6