php docs @see dont work?

3 messages Options
Embed this post
Permalink
DarkPrisma

php docs @see dont work?

Reply Threaded More More options
Print post
Permalink
Hi,



why does the @se php-doc-tag don't work?




Code:
<?php

/**

 * class 1

 *

 * example of use of the :: scope operator

 * @see subclass::method()

 */

class main_class {



    /**

     * example of linking to same class, outputs <u>main_class::parent_method()</u>

     * @see parent_method

     */

    var $foo = 3;



    /**

     * subclass inherits this method.

     * example of a word which is either a constant or class name, in this case a classname

     * @see subclass

     * @see subclass::$foo

     */

    function parent_method()

    {



        if ($this->foo == 9){

                        die;

                }



    }



}



/**

 * this class extends main_class.

 * example of linking to a constant, and of putting more than one element on the same line

 * @see main_class, TEST_CONST

 */

class subclass extends main_class {

       

    /**

     * example of same class lookup - see will look through parent hierarchy to

     * find the method in { @link main_class}

     * the above inline link tag will parse as <u>main_class</u>

     * @see parent_method()

     */

    var $foo = 9;



}







---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

Petr Pisl

Re: php docs @see dont work?

Reply Threaded More More options
Print post
Permalink
Hi,

do you mean the navigation, hyperlink?

Regards,
Petr

> Hi,
>
>
>
> why does the @se php-doc-tag don't work?
>
>
>
>
> Code:
> <?php
>
> /**
>
>  * class 1
>
>  *
>
>  * example of use of the :: scope operator
>
>  * @see subclass::method()
>
>  */
>
> class main_class {
>
>
>
>     /**
>
>      * example of linking to same class, outputs <u>main_class::parent_method()</u>
>
>      * @see parent_method
>
>      */
>
>     var $foo = 3;
>
>
>
>     /**
>
>      * subclass inherits this method.
>
>      * example of a word which is either a constant or class name, in this case a classname
>
>      * @see subclass
>
>      * @see subclass::$foo
>
>      */
>
>     function parent_method()
>
>     {
>
>
>
>         if ($this->foo == 9){
>
> die;
>
> }
>
>
>
>     }
>
>
>
> }
>
>
>
> /**
>
>  * this class extends main_class.
>
>  * example of linking to a constant, and of putting more than one element on the same line
>
>  * @see main_class, TEST_CONST
>
>  */
>
> class subclass extends main_class {
>
>
>
>     /**
>
>      * example of same class lookup - see will look through parent hierarchy to
>
>      * find the method in { @link main_class}
>
>      * the above inline link tag will parse as <u>main_class</u>
>
>      * @see parent_method()
>
>      */
>
>     var $foo = 9;
>
>
>
> }
>
>
>
>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [hidden email]
> For additional commands, e-mail: [hidden email]
>
>  


---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

DarkPrisma

php docs @see dont work?

Reply Threaded More More options
Print post
Permalink
In reply to this post by DarkPrisma
yes





---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]