/** * @param EcrProjectBase $project * * @return mixed */ function drawProject(EcrProjectBase $project) { echo '<h1>' . $project->name . '</h1>'; echo '<h3>' . $project->comName . '</h2>'; echo '<h3>credits..</h2>'; $reflection = new EcrProjectReflection(); switch ($project->type) { case 'component': // # $comPath = 'components'.DS.$project->com_com_name; $reflection->reflectProject($project); $reflections = $reflection->getReflections(); ECR_DEBUG ? EcrDebugger::dPrint($reflections, 'Reflection') : null; // { // echo '<pre>'; // print_r($reflections); // } // echo '</pre>'; break; default: echo 'Sorry ' . $project->type . ' not supported yet..'; return; break; } //switch ?> <table width="100%" class="adminlist"> <tr> <th>Controllers</th> <th>Views</th> </tr> <tr valign="top"> <td><?php displayReflectedFiles($reflections, 'controllers', $project); ?> </td> <td><?php displayReflectedFiles($reflections, 'views', $project); ?> </td> </tr> <tr> <th>Models</th> <th>Tables</th> </tr> <tr valign="top"> <td><?php displayReflectedFiles($reflections, 'models', $project); ?> </td> <td><?php displayReflectedFiles($reflections, 'tables', $project); ?> </td> </tr> </table> <?php }