Displays the list of doc files from the packages

@Action
@Logged
@param string $selfedit
552028
public function index($selfedit = "false") {
		// TODO: CHANGE THE PACKAGE CONTROLLER SO WE CAN VIEW FROM THE APP SCOPE THE PACKAGES THAT ARE REQUESTED ON THE ADMIN SCOPE VIA A <scope>admin</scope> declaration.
		
		$this->selfedit = $selfedit;
		
		if ($selfedit == "true") {
			$this->moufManager = MoufManager::getMoufManager();
			$this->rootPath = ROOT_PATH;
		} else {
			$this->moufManager = MoufManager::getMoufManagerHiddenInstance();
			$this->rootPath = ROOT_PATH.'../../../';
		}
		
		$composerService = new ComposerService($this->selfedit == "true");
		
		$this->packageList = $composerService->getLocalPackages();
		
		$this->contentBlock->addFile(ROOT_PATH."src-dev/views/doc/index.php", $this);
		$this->template->toHtml();	
	}
800791
private void showFolderAlbumFiles(int position) {
        this.mCurrentFolder = position;
        AlbumFolder albumFolder = mAlbumFolders.get(position);
        mView.bindAlbumFolder(albumFolder);
    }
521787
public function search($query, $selfedit = "false") {
        $this->ajax = true;
        $this->defaultAction($selfedit, $query);
    }
1118153
public function sourceWriter(&$doclet)
    {

        parent::HTMLWriter($doclet);

        $rootDoc =& $this->_doclet->rootDoc();
        $phpdoctor =& $this->_doclet->phpdoctor();

        $this->_sections[0] = array('title' => 'Overview', 'url' => 'overview-summary.html');
        $this->_sections[1] = array('title' => 'Namespace');
        $this->_sections[2] = array('title' => 'Class');
        //$this->_sections[3] = array('title' => 'Use');
        if ($phpdoctor->getOption('tree')) $this->_sections[4] = array('title' => 'Tree', 'url' => 'overview-tree.html');
        $this->_sections[5] = array('title' => 'Files', 'url' => 'overview-files.html', 'selected' => TRUE);
        $this->_sections[6] = array('title' => 'Deprecated', 'url' => 'deprecated-list.html');
        $this->_sections[7] = array('title' => 'Todo', 'url' => 'todo-list.html');
        $this->_sections[8] = array('title' => 'Index', 'url' => 'index-all.html');

        $sources =& $rootDoc->sources();

        $this->_id = 'files';

        ob_start();

        echo "<hr>\n\n";

        echo '<h1>Source Files</h1>';

        echo "<ul>\n";
        foreach ($sources as $filename => $data) {
            $url = strtolower(str_replace(DIRECTORY_SEPARATOR, '/', $filename));
            echo '<li><a href="source/', $url, '.html">', $filename, '</a></li>';
        }
        echo "</ul>\n";

        $this->_output = ob_get_contents();
        ob_end_clean();

        $this->_write('overview-files.html', 'Overview', TRUE);

        $this->_id = 'file';

        foreach ($sources as $filename => $data) {

            $this->_sections[0] = array('title' => 'Overview', 'url' => 'overview-summary.html');
            $this->_sections[1] = array('title' => 'Package');
            $this->_sections[2] = array('title' => 'Class');
            //$this->_sections[3] = array('title' => 'Use');
            if ($phpdoctor->getOption('tree')) $this->_sections[4] = array('title' => 'Tree');
            $this->_sections[5] = array('title' => 'Files', 'url' => 'overview-files.html');
            $this->_sections[6] = array('title' => 'Deprecated', 'url' => 'deprecated-list.html');
            $this->_sections[7] = array('title' => 'Todo', 'url' => 'todo-list.html');
            $this->_sections[8] = array('title' => 'Index', 'url' => 'index-all.html');

            $this->_depth = substr_count($filename, '/') + 1;

            if (class_exists('GeSHi')) {
                $geshi = new GeSHi($data[0], 'php');
                $source = $geshi->parse_code();
            } else {
                $source = '<pre>'.$data[0].'</pre>';
            }

            ob_start();

            echo "<hr>\n\n";
            echo '<h1>'.$filename."</h1>\n";

            if (isset($data[1]['tags']['@text'])) {
                echo '<div class="comment" id="overview_description">', $this->_processInlineTags($data[1]['tags']['@text']), "</div>\n\n";
            }

            echo "<hr>\n\n";

            foreach (explode("\n", $source) as $index => $line) {
                echo '<a name="line'.($index + 1).'"></a>'.$line."\n";
            }

            $this->_output = ob_get_contents();
            ob_end_clean();

            $this->_write('source/'.strtolower($filename).'.html', $filename, TRUE);

        }

    }
239466
private function showlist()
     {
        $this->getMessage('help');

        foreach ($this->options as $opt) {
            echo "\n";
            echo "\t \t \t", $this->log(" ".$opt['name']." => ".$opt['description']." ", 'success');
            echo "\n";
        }
     }
998565
public function saveConfig($selfedit = "false") {
		$this->selfedit = $selfedit;
		
		if ($selfedit == "true") {
			$this->moufManager = MoufManager::getMoufManager();
		} else {
			$this->moufManager = MoufManager::getMoufManagerHiddenInstance();
		}
		
		$this->configManager = $this->moufManager->getConfigManager();
		$this->constantsList = $this->configManager->getMergedConstants();
		
		$constants = array();
		foreach ($this->constantsList as $key=>$def) {
			if ($def['defined'] == true && $def['type'] == 'bool') {
				$constants[$key] = (get($key)=="true")?true:false;
			} else {
				$constants[$key] = get($key);
			}
		}
		$this->configManager->setDefinedConstants($constants);
		
		header("Location: .?selfedit=".$selfedit);
	}
602917
public function doInstall($name, $version, $selfedit = "false") {
		$this->selfedit = $selfedit;
		
		if ($selfedit == "true") {
			$this->moufManager = MoufManager::getMoufManager();
		} else {
			$this->moufManager = MoufManager::getMoufManagerHiddenInstance();
		}
		
		$composerService = new ComposerService($this->selfedit == "true", true);
		
		ChunckedUtils::init();
		
		$msg = "<script>window.parent.Composer.consoleOutput('Starting installation process...<br/>')</script>";
		ChunckedUtils::writeChunk($msg);
				
		$composerService->install($name, $version);
		
		
		ChunckedUtils::close();
	}
1113085
public function packageIndexFrameWriter(&$doclet)
    {

        parent::HTMLWriter($doclet);

        ob_start();

        echo '<body id="frame">', "\n\n";

        echo '<h1>'.$this->_doclet->getHeader()."</h1>\n\n";

        echo "<ul>\n";
        echo '<li><a href="allitems-frame.html" target="index">All Items</a></li>'."\n";
        echo "</ul>\n\n";

        echo "<h1>Namespaces</h1>\n\n";

        $rootDoc =& $this->_doclet->rootDoc();

        echo "<ul>\n";
        $packages =& $rootDoc->packages();
        ksort($packages);
        foreach ($packages as $name => $package) {
            echo '<li><a href="'.$package->asPath().'/package-frame.html" target="index">'.$package->name().'</a></li>'."\n";
        }
        echo "</ul>\n\n";

        echo '</body>', "\n\n";

        $this->_output = ob_get_contents();
        ob_end_clean();

        $this->_write('overview-frame.html', 'Overview', FALSE);

    }
194424
public function listRevisions($fileId, $optParams = array()) {
      $params = array('fileId' => $fileId);
      $params = array_merge($params, $optParams);
      $data = $this->__call('list', array($params));
      if ($this->useObjects()) {
        return new RevisionList($data);
      } else {
        return $data;
      }
    }
38917
public function separateLogFiles($ext = '.txt')
    {
        foreach ($this->filenameLevels as $level => $filename) {
            $this->setLogLevelFile($level, $level.$ext);
        }
    }
717691
public function printInstallationScreen($selfedit = 'false') {
		$this->selfedit = $selfedit;
		$this->installService = new ComposerInstaller($selfedit == 'true');
		$this->installs = $this->installService->getInstallTasks();
		
		$this->contentBlock->addFile(dirname(__FILE__)."/../../views/installer/processing.php", $this);
		$this->template->toHtml();
	}
63638
public function packageFrameWriter(&$doclet)
    {

        parent::HTMLWriter($doclet);

        $rootDoc =& $this->_doclet->rootDoc();

        $this->_output =& $this->_allItems($rootDoc);
        $this->_write('allitems-frame.html', 'All Items', FALSE);

        $packages =& $rootDoc->packages();
        ksort($packages);

        foreach ($packages as $packageName => $package) {

            $this->_depth = $package->depth() + 1;

            $this->_output =& $this->_buildFrame($package);
            $this->_write($package->asPath().'/package-frame.html', $package->name(), FALSE);

        }

    }
761335
function &_allItems(&$rootDoc)
    {
        ob_start();

        echo '<body id="frame">', "\n\n";

        echo "<h1>All Items</h1>\n\n";

        $classes =& $rootDoc->classes();
        if ($classes) {
            ksort($classes);
            echo "<h2>Classes</h2>\n";
            echo "<ul>\n";
            foreach ($classes as $name => $class) {
                $package =& $classes[$name]->containingPackage();
                if ($class->isInterface()) {
                    echo '<li><em><a href="', $classes[$name]->asPath(), '" title="', $classes[$name]->packageName(),'" target="main">', $classes[$name]->name(), "</a></em></li>\n";
                } elseif ($class->isTrait()) {
                    echo '<li><em><a href="', $classes[$name]->asPath(), '" title="', $classes[$name]->packageName(),'" target="main">', $classes[$name]->name(), "</a></em></li>\n";
                } else {
                    echo '<li><a href="', $classes[$name]->asPath(), '" title="', $classes[$name]->packageName(),'" target="main">', $classes[$name]->name(), "</a></li>\n";
                }
            }
            echo "</ul>\n\n";
        }

        $functions =& $rootDoc->functions();
        if ($functions) {
            ksort($functions);
            echo "<h2>Functions</h2>\n";
            echo "<ul>\n";
            foreach ($functions as $name => $function) {
                $package =& $functions[$name]->containingPackage();
                echo '<li><a href="', $package->asPath(), '/package-functions.html#', $functions[$name]->name(), '()" title="', $functions[$name]->packageName(),'" target="main">', $functions[$name]->name(), "</a></li>\n";
            }
            echo "</ul>\n\n";
        }

        $globals =& $rootDoc->globals();
        if ($globals) {
            ksort($globals);
            echo "<h2>Globals</h2>\n";
            echo "<ul>\n";
            foreach ($globals as $name => $global) {
                $package =& $globals[$name]->containingPackage();
                echo '<li><a href="', $package->asPath(), '/package-globals.html#', $globals[$name]->name(), '" title="', $globals[$name]->packageName(),'" target="main">', $globals[$name]->name(), "</a></li>\n";
            }
            echo "</ul>\n\n";
        }

        echo '</body>', "\n\n";

        $output = ob_get_contents();
        ob_end_clean();

        return $output;
    }
728687
public function show()
	{
		$package = $this->arguments->getOpt('package');
		if (!empty($package))
		{
			$versions = Composer::findRemotePackages($package, '*');
			$this->output->addRawFromAssocArray($versions);
		}
		else
		{
			$installed = Composer::getLocalPackages();
			$this->output->addRawFromAssocArray($installed);
		}
	}
166704
public function findFiles()
    {
        $files = $this->getFilesystemDisk()->listContents($this->getFilesPath());
        foreach ($files as $fileData) {
            $this->addNewFileFromArray($fileData);
        }
    }
803430
protected function displayAddedFiles(Fluent $collection)
    {
        if ($this->getOutput()->getVerbosity() >= OutputInterface::VERBOSITY_VERY_VERBOSE) {
            foreach ($collection->get('added') as $file) {
                $this->info("File added: [{$file}]");
            }
        }
    }
988478
public function createMessageFile($name = "defaultTranslationService", $selfedit="false", $language) {
	
		$this->addTranslationLanguageFromService(($selfedit == "true"), $name, $language);
		
		header('location:'.$_SERVER['HTTP_REFERER']);
	}