| 1 | <?php  | 
            ||
| 10 | class DynamicPageView extends PageView  | 
            ||
| 11 | { | 
            ||
| 12 | /**  | 
            ||
| 13 | * The Content Items that belong to this Page View. This array will only have elements if it is a dynamic Page View.  | 
            ||
| 14 | *  | 
            ||
| 15 | * @var ContentItem[]  | 
            ||
| 16 | */  | 
            ||
| 17 | private $contentItems;  | 
            ||
| 18 | |||
| 19 | /**  | 
            ||
| 20 |      * {@inheritdoc} | 
            ||
| 21 | */  | 
            ||
| 22 | 4 | public function __construct($filePath)  | 
            |
| 29 | |||
| 30 | /**  | 
            ||
| 31 | * Add a ContentItem to this Dynamic PageView  | 
            ||
| 32 | *  | 
            ||
| 33 | * @param ContentItem $contentItem  | 
            ||
| 34 | */  | 
            ||
| 35 | 3 | public function addContentItem (&$contentItem)  | 
            |
| 42 | |||
| 43 | /**  | 
            ||
| 44 | * Get all of the ContentItems that belong to this Dynamic PageView  | 
            ||
| 45 | *  | 
            ||
| 46 | * @return ContentItem[]  | 
            ||
| 47 | */  | 
            ||
| 48 | 2 | public function getContentItems ()  | 
            |
| 52 | |||
| 53 | /**  | 
            ||
| 54 | * Get the collection name this dynamic PageView is charged with  | 
            ||
| 55 | *  | 
            ||
| 56 | * @return string  | 
            ||
| 57 | */  | 
            ||
| 58 | 3 | public function getCollection ()  | 
            |
| 62 | }  |