MenuItem.class.php 622 B

1234567891011121314151617181920212223242526272829303132
  1. <?php
  2. /**
  3. * Define a menuitem.
  4. * @author Valentin CARRUESCO
  5. * @category Plugin
  6. * @license copyright
  7. */
  8. class MenuItem extends Entity{
  9. public $id,$icon,$label,$url,$classes,$sort,$parent,$user,$target,$editable,$slug,$childs;
  10. public $TABLE_NAME = 'menuitem';
  11. public $fields =
  12. array(
  13. 'id' => 'key',
  14. 'icon' => 'string',
  15. 'label' => 'string',
  16. 'slug' => 'string',
  17. 'url' => 'longstring',
  18. 'classes' => 'string',
  19. 'sort' => 'int',
  20. 'user' => 'string',
  21. 'target' => 'string',
  22. 'editable' => 'int',
  23. 'parent' => 'int'
  24. );
  25. function __construct(){
  26. parent::__construct();
  27. $this->editable = true;
  28. }
  29. }
  30. ?>