storyA class which encapsulates a story or article item. Provides methods to get/save to database, edit the story in a popup window, and view it.
Also provides methods to index/unindex to the search engine.
Located in /story-defs.php (line 56)
RenderableObject | --story
mixed
$bytesize
= 0 (line 94)
mixed
$deleted
= false (line 88)
mixed
$expiry_date
= "" (line 74)
mixed
$expiry_date_ts
= 0 (line 75)
mixed
$formname
= "" (line 93)
mixed
$has_expiry
= true (line 63)
mixed
$has_media
= true (line 60)
mixed
$has_multilang
= true (line 64)
mixed
$has_multimedia
= false (line 61)
mixed
$has_precis
= true (line 62)
mixed
$info_msg
= "" (line 89)
mixed
$language
= 0 (line 65)
mixed
$lastmodified
= "" (line 76)
mixed
$lastmodified_ts
= 0 (line 77)
mixed
$microsite_name
(line 96)
mixed
$newstory
= false (line 90)
mixed
$root_translation_id
= -1 (line 84)
mixed
$root_translation_lang
(line 85)
mixed
$storymode
= "" (line 92)
mixed
$story_author
= "" (line 69)
mixed
$story_author_name
= "" (line 70)
mixed
$story_category
= false (line 58)
mixed
$story_category_desc
= "" (line 59)
mixed
$story_content
= "" (line 68)
mixed
$story_date
= "" (line 72)
mixed
$story_date_ts
= 0 (line 73)
mixed
$story_headline
= "" (line 66)
mixed
$story_icon
(line 79)
mixed
$story_icon_url
(line 80)
mixed
$story_id
= NEW_STORY (line 57)
mixed
$story_locs
= array() (line 82)
mixed
$story_media
= array() (line 78)
mixed
$story_precis
= "" (line 67)
mixed
$story_translations
= array() (line 83)
mixed
$story_type
= "" (line 71)
mixed
$valid
= false (line 91)
mixed
$visible
= false (line 81)
mixed
$wordcount
= 0 (line 95)
Constructor
Remove the story from the system. We actually just flag it as deleted on the database, and keep the record.
Get a story in total. We always access stories by their ID.
Returns the story_id of a translation of the current story in the
given language. If it already exists, then it just returns the story ID. If it doesn't exist, then it simply makes a copy of this story, assigns it the language it _will_ be translated into, and records a relationship to the other associated translations in the database table 'story_tranlsation'. This latter table allows us to put a list of languages (or little country flags) on any stories which have alternatives in another language.
Render the story. We render the story as a table within a form containing all the form elements required to manipulate the story content, email it to someone, save it, and delete it etc...
Generate a precis from the story content.
Return the content of this story formatted for plaintext display
Process the POST from form. This method deals with POSTed content from the edit form.
Return the rendering of the story icon (if one exists) either as a standard HTML anchor tag if an icon URL exists, or as an image.
Un-Index this story from the search engine, if enabled for this website.
Render the story as a maintainer reader would view it. Note that this
is not a fully dressed-up story viewer. It is designed as a view that a story administrator would see, showing all the technical bits and pieces such as story byte-size etc. You should create your own viewer for rendering stories 'prettily' on your website.
Do a re-count of the story words. Set our local variable and also return the value as a by-product..
Inherited From RenderableObject
RenderableObject::RenderableObject()
RenderableObject::html()
RenderableObject::render()
RenderableObject::wml()
RenderableObject::wmlup()
RenderableObject::xml()
Documentation generated by phpDocumentor 1.3.0RC3