Location: PHPKode > projects > PHP Doc System > content/sample_1.php
<?php

// PHP Doc System Module: Sample 1

$sample_1 = new module("sample_1" // key
                      ,"Sample 1" // title
                      ,"Sample 1" // link text
                      ,array("sample_2"
                            ,"sample_3"
                            )
                      ,"" // summary
                      ,"" // content
                      ,array()
                      );

$current_module = $sample_1;
include("import_modules.inc.php");

ob_start(); // buffering content
	ob_start(); // buffering summary
?>
<p>Sample 1 summary info here.</p>
<?php
	$sample_1->summary = ob_get_contents();
	ob_end_clean();
	print($sample_1->summary);
?>
<p>The rest of the content goes here. Here is a link to <?php $sample_2->print_link(); ?> and <?php $sample_3->print_link("Sample 3 with overridden link text"); ?>.</p>

<p>Screenshot:</p>

<p><img src="images/sample_1.gif" alt="" /></p>	

<?php
$sample_1->content = ob_get_contents();
ob_end_clean();
?>
Return current item: PHP Doc System