~xibo-maintainers/xibo/tempel

« back to all changes in this revision

Viewing changes to lib/Entity/Playlist.php

  • Committer: Dan Garner
  • Date: 2015-08-03 13:19:52 UTC
  • mto: This revision was merged to the branch mainline in revision 447.
  • Revision ID: git-v1:51aff4ced58edafab2631842d7de83086daa6e8d
Document Models with Swagger

Show diffs side-by-side

added added

removed removed

Lines of Context:
30
30
use Xibo\Helper\Log;
31
31
use Xibo\Storage\PDOConnect;
32
32
 
 
33
/**
 
34
 * Class Playlist
 
35
 * @package Xibo\Entity
 
36
 *
 
37
 * @SWG\Definition()
 
38
 */
33
39
class Playlist implements \JsonSerializable
34
40
{
35
41
    use EntityTrait;
 
42
 
 
43
    /**
 
44
     * @SWG\Property(description="The ID of this Playlist")
 
45
     * @var int
 
46
     */
36
47
    public $playlistId;
 
48
 
 
49
    /**
 
50
     * @SWG\Property(description="The userId of the User that owns this Playlist")
 
51
     * @var int
 
52
     */
37
53
    public $ownerId;
38
54
 
 
55
    /**
 
56
     * @SWG\Property(description="The Name of the Playlist")
 
57
     * @var string
 
58
     */
39
59
    public $name;
40
60
 
 
61
    /**
 
62
     * @SWG\Property(description="An array of Tags")
 
63
     * @var Tag[]
 
64
     */
41
65
    public $tags = [];
 
66
 
 
67
    /**
 
68
     * @SWG\Property(description="An array of Regions this Playlist is assigned to")
 
69
     * @var Region[]
 
70
     */
42
71
    public $regions = [];
 
72
 
 
73
    /**
 
74
     * @SWG\Property(description="An array of Widgets assigned to this Playlist")
 
75
     * @var Widget[]
 
76
     */
43
77
    public $widgets = [];
 
78
 
 
79
    /**
 
80
     * @SWG\Property(description="An array of permissions")
 
81
     * @var Permission[]
 
82
     */
44
83
    public $permissions = [];
45
84
 
46
 
    // Display Order when assigned to a Region
 
85
    /**
 
86
     * @SWG\Property(description="The display order of the Playlist when assigned to a Region")
 
87
     * @var int
 
88
     */
47
89
    public $displayOrder;
48
90
 
49
91
    public function __construct()