com.lokorin.lokorin.lib
[ class tree: com.lokorin.lokorin.lib ] [ index: com.lokorin.lokorin.lib ] [ all elements ]

Procedural File: lib_news.php

Source Location: /_includes/lib_news.php



Classes:

Comment
Describes a news comment.
News
Describes a news item.


Page Details:

A library that contains everything that is related to the site's news system.



Tags:

filesource:  Source Code for this file
license:  GNU Lesser General Public License
version:  $Revision: 1.34 $
author:  Andreas Launila


Includes:

require_once('common.php') [line 19]
For access to common constants and functions.







getAllNewsCaptions [line 46]

array getAllNewsCaptions( )

Gets the captions of all available news entries.



Tags:

return:  Key is news id, value as news title.
access:  public


[ Top ]



getNews [line 30]

array getNews( string $sqlSelector)

Gets all news items that matches the specified selector.



Tags:

return:  An array where the key is the order in which the news entries were retrieved. The values are News instances.
access:  public


Parameters

string   $sqlSelector   The selector that specifies all matching news items, e.g. "WHERE id > 5" or "ORDER BY id".
[ Top ]



Documentation generated on Sun, 16 Apr 2006 21:03:42 +0200 by phpDocumentor 1.3.0RC4