From: <lph...@us...> - 2012-12-31 15:20:34
|
Revision: 44408 http://sourceforge.net/p/tikiwiki/code/44408 Author: lphuberdeau Date: 2012-12-31 15:20:31 +0000 (Mon, 31 Dec 2012) Log Message: ----------- [FIX] Missing file (related to listexecute) Added Paths: ----------- trunk/lib/core/Search/GlobalSource/Reporting.php Added: trunk/lib/core/Search/GlobalSource/Reporting.php =================================================================== --- trunk/lib/core/Search/GlobalSource/Reporting.php (rev 0) +++ trunk/lib/core/Search/GlobalSource/Reporting.php 2012-12-31 15:20:31 UTC (rev 44408) @@ -0,0 +1,35 @@ +<?php +// (c) Copyright 2002-2012 by authors of the Tiki Wiki CMS Groupware Project +// +// All Rights Reserved. See copyright.txt for details and a complete list of authors. +// Licensed under the GNU LESSER GENERAL PUBLIC LICENSE. See license.txt for details. +// $Id$ + +class Search_GlobalSource_Reporting implements Search_GlobalSource_Interface +{ + private $data = array(); + + function getProvidedFields() + { + return array('report_status'); + } + + function getGlobalFields() + { + return array(); + } + + function setStatus($objectType, $objectId, $success) + { + $this->data["$objectType:$objectId"] = $success ? 'success' : 'error'; + } + + function getData($objectType, $objectId, Search_Type_Factory_Interface $typeFactory, array $data = array()) + { + $identifier = "$objectType:$objectId"; + return array( + 'report_status' => $typeFactory->identifier(isset($this->data[$identifier]) ? $this->data[$identifier] : 'none'), + ); + } +} + Property changes on: trunk/lib/core/Search/GlobalSource/Reporting.php ___________________________________________________________________ Added: svn:keywords ## -0,0 +1 ## +Id \ No newline at end of property This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |