|
|
Home Manual 11. API Reference [WORKING] mosDBTable->publish_array |
| [WORKING] mosDBTable->publish_array |
|
|
|
|
Last reviewed: Not reviewed mosDBTable->publish_arrayGeneric publish/unpublish function. Returns true if successful; false otherwise. If returning false then an error message can be retrieved using the mosDBTable->getError function. Note: In Joomla! 1.0.4 this method does not return a boolean and so it is not possible to determine if the method succeeded or not. Syntaxboolean publish_array ( array $id [, int $publish [, int $myid ]] )
ExamplesExample: In this example menu records with particular item id's are unpublished.global $database, $my; // Declare an instance of the menu class. $menu = new mosMenu( $database ); // Create an array of record id's to be unpublished. $idarray = array( 2, 3, 5 ); // Unpublish the menu records with these id's. $menu->publish_array( $idarray, 0, $my->id ); Please report any errors on this page to the Developer Documentation Forum. |
|
| Last Updated ( Sunday, 24 December 2006 ) |
| < Prev | Next > |
|---|





