FrameworkDirectoryPointer.readDirectoryExcept ( except = ""  ) 

Read lines from the current directory pointer except some parts.

Parameters:
$except Some parts of a directory we want to ignore. Valid: dirs Other values will be silently ignored
Returns:
string Directory and/or file names read from the current directory pointer

Definition at line 156 of file class_FrameworkDirectoryPointer.php.

References readRawDirectory().

00156                                                            {
00157                 if ((empty($except)) || (!is_array($except)) || (count($except) == 0)) {
00158                         // No exception given, so read all data
00159                         return $this->readRawDirectory();
00160                 }
00161 
00162                 // Read a raw line...
00163                 $rawLine = $this->readRawDirectory();
00164 
00165                 // Shall we exclude directories?
00166                 if ((!is_null($rawLine)) && ($rawLine !== false) && (in_array($rawLine, $except))) {
00167                         // Exclude this part
00168                         return $this->readDirectoryExcept($except);
00169                 } elseif ((!is_null($rawLine)) && ($rawLine !== false)) {
00170                         // Return read data
00171                         return $rawLine;
00172                 }
00173 
00174                 // End pointer reached
00175                 return null;
00176         }

Here is the call graph for this function:


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