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

Public Member Functions

 AdminBlogArticlesView ($blog)
 
 buildTable ($articles)
 
 formatTitle ($item)
 
 drawAddButton ()
 
- Public Member Functions inherited from BlogArticlesView
 BlogArticlesView ($blog)
 
 writeScript ()
 
 drawView ()
 
 showPublished ($article)
 

Additional Inherited Members

- Public Attributes inherited from BlogArticlesView
 $blog
 
 $table
 

Detailed Description

Definition at line 579 of file blog_view.inc.

Member Function Documentation

◆ AdminBlogArticlesView()

AdminBlogArticlesView::AdminBlogArticlesView (   $blog)

Definition at line 581 of file blog_view.inc.

582  {
583  parent::BlogArticlesView($blog);
584  }

◆ buildTable()

AdminBlogArticlesView::buildTable (   $articles)

Reimplemented from BlogArticlesView.

Definition at line 586 of file blog_view.inc.

587  {
588  $table = parent::buildTable($articles);
589  if ($this->blog->default_article_order == "SORT")
590  {
591  $table->enableDragReorder("/action/blog/reorder_articles?blog_id={$this->blog->blog_id}");
592  $table->dragText = "<span style='font-size: 10px'>Click and drag to change the order of the articles</span>";
593  }
594 
595  return $table;
596  }
$articles
Definition: rss.inc:62

◆ drawAddButton()

AdminBlogArticlesView::drawAddButton ( )

Reimplemented from BlogArticlesView.

Definition at line 604 of file blog_view.inc.

605  {
606  echo "<p>\n<a class='button' href=\"/admin/blog_article_form?blog_id={$this->blog->blog_id}\">Add an Article</a>\n</p>\n";
607  }

◆ formatTitle()

AdminBlogArticlesView::formatTitle (   $item)

Reimplemented from BlogArticlesView.

Definition at line 598 of file blog_view.inc.

599  {
600  global $blog;
601  return "<a title=\"{$item->title}\" href=\"/admin/blog_article_form?blog_id={$blog->blog_id}&article_id={$item->article_id}\">". ellipsis($item->title, 80) ."</a>";
602  }

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