Liz::TTS::Article - module for Article objects of the TTS
use Liz::TTS; $tts = new Liz::TTS;
$article = $tts->Article; $article = $tts->Article( $ID );
$article->update;
Provide object oriented access to articles in a TTS. Usually not accessed directly, but rather through the Liz::TTS object and its Article method.
Create a new Article object from a TTS object.
1 Liz::TTS object 2 ID to created Article object with (default: none = new article)
1 instantiated object
It is not intended to call this method directly, but rather indirectly through the Liz::TTS module.
$tts = new Liz::TTS; $article = $tts->Article; $article = $tts->Article( $ID );
Update an Article object in the Liz::TTS database.
1 ID with which the object was updated (undef = error)
$ID = $article->update;
Delete the Liz::TTS::Article object from the database.
1 flag: whether action was successful
$article->delete;
The following methods allow you to inspect and/or change certain fields of the Liz::TTS::Article object.
Return or set the AuthorIDs of the Liz::TTS::Article object.
1..N new AuthorIDs (default: no change)
1..N current / old AuthorIDs
@authorID = $article->AuthorIDs;
Set / return the Intro of the Liz::TTS::Article object.
1 Intro of the Article
1 Intro of the Article
$intro = $article->Intro; $article->Intro( $the_intro );
Return the Created timestamp of the Liz::TTS::Article object.
1 current timestamp value of the Created date
$created = $article->Created;
Return the ID of the Liz::TTS::Article object.
1 current ID of the object
$ID = $article->ID;
Return or set the Name information of the object.
1 new name of the Name (default: no change)
1 current/old name of the Name
$article->Name( 'Chapter 2' ); $name = $article->Name;
Add or move (eg. change order of) a text ID in the article. If the ID exists in the list already, it is moved. If it does not exist yet, it is added (at the specified location).
1 ID to add/move 2 Location to move to (default: at the beginning) Note: to add a text at the end of the list, use 'end'
# Add text at the beginning # Add text at end # Move an existing ID (basically the same operation as above)
$article->AddTextID( $newID ); $article->AddTextID( $newID,'end' ); $article->AddTextID( $moveID,'end' );
Return or set the TextIDs of the Liz::TTS::Article object.
1..N new textIDs (default: no change)
1..N current / old textIDs
@textID = $article->TextIDs;
Return the PictureID of the Liz::TTS::Article object.
1 current ID of the object
$ID = $article->PictureID;
Return the SortName of the Liz::TTS::Article object.
1 current ID of the object
$ID = $article->SortName;
Return the Updated timestamp of the Liz::TTS::Article object.
1 current timestamp value of the Updated date
$updated = $article->Updated;
Sjoerd Lawende( sjoerd@xxLINK.nl )
(C) 1998-1999 xxLINK Internet Services