Changes

Jump to navigation Jump to search
Line 149: Line 149:  
'''2. Create and load the object to show into your tab'''
 
'''2. Create and load the object to show into your tab'''
   −
Create instance of object of the correct class and load object from database by using the fetch method of object en providing to this method the id you get from url (ie : /mytab.php?id=1).
+
Create an instance of object of the correct class and load object from the database by using the fetch method of object in providing to this method the id you get from url (ie : /mytab.php?id=1).
    
''Example :''
 
''Example :''
Line 159: Line 159:  
</source>
 
</source>
   −
'''3. Get list of all tabs to show for your object type'''
+
'''3. Get a list of all tabs to show for your object type'''
   −
Use fonction XXX_prepare_head($obj), where XXX is name of object. This will return an array with all definition of tab entries to show. Parameter to put into this method is the instance of object you want tabs.
+
Use function XXX_prepare_head($obj), where XXX is name of object. This will return an array with all definition of tab entries to show. The parameter to put into this method is the instance of object you want tabs.
    
The resulting array has the following structure
 
The resulting array has the following structure
15

edits

Navigation menu