Ejemplo n.º 1
0
    var divCount = 0;

    function reflectFile(file_path, file_nameame) {
        document.id('file_path').value = file_path;
        document.id('file_name').value = file_nameame;
        submitform('reflect');
    }
</script>

<div id="ecr_title_file"></div>
<table width="100%">
    <tr valign="top">
        <td>
            <div class="ecr_floatbox">
                <?php 
echo drawFileTree($this->project);
?>
            </div>
        </td>

        <td>
            <?php 
if (!$the_path || !$the_file) {
    if ($this->task != 'reflect' && $this->task != 'aj_reflect') {
        ?>
                    <h3 style="color: red" align="center">ALPHA testing with PHP 5 reflection class to inspect
                        classes.</h3>
                    <h3 style="color: red" align="center">The files will be included to inspect them !!</h3>
                    <h3 style="color: red" align="center">Only try to include files containing classes !!!</h3>
                    <div align="center">
                        See: <a href="http://de.php.net/manual/en/language.oop5.reflection.php"
Ejemplo n.º 2
0
 * @author     Nikolai Plath
 * @author     Created on 09-Sep-2009
 * @license    GNU/GPL, see JROOT/LICENSE.php
 */
$sniffer = new EcrPearHelperCodesniffer();
if (false == $sniffer->checkEnv()) {
    echo 'Env check failed.. cannot continue :(';
    return;
}
$standard = JFactory::getApplication()->input->get('sniff_standard');
$standards = $sniffer->getStandards();
//-- @todo provide own standards ¿ JFolder::folders(JPATH_COMPONENT.DS.'helpers'.DS.'CodeSniffer');
$easyStandards = array();
$formats = array('full', 'xml', 'checkstyle', 'csv', 'emacs', 'source', 'summary');
ecrLoadMedia('php_file_tree');
$fileTree = drawFileTree($this->project);
?>

<div class="ecr_floatbox">
    <?php 
echo $fileTree;
?>
    <div onclick="sniffFolder();" class="btn block left">
        <i class="img32 icon32-nose"></i>
        <?php 
echo jgettext('Sniff folder');
?>
</div>
</div>

<div class="ecr_floatbox">