Definition at line 451 of file blog_view.inc.
◆ BlogListView()
BlogListView::BlogListView |
( |
| ) |
|
◆ buildTable()
BlogListView::buildTable |
( |
|
$blogs | ) |
|
Definition at line 462 of file blog_view.inc.
466 ->column(
"Identifier",
"{identifier}",
true,
"width: 30%")
467 ->column(
"Owner",
"{getOwnerName()}",
true,
"width: 20%")
468 ->column(
"# Articles",
"{countArticles()}",
true,
"width: 10%; text-align: center")
469 ->column(
"Published", array($this,
showPublished),
true,
"width: 10%; text-align: center");
474 $table->emptyMessage =
"No blogs have been created yet.";
◆ drawView()
BlogListView::drawView |
( |
| ) |
|
◆ formatTitleLink()
BlogListView::formatTitleLink |
( |
|
$blog | ) |
|
◆ showPublished()
BlogListView::showPublished |
( |
|
$blog | ) |
|
Definition at line 494 of file blog_view.inc.
496 $img =
$blog->published ?
"on.png" :
"off.png";
497 $alt =
$blog->published ?
"Published" :
"Unpublished";
500 return "<img src='/fakoli/images/$img' alt='$alt' onclick='toggleBlogPublished(this, {$blog->blog_id})' style='display: inline-block; vertical-align: middle; border: none; cursor: pointer'/>";
◆ writeScript()
BlogListView::writeScript |
( |
| ) |
|
Definition at line 479 of file blog_view.inc.
481 return $this->table->writeScript();
◆ $table
The documentation for this class was generated from the following file: