CMS  Version 3.9
SharingContentAdminView Class Reference
+ Inheritance diagram for SharingContentAdminView:
+ Collaboration diagram for SharingContentAdminView:

Public Member Functions

 __construct ($section)
 
 handlePOST ()
 
 drawView ()
 

Additional Inherited Members

- Protected Attributes inherited from AbstractSectionContentAdminView
 $section
 

Detailed Description

Definition at line 40 of file sharing_content_manager.inc.

Constructor & Destructor Documentation

◆ __construct()

SharingContentAdminView::__construct (   $section)

Reimplemented from AbstractSectionContentAdminView.

Definition at line 42 of file sharing_content_manager.inc.

43  {
44  parent::__construct($section);
45  }

Member Function Documentation

◆ drawView()

SharingContentAdminView::drawView ( )

Reimplemented from AbstractSectionContentAdminView.

Definition at line 51 of file sharing_content_manager.inc.

52  {
53  global $script;
54 
55  $tokens = Query::create(ShareToken, "ORDER BY created_date")->execute();
56  $table = new DataListView($tokens, "share_tokens");
57  $table->column("Token", "<a href=''>{token}</a>", true)
58  ->column("Type", "{item_type}", true)
59  ->column("Shared By", "{User.getFullName()}", true)
60  ->column("Active", "<i class='fa-fw fas fa-{active:check/times}'></i>", true, "text-align: center")
61  ->column("# Accesses", "{countAccesses()}", true, "text-align: right");
62 
63  $table->pageSize = 20;
64  $table->filter = true;
65  $table->sortable = true;
66  $table->emptyMessage = "No items have been shared";
67  $table->excelFile = "share_tokens.xls";
68 
69  $script .= $table->writeScript();
70 
71  echo "<h3>Share Tokens</h3>";
72  $table->drawView();
73  }

◆ handlePOST()

SharingContentAdminView::handlePOST ( )

Reimplemented from AbstractSectionContentAdminView.

Definition at line 47 of file sharing_content_manager.inc.

48  {
49  }

The documentation for this class was generated from the following file: