[ Index ] |
|
Code source de Plume CMS 1.2.2 |
[Code source] [Imprimer] [Statistiques]
(pas de description)
Poids: | 580 lignes (21 kb) |
Inclus ou requis: | 0 fois |
Référencé: | 0 fois |
Nécessite: | 0 fichiers |
News:: (16 méthodes):
News()
load()
loadDetails()
getAsString()
setDefaults()
set()
setDetails()
check()
getPath()
action()
hookOnInitTemplate()
parseQueryString()
commit()
commitDetails()
remove()
removeDetails()
News($data='') X-Ref |
Constructor. |
load($id='') X-Ref |
Load the News. param: mixed Identifier or resource id ('') return: bool Success |
loadDetails() X-Ref |
Get the details of a news. The details are the associated link and website. return: bool Success |
getAsString($format = 'html') X-Ref |
Return the content of the news as a string ready for indexation. param: string Format of the string (html, wiki, text) return: string The content of the news as a string |
setDefaults($user) X-Ref |
Set the default values for the news. param: object User object to have the preferences return: bool True |
set($title, $subject, $content, $format, $status, $datestart,$dateend, $useenddate, $comment_support, $subtype) X-Ref |
Set the basic data of a news. The basic data are the one saved in the table `resources`. There is only a check of the data, use the commit() method to save in the database. param: string Title of the news param: string Subject or keywords param: string Content param: string Format of the content param: int Status param: timestamp Date of publication param: timestamp Date of end of publication param: bool Use a date of end of publication param: int Comment support param: int Subtype of the news |
setDetails($title, $link) X-Ref |
Set the details of a news. param: string Associated website title param: string Associated website URL return: bool Success |
check() X-Ref |
Check the integrity of the news. The error is set if error found. return: bool Success |
getPath($type='') X-Ref |
Get the path to the news. param: string Force type of path ('') return: string The path |
action($query) X-Ref |
Action to display a category. param: string Server query string return: int Success code |
hookOnInitTemplate($hook, $param) X-Ref |
Hook on the initialization of the templates. param: string Name of the calling hook param: array Default parameters (not used) return: bool Success |
parseQueryString($query) X-Ref |
Parse query string. param: string Query string return: array (news id, category path) |
commit() X-Ref |
Save the data into the database. return: bool Success |
commitDetails() X-Ref |
Save the details of a news. return: bool Success |
remove() X-Ref |
Remove the news from the database. return: bool Success |
removeDetails() X-Ref |
Remove details. Remove the detailed informations from the `news` table for the current news. return: bool Success |
Généré le : Mon Nov 26 11:57:01 2007 | par Balluche grâce à PHPXref 0.7 |
![]() |