/** * Set up static members */ private function assert() { $mode = isset($_GET['mode']) && strtolower($_GET['mode']) == 'administration' ? 'administration' : 'frontend'; self::$_context = $mode == 'administration' ? Administration::instance() : Frontend::instance(); if (self::$_entry_manager == NULL) { self::$_entry_manager = new EntryManager(self::$_context); } if (self::$_entry_xml_datasource == NULL) { self::$_entry_xml_datasource = new EntryXMLDataSource(self::$_context, NULL, FALSE); } }
/** * Set up static members */ private function assert() { if (self::$_entry_xml_datasource == NULL) { self::$_entry_xml_datasource = new EntryXMLDataSource(NULL, FALSE); } }