contributions/page.staticpagedata/lib/helpers/staticpagedata.cls.php
Go to the documentation of this file.00001 <?php 00002 /** 00003 * Contains current page data 00004 * 00005 * @author Gerd Riesselmann 00006 * @ingroup StaticPageData 00007 */ 00008 class StaticPageData { 00009 private static $page_data = null; 00010 00011 /** 00012 * Return TRUE if data is set 00013 * @return bool 00014 */ 00015 public static function data_is_set() { 00016 return self::$page_data instanceof PageData; 00017 } 00018 00019 /** 00020 * Get page data 00021 * 00022 * @return PageData 00023 */ 00024 public static function data() { 00025 return self::$page_data; 00026 } 00027 00028 /** 00029 * Set page data 00030 */ 00031 public static function set_data(PageData $data) { 00032 self::$page_data = $data; 00033 } 00034 }