protected function __construct() { $flash_key = moojon_config::get('flash_key'); if (!($data = moojon_session::get_or_null($flash_key))) { $data = array(); } if (!is_array($data)) { $data = array($data); } moojon_session::set($flash_key, array()); $this->data = $data; }