Packages:
System
System.Collections
System.Data
System.I18N
System.Util
System.Web.Services
System.Web.UI.ActiveControls
System.Web.UI.WebControls


Classes:
Response
   LTidyHttpResponseAdapter

Class LContentCore

TControl
   |
   --LContentCore

Mainly provides database access for LContent database


Method Summary
void
deleteRecordById ( integer $id)
deletes record in database
void
getConfiguration ( mixed $option)
returns brick configuration options from application.xml
LContent
queryRecords ( integer,Criteria $c)
returns records from database
void
redirects to user to admin or content
void
saveRecord ( LContent $record)
saves record in database and performs redirect

Constant Summary
int STATUS_OFF
int STATUS_PUBLISHED
int STATUS_STAGING

Method Details

deleteRecordById

public void deleteRecordById (integer $id )

deletes record in database

Input
integer$idid of the record to be deleted
Output
Exception

getConfiguration

public void getConfiguration (mixed $option )

returns brick configuration options from application.xml

Input
mixed$option
Output
Exception

queryRecords

public LContent queryRecords (integer,Criteria $c )

returns records from database

Input
integer,Criteria$c
Output
LContent object
Exception

redirectToList

public void redirectToList ()

redirects to user to admin or content

Output
Exception

saveRecord

public void saveRecord (LContent $record )

saves record in database and performs redirect

Input
LContent$record
Output
Exception


Constant Details

STATUS_OFF

Type:

int

Value:

1

STATUS_PUBLISHED

Type:

int

Value:

3

STATUS_STAGING

Type:

int

Value:

2