Unavailable_status_network.php 2.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. <?php
  2. // This file is part of GNU social - https://www.gnu.org/software/social
  3. //
  4. // GNU social is free software: you can redistribute it and/or modify
  5. // it under the terms of the GNU Affero General Public License as published by
  6. // the Free Software Foundation, either version 3 of the License, or
  7. // (at your option) any later version.
  8. //
  9. // GNU social is distributed in the hope that it will be useful,
  10. // but WITHOUT ANY WARRANTY; without even the implied warranty of
  11. // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  12. // GNU Affero General Public License for more details.
  13. //
  14. // You should have received a copy of the GNU Affero General Public License
  15. // along with GNU social. If not, see <http://www.gnu.org/licenses/>.
  16. /**
  17. * Data class for unavailable status networks
  18. *
  19. * @category Data
  20. * @package GNUsocial
  21. * @author Evan Prodromou <evan@status.net>
  22. * @copyright 2011 StatusNet, Inc.
  23. * @license https://www.gnu.org/licenses/agpl.html GNU AGPL v3 or later
  24. */
  25. defined('GNUSOCIAL') || die();
  26. /**
  27. * Keeps a list of unavailable status network names
  28. *
  29. * @category Data
  30. * @package GNUsocial
  31. * @author Evan Prodromou <evan@status.net>
  32. * @copyright 2011 StatusNet, Inc.
  33. * @license https://www.gnu.org/licenses/agpl.html GNU AGPL v3 or later
  34. *
  35. * @see Managed_DataObject
  36. */
  37. class Unavailable_status_network extends Managed_DataObject
  38. {
  39. public $__table = 'unavailable_status_network'; // table name
  40. public $nickname; // varchar(64) UUID
  41. public $created; // datetime()
  42. /**
  43. * The One True Thingy that must be defined and declared.
  44. */
  45. public static function schemaDef()
  46. {
  47. return array(
  48. 'description' => 'An unavailable status network nickname',
  49. 'fields' => array(
  50. 'nickname' => array('type' => 'varchar',
  51. 'length' => 64,
  52. 'not null' => true, 'description' => 'nickname not to use'),
  53. 'created' => array('type' => 'datetime'),
  54. ),
  55. 'primary key' => array('nickname'),
  56. );
  57. }
  58. }