Class ModuleAnnouncements
- Modules
- ModuleAnnouncements
License: GNU General Public License v2.0 only **********************************************************************************************
Brief:
This class reads announcement recordsets from database
This class reads all available recordsets from table announcements and returns an Array with results, recordsets and validated parameters from $_GET Array.
Class: ModuleAnnouncements
Code:
Array ( [numResults] => 3 [limit] => 10 [totalCount] => 3 [recordset] => Array ( [0] => Array ( [0] => 3 [ann_id] => 3 [1] => DEMO [ann_org_id] => 1 [2] => 1 [ann_global] => 1 [3] => Willkommen im Demobereich [ann_headline] => Willkommen im Demobereich [4] =>
In diesem Bereich kannst du mit Admidio herumspielen und schauen, ....
[ann_description] => <p>In diesem Bereich kannst du mit Admidio herumspielen und schauen, ....</p>
[5] => 1
[ann_usr_id_create] => 1
[6] => 2013-07-18 00:00:00
[ann_timestamp_create] => 2013-07-18 00:00:00
[7] =>
[ann_usr_id_change] =>
[8] =>
[ann_timestamp_change] =>
[9] => Paul Webmaster
[create_name] => Paul Webmaster
[10] =>
[change_name] =>
)
)
[parameter] => Array
(
[active_role] => 1
[calendar-selection] => 1
[cat_id] => 0
[category-selection] => 0,
[date] => ''
[daterange] => Array
(
[english] => Array
(
[start_date] => 2013-09-16 // current date
[end_date] => 9999-12-31
)
[system] => Array
(
[start_date] => 16.09.2013 // current date
[end_date] => 31.12.9999
)
)
[headline] => Ankündigungen
[id] => 0
[mode] => Default
[order] => 'ASC'
[startelement] => 0
[view_mode] => Default
)
)
Endcode
Par: Returned Array
Located at moduleannouncements.php
Methods summary
public
mixed
|
|
public
array
|
#
getDataSet( integer $startElement = 0, integer $limit = null )
Get all records and push it to the array |
public
boolean
|
#
setDateRange( string $dateRangeStart = '1970-01-01', string $dateRangeEnd = DATE_NOW )
Set a date range in which the dates should be searched. The method will fill 4 parameters @b dateStartFormatEnglish, @b dateStartFormatEnglish, |
private
boolean
|
Methods inherited from Modules
__construct()
,
getDaterange()
,
getId()
,
getMode()
,
getOrder()
,
getParameter()
,
getParameters()
,
getStartElement()
,
setId()
,
setMode()
,
setOrder()
,
setParameter()
,
setStartElement()
Constants summary
Properties summary
protected
|
$getConditions
|
Properties inherited from Modules
$activeRole
,
$arrParameter
,
$catId
,
$daterange
,
$headline
,
$id
,
$mode
,
$order
,
$parameters
,
$properties
,
$start
,
$validModes