Basic Class Definition

Just a basic idea of what a skeleton class should start out like.

class my_class{
    /*Class Vars*/
    public $_user_id="";

    /*Class Constants*/
    const MY_CONST="my const value";

    /*Constructor*/
    function __construct(){

    }

    /*Class Methods*/
    public function myFunction(){

    }
}

This entry was posted on Saturday, April 18th, 2009 at 12:40 pm and is filed under OOP. You can follow any responses to this entry through the RSS 2.0 feed. You can leave a response, or trackback from your own site.

Leave a Reply