|
|
Home Developer Manual 11. API Reference [WORKING] mosDBTable->move |
| [WORKING] mosDBTable->move |
|
|
|
|
Last reviewed: Not reviewed mosDBTable->moveGeneric move method. This method may be overloaded/supplemented by the child class as required. This method is used, for example, to implement the move up/down icons in the some of the administrator pages. This method will only work if the database table contains an 'ordering' field. Syntaxvoid move ( signed-int $direction [, string $where ] )
ExamplesExample: global $database; // Declare an instance of the content class. $row = new mosContent( $database ); // Load a given record from the database table. $row->load( $uid ); // Now move it by $inc positions in the ordering sequence // and with the given WHERE clause. $row->move( $inc, "catid = $row->catid AND state >= 0" ); Please report any errors on this page to the Developer Documentation Forum. |
|
| Last Updated ( Sunday, 24 December 2006 ) |
| < Prev | Next > |
|---|





