ElggAssembly.php 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. <?php
  2. /**
  3. * Assemblies -- ElggAssembly CRUD object
  4. *
  5. * @package Lorea
  6. * @subpackage Assemblies
  7. *
  8. * Copyright 2012-2013 Lorea Faeries <federation@lorea.org>
  9. *
  10. * This file is part of the Assemblies plugin for Elgg.
  11. *
  12. * Assemblies is free software: you can redistribute it and/or modify
  13. * it under the terms of the GNU Affero General Public License as
  14. * published by the Free Software Foundation, either version 3 of the
  15. * License, or (at your option) any later version.
  16. *
  17. * Assemblies is distributed in the hope that it will be useful, but
  18. * WITHOUT ANY WARRANTY; without even the implied warranty of
  19. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  20. * Affero General Public License for more details.
  21. *
  22. * You should have received a copy of the GNU Affero General Public
  23. * License along with this program. If not, see
  24. * <http://www.gnu.org/licenses/>.
  25. */
  26. class ElggAssembly extends CrudObject {
  27. /**
  28. * Set subtype to assembly.
  29. */
  30. protected function initializeAttributes() {
  31. parent::initializeAttributes();
  32. $this->attributes['subtype'] = "assembly";
  33. }
  34. }