/php/component/photobucket_external_repository_table/photobucket_external_repository_table_column_model.class.php

https://bitbucket.org/chamilo/chamilo-ext-repo-photobucket-dev/ · PHP · 44 lines · 23 code · 4 blank · 17 comment · 1 complexity · 8d17f1556c172a2f2e9a29de0b45ae34 MD5 · raw file

  1. <?php
  2. namespace common\extensions\external_repository_manager\implementation\photobucket;
  3. use common\extensions\external_repository_manager\DefaultExternalRepositoryObjectTableColumnModel;
  4. use common\libraries\StaticTableColumn;
  5. /**
  6. * $Id: repository_browser_table_column_model.class.php 204 2009-11-13 12:51:30Z kariboe $
  7. * @package repository.lib.repository_manager.component.browser
  8. */
  9. /**
  10. * Table column model for the repository browser table
  11. */
  12. class PhotobucketExternalRepositoryTableColumnModel extends DefaultExternalRepositoryObjectTableColumnModel
  13. {
  14. /**
  15. * The tables modification column
  16. */
  17. private static $modification_column;
  18. /**
  19. * Constructor
  20. */
  21. function __construct()
  22. {
  23. parent :: __construct();
  24. $this->set_default_order_column(1);
  25. $this->add_column(self :: get_modification_column());
  26. }
  27. /**
  28. * Gets the modification column
  29. * @return ContentObjectTableColumn
  30. */
  31. static function get_modification_column()
  32. {
  33. if (! isset(self :: $modification_column))
  34. {
  35. self :: $modification_column = new StaticTableColumn('');
  36. }
  37. return self :: $modification_column;
  38. }
  39. }
  40. ?>