/** * A second sample function. * * This function links to the first sample function, with both see and link, * to verify that links work across projects. The see link is at the bottom. * Here is the link: * @link samp_GRP-6.x Link to the samples group @endlink * * Here we use the sample_in_code_links(), $sample_global, SAMPLE_CONSTANT in * the text. These should all turn into links. So should a reference to the * sample.php file. * * @see sample_in_code_links() */ function second_sample_function() { // Use global variable, constant, and function from the sample project in the // function body and verify that they turn into links. global $sample_global; $sample_global = SAMPLE_CONSTANT; $foo = sample_function('a', 'b'); $bar = sample_class_function('x'); }
// This should link to parent method. $x = parent::foo(); // This should link to the parent method, which is not overridden on // this class. $this->baz(); } } /** * Another Sample interface. */ interface SampleInterfaceTwo { /** * A public method. */ public function bar(); } $random_assignment_not_to_be_parsed = NULL; abstract class Sample2 implements SampleInterface { public function baz() { } } /** * @} end class_samples */ // This function call in the global space is for testing whether references // can be detected here. $xyz = sample_class_function();