Changeset 2593 for trunk/modules/kodoc/libraries
- Timestamp:
- 04/28/2008 03:04:22 PM (7 months ago)
- Files:
-
- 1 modified
-
trunk/modules/kodoc/libraries/Kodoc.php (modified) (10 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/modules/kodoc/libraries/Kodoc.php
r1364 r2593 35 35 36 36 $files = array(); 37 foreach (self::$types as $type)37 foreach (self::$types as $type) 38 38 { 39 39 $files[$type] = array(); 40 foreach (Kohana::list_files($type, TRUE) as $file)40 foreach (Kohana::list_files($type, TRUE) as $file) 41 41 { 42 42 // Not a source file … … 169 169 $data = file($filename); 170 170 171 foreach ($data as $line)171 foreach ($data as $line) 172 172 { 173 173 if (strpos($line, 'class') !== FALSE AND preg_match('/(?:class|interface)\s+([a-z0-9_]+).+{$/i', $line, $matches)) … … 186 186 $source = NULL; 187 187 188 foreach ($data as $line)189 { 190 switch (substr(trim($line), 0, 2))188 foreach ($data as $line) 189 { 190 switch (substr(trim($line), 0, 2)) 191 191 { 192 192 case '/*': … … 284 284 $about = ''; 285 285 286 foreach ($comment['about'] as $line)286 foreach ($comment['about'] as $line) 287 287 { 288 288 if (strpos($line, '`') !== FALSE) … … 377 377 if ($implements = $reflection->getInterfaces()) 378 378 { 379 foreach ($implements as $interface)379 foreach ($implements as $interface) 380 380 { 381 381 // Get implemented interfaces … … 392 392 if ($methods = $reflection->getMethods()) 393 393 { 394 foreach ($methods as $method)394 foreach ($methods as $method) 395 395 { 396 396 // Don't try to document internal methods … … 426 426 if ($parameters = $method->getParameters()) 427 427 { 428 foreach ($parameters as $param)428 foreach ($parameters as $param) 429 429 { 430 430 // Parameter data … … 523 523 } 524 524 525 foreach ($this->files as $type => $files)526 { 527 foreach (Kohana::list_files($type) as $filepath)525 foreach ($this->files as $type => $files) 526 { 527 foreach (Kohana::list_files($type) as $filepath) 528 528 { 529 529 // Get the filename with no extension … … 547 547 public function get_docs($format = 'html') 548 548 { 549 switch ($format)549 switch ($format) 550 550 { 551 551 default: … … 635 635 else 636 636 { 637 switch (substr(trim($line), 0, 2))637 switch (substr(trim($line), 0, 2)) 638 638 { 639 639 case '//':
