w_news

Template of some module.  For more info see code.  Release: $Name: $

Edit by: $Author: mcbig $ Edit Date: $Date: 2007/01/02 16:13:12 $ Version: $Revision: 1.4 $

Summary
Template of some module.
Generates option tags for combo box widget
Returns edit form for News XXX: Here, we use isText_Id (simple copy from w_texts.php, so we can use the same Form Template).
Returns form when we wont delete New
reformats text
Adds new to SQL.
Delete new from SQL.
Loads values for Edit Form
Loads detail and call View Form function.
contains link for administrator view
View function for adding operations control to view
View function for text preview
News list for administration
Returns formated contain of New, but as View function
list of News
Main menu of this module.
Action function of this module.

Functions

WNews_GetFormatingSelectOptions

function WNews_GetFormatingSelectOptions($isState)

Generates option tags for combo box widget

WNews_NewEditForm

function WNews_NewEditForm($isFormAction,  
$isText_Id =  '',
$isFind =  '1',
$isName =  '',
$isFormating =  'nl2br',
$isText =  '')

Returns edit form for News XXX: Here, we use isText_Id (simple copy from w_texts.php, so we can use the same Form Template).

WNews_NewDeleteForm

function WNews_NewDeleteForm($isNew_Id,
$isName,
$isText)

Returns form when we wont delete New

WNews_NewViewForm

function WNews_NewViewForm($isFormating,
$isText)

reformats text

WNews_NewAdd

function WNews_NewAdd()

Adds new to SQL.  Before it, check rights !

WNews_NewDelete

function WNews_NewDelete()

Delete new from SQL.  Before it, check rights !

WNews_NewGetEdit

function WNews_NewGetEdit()

Loads values for Edit Form

WNews_NewGetView

function WNews_NewGetView($isNew_Id)

Loads detail and call View Form function.

Variables

WNewsNewsLink

$WNewsNewsLink

contains link for administrator view

Functions

WNews_TextViewOperation

function WNews_TextViewOperation(&$iaRow,
$inKey)

View function for adding operations control to view

WNews_NewsViewShort

function WNews_NewsViewShort(&$iaRow,
$inKey)

View function for text preview

WNews_ANewsView

function WNews_ANewsView()

News list for administration

WNews_NewRow

function WNews_NewRow(&$iaRow,
$inKey)

WNews_NewViewRow

function WNews_NewViewRow(&$iaRow,
$inKey)

Returns formated contain of New, but as View function

WNews_NewsView

function WNews_NewsView()

list of News

WNews_Menu

function WNews_Menu()

Main menu of this module.  It Contains only edit action, and it’s adding only user is administrator

Expected module functions

Summary
Action function of this module.

Functions

WNews_Action

function WNews_Action()

Action function of this module.  See Code for details.

WNews_Init

function WNews_Init()
function WNews_GetFormatingSelectOptions($isState)
Generates option tags for combo box widget
function WNews_NewEditForm($isFormAction,  
$isText_Id =  '',
$isFind =  '1',
$isName =  '',
$isFormating =  'nl2br',
$isText =  '')
Returns edit form for News XXX: Here, we use isText_Id (simple copy from w_texts.php, so we can use the same Form Template).
Template of module working with menu and texts.
Form class can generate form with some functions like be center on page as normal window.
function WNews_NewDeleteForm($isNew_Id,
$isName,
$isText)
Returns form when we wont delete New
function WNews_NewViewForm($isFormating,
$isText)
reformats text
function WNews_NewAdd()
Adds new to SQL.
function WNews_NewDelete()
Delete new from SQL.
function WNews_NewGetEdit()
Loads values for Edit Form
function WNews_NewGetView($isNew_Id)
Loads detail and call View Form function.
$WNewsNewsLink
contains link for administrator view
function WNews_TextViewOperation(&$iaRow,
$inKey)
View function for adding operations control to view
class for work with views and tables
function WNews_NewsViewShort(&$iaRow,
$inKey)
View function for text preview
function WNews_ANewsView()
News list for administration
function WNews_NewRow(&$iaRow,
$inKey)
function WNews_NewViewRow(&$iaRow,
$inKey)
Returns formated contain of New, but as View function
function WNews_NewsView()
list of News
function WNews_Menu()
Main menu of this module.
function WNews_Action()
Action function of this module.
function WNews_Init()