added some useful models and controllers

This commit is contained in:
Logsol 2013-07-08 21:02:22 +02:00
parent 9bb724147e
commit 1d4b2a3314
44 changed files with 6424 additions and 0 deletions

View file

@ -0,0 +1,23 @@
<?php
class DidgeridooArtwork_Notice
{
public static function add($notice)
{
if(!is_array($_SESSION['notices']))
{
$_SESSION['notices'] = array();
}
$_SESSION['notices'][] = $notice;
}
public static function get()
{
$notices = array();
if(array_key_exists('notices', $_SESSION))
{
$notices = $_SESSION['notices'];
}
$_SESSION['notices'] = array();
return $notices;
}
}