SEARCH
0-9 A B C D E F G H I J K L M N O P Q R S T U V W X Y Z
Prev | Current Page 529 | Next

James Kennard

"Mastering Joomla! 1.5 Extension and Framework Development"


If used statically (both with and against must be specified) compares with to against.
Parameters [with] Current user's ID
[against]
Record's checked_out value (checked-out
user's ID)
Returns true if the record is checked out by any user other than the current user
load( oid : string=null ) : boolean
Resets the record buffer and loads a single record into the buffer. oid is the value of the
record's primary key.
Parameters [oid] Record ID
Returns true on success
move( dirn : int, where : string='' ) : void
Moves a record up or down the ordering (table must have an ordering field). -1 = move up,
1 = move down.
Parameters dirn Direction to move
[where] WHERE clause
Appendix
[ 387 ]
publish( cid : array=null, publish : int=1, user_id : int=0 ) : boolean
Sets the publish value of records identified by cid, an array of record IDs (this only works
when the table's primary key is numeric). Although cid is optional, if it is not specified the
method will fail. If the table has a checked_out field, any records that are checked out by
other users will not be affected.


Pages:
517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541