added some useful models and controllers
This commit is contained in:
parent
a6873ee6c8
commit
57c0436f14
45 changed files with 6456 additions and 0 deletions
23
library/DidgeridooArtwork/Notice.php
Normal file
23
library/DidgeridooArtwork/Notice.php
Normal 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;
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue