includes/phing/src/Tasks/DocGeneratorTask.php
protected function buildMarkupFull()
    {
        $output = "# Toolkit Phing Targets\n";
        $output .= "This is the list of targets provided by toolkit, please note that this is a auto-generated list.\n\n";

        $targetsCount = 0;
        foreach ($this->targets as $target) {

            $detail = $target['description'] ."\n";

            $detail .= "\n##### Example:\n";
            $detail .= "`toolkit\phing " . $target['name'] . "'\n'";

            if (isset($target['properties']) && count($target['properties']) > 0) {
                $detail .= "\n##### Properties:\n";
                foreach ($target['properties'] as $property) {
                  $detail .= "* " . $property['name'] . "\n";
                }
            }
            if (isset($target['dependencies']) && count($target['dependencies']) > 0) {
                $detail .= "\n##### Dependencies: \n";
                foreach ($target['dependencies'] as $callback) {
                  $detail .= "* " . $callback . "\n";
                }
            }

            $output .= "<details><p><summary>" . $target['name'] . "</summary></p>\n";
            if (isset($detail)) {
              $output .= $detail;
            }
            $output .= "\n</details>\n";

            $targetsCount++;
        }

        $this->markup = $output;
        $this->exportMarkup('targets-list.md');
        echo "Generated documentation for " . $targetsCount . " targets in the full list.\n";
    }
protected function buildMarkupFull()
    {
        $output = "# Toolkit Phing Targets\n";
        $output .= "This is the list of targets provided by toolkit, please note that this is a auto-generated list.\n\n";

        $targetsCount = 0;
        foreach ($this->targets as $target) {

            $detail = $target['description'] ."\n";

            $detail .= "\n##### Example:\n";
            $detail .= "`toolkit\phing " . $target['name'] . "'\n'";

            if (isset($target['properties']) && count($target['properties']) > 0) {
                $detail .= "\n##### Properties:\n";
                foreach ($target['properties'] as $property) {
                  $detail .= "* " . $property['name'] . "\n";
                }
            }
            if (isset($target['dependencies']) && count($target['dependencies']) > 0) {
                $detail .= "\n##### Dependencies: \n";
                foreach ($target['dependencies'] as $callback) {
                  $detail .= "* " . $callback . "\n";
                }
            }

            $output .= "<details><p><summary>" . $target['name'] . "</summary></p>\n";
            if (isset($detail)) {
              $output .= $detail;
            }
            $output .= "\n</details>\n";

            $targetsCount++;
        }

        $this->markup = $output;
        $this->exportMarkup('targets-list.md');
        echo "Generated documentation for " . $targetsCount . " targets in the full list.\n";
    }
protected function buildMarkupFull ( ) { $ output = "# Toolkit Phing Targets\n" ; $ output .= "This is the list of targets provided by toolkit, please note that this is a auto-generated list.\n\n" ; $ targetsCount = 0 ; foreach ( $ this -> targets as $ target ) { $ detail = $ target [ 'description' ] . "\n" ; $ detail .= "\n##### Example:\n" ; $ detail .= "`toolkit\phing " . $ target [ 'name' ] . "'\n'" ; if ( isset ( $ target [ 'properties' ] ) && count ( $ target [ 'properties' ] ) > 0 ) { $ detail .= "\n##### Properties:\n" ; foreach ( $ target [ 'properties' ] as $ property ) { $ detail .= "* " . $ property [ 'name' ] . "\n" ; } } if ( isset ( $ target [ 'dependencies' ] ) && count ( $ target [ 'dependencies' ] ) > 0 ) { $ detail .= "\n##### Dependencies: \n" ; foreach ( $ target [ 'dependencies' ] as $ callback ) { $ detail .= "* " . $ callback . "\n" ; } } $ output .= "<details><p><summary>" . $ target [ 'name' ] . "</summary></p>\n" ; if ( isset ( $ detail ) ) { $ output .= $ detail ; } $ output .= "\n</details>\n" ; $ targetsCount ++ ; } $ this -> markup = $ output ; $ this -> exportMarkup ( 'targets-list.md' ) ; echo "Generated documentation for " . $ targetsCount . " targets in the full list.\n" ; }
Generate full list markup.

@return void
Generate full list markup .