Gentics Portal.Node PHP API
 All Classes Namespaces Functions Variables Pages
LastVisitedPages.php
1 <?php
2 
3 /**
4  * Gentics Portal.Node PHP
5  * Author & Copyright (c) by Gentics Software GmbH
6  * sales@gentics.com
7  * http://www.gentics.com
8  * Licenses can be found in the LICENSE.txt file in the root-folder of this installation
9  * You must not use this software without a valid license agreement.
10  *
11  * Last visited pages
12  *
13  **/
15 {
16 
17  /**
18  * Collection id for filtering pages
19  *
20  * @var string
21  **/
22  public $collection_id;
23 
24  /**
25  * Amount of displaying items
26  *
27  * @var string
28  **/
29  public $count = 4;
30 
31  /**
32  * Find pages, display
33  *
34  **/
35  public function run()
36  {
37  $history = VisitedHistory::getItems($this->collection_id, $this->count);
38  $this->render('LastVisitedPages', array('history'=>$history));
39  }
40 }