Example #1
0
 /**
  * @param PANEL_MANAGER $manager Owner of this panel.
  * @param QUERY $query Show objects from this query.
  * @param TYPE_INFO $type_info
  */
 public function __construct($manager, $query, $type_info = null)
 {
     parent::__construct($manager, $query);
     if (!isset($type_info)) {
         $type_info = $this->app->type_info_for('ENTRY', 'webcore/obj/entry.php');
     }
     $this->_type_info = $type_info;
     $this->id = $type_info->id;
     $this->title = $type_info->plural_title;
 }
 /**
  * @param PANEL_MANAGER $manager Owner of this panel.
  * @param QUERY $query Show objects from this query.
  */
 public function __construct($manager, $query)
 {
     parent::__construct($manager, $query);
     $this->uses_time_selector = false;
     $this->id = 'component';
     $this->title = 'Components';
 }