Source for file ActiveRecordsSearch.class.php

Documentation is available at ActiveRecordsSearch.class.php

  1. <?php
  2.  
  3. require_once HARMONI."dataManager/search/SearchCriteria.interface.php";
  4.  
  5. /**
  6. * Limits a search to exclude all inactive {@link Record}s.
  7. *
  8. * @package harmoni.datamanager.search
  9. *
  10. * @copyright Copyright &copy; 2005, Middlebury College
  11. * @license http://www.gnu.org/copyleft/gpl.html GNU General Public License (GPL)
  12. *
  13. * @version $Id: ActiveRecordsSearch.class.php,v 1.5 2007/04/12 15:37:25 adamfranco Exp $
  14. */
  15. class ActiveRecordsSearch extends SearchCriteria {
  16. function ActiveRecordsSearch() {
  17. throwError(
  18. new Error("ActiveRecordsSearch has been deprecated as Records no longer have an active flag.", "RecordManager", true));
  19. }
  20. function returnSearchString() {
  21. return "dm_record.active=1";
  22. }
  23.  
  24. function postProcess($ids) { return $ids; }
  25. }
  26.  
  27. ?>

Documentation generated on Wed, 19 Sep 2007 10:21:19 -0400 by phpDocumentor 1.3.0RC3