Campustream 1.0
A social network MQP for WPI
News_Controller Class Reference
Inheritance diagram for News_Controller:
Controller REST

Public Member Functions

 index ($args)
 new_action ()
 show ($args)
 create ()
 vote ()
 create_comment ()
 delete_comment ()
 location_search ()

Data Fields

 $enable_session = true
 $template = 'template/main'

Detailed Description

Handles all interactions with the News/Events section of the site.

Definition at line 7 of file news.php.


Member Function Documentation

create ( )

Creates a new news/event item

Definition at line 162 of file news.php.

create_comment ( )

Adds a comment to the given news/event item

Definition at line 263 of file news.php.

delete_comment ( )

Deletes the given comment from a news/event item. Notice that it performs a soft-delete by flagging the comment as deleted, instead of actually removing it from MySQL. This is for data mining purposes, and because removing the comment data would ruin the heirarchical structure of the commenting system.

Definition at line 308 of file news.php.

index ( args)

Loads the news/event page based on the given type and section.

Definition at line 14 of file news.php.

location_search ( )

Performs a simple location search based on a search query. The search list is stored in the Eventlocation_Model class.

Definition at line 341 of file news.php.

new_action ( )

Displays the page where users can create a new news/event item

Definition at line 91 of file news.php.

show ( args)

Shows the single given news/event item

Definition at line 103 of file news.php.

vote ( )

Adds or removes a vote on a news/event item

Definition at line 233 of file news.php.


Field Documentation

$enable_session = true

Reimplemented from Controller.

Definition at line 8 of file news.php.

$template = 'template/main'

Reimplemented from Controller.

Definition at line 9 of file news.php.


The documentation for this class was generated from the following file: