Folder.class.php 877 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. <?php
  2. class Folder extends SQLiteEntity{
  3. protected $id,$name,$parent,$isopen;
  4. protected $TABLE_NAME = 'folder';
  5. protected $CLASS_NAME = 'Folder';
  6. protected $object_fields =
  7. array(
  8. 'id'=>'key',
  9. 'name'=>'string',
  10. 'parent'=>'integer',
  11. 'isopen'=>'integer'
  12. );
  13. function __construct(){
  14. parent::__construct();
  15. }
  16. function getFeeds(){
  17. $feedManager = new Feed();
  18. return $feedManager->loadAll(array('folder'=>$this->getId()));
  19. }
  20. function getId(){
  21. return $this->id;
  22. }
  23. function getName(){
  24. return $this->name;
  25. }
  26. function setName($name){
  27. $this->name = $name;
  28. }
  29. function getParent(){
  30. return $this->parent;
  31. }
  32. function setParent($parent){
  33. $this->parent = $parent;
  34. }
  35. function getIsopen(){
  36. return $this->isopen;
  37. }
  38. function setIsopen($isopen){
  39. $this->isopen = $isopen;
  40. }
  41. }
  42. ?>