View Single Post
Old 11-17-2007, 02:20 PM   #4 (permalink)
Salathe
Moderateur
RegEx Guru PHP Guru Top Contributor Advanced Programmer 
 
Salathe's Avatar
 
Join Date: Apr 2007
Posts: 1,393
Thanks: 5
Salathe is on a distinguished road
Default

Inside your table class, just add a member variable which is an instance of the columns class.

For example (only an example!):
PHP Code:
class table
{
    public 
$columns;
    public function 
__construct()
    {
        
$this->columns = new columns();
    }
}

// Then you can do:
$table = new table();
$table->columns->add('asdf'); 
Salathe is offline  
Reply With Quote