Definition at line 370 of file blog_view.inc.
◆ BlogView()
BlogView::BlogView |
( |
|
$blog | ) |
|
Definition at line 375 of file blog_view.inc.
static fireEvent($event, $parameter=null, $mustBeConsumed=false)
Fire an event to all subscribers as detailed in their manifests.
◆ drawArticle()
BlogView::drawArticle |
( |
|
$article_id | ) |
|
Definition at line 410 of file blog_view.inc.
416 $type = $this->blog->blog_type;
417 if (!array_key_exists(
$type, $this->handlers))
$type =
"Standard";
419 trace(
"** Rendering article for blog '{$this->blog->identifier}' with blog view handler '{$type}'", 3);
430 echo
"<p id='inline_editing' class='inline_editor_toolbar'><a href='#' class='edit' onclick='new ArticleManager().editArticle({$article_id}, {$this->blog->blog_id}); return false;'>Edit</a>$versioningControls</p>";
Defines the Article class.
static getValue($component, $name)
Retrieve the value of the specified Setting.
static checkPermission($component, $name, $account=null)
Check whether a user has a specific permission.
static selectDisplayVersion($target, $param="version")
$method
Pull out a simple reference to the request method.
◆ drawArticleList()
BlogView::drawArticleList |
( |
|
$year = false , |
|
|
|
$month = false , |
|
|
|
$term_id = null |
|
) |
| |
Definition at line 398 of file blog_view.inc.
400 $type = $this->blog->blog_type;
401 if (!array_key_exists(
$type, $this->handlers))
$type =
"Standard";
403 trace (
"Month is " .
$month, 3);
◆ drawSubscribeButton()
BlogView::drawSubscribeButton |
( |
| ) |
|
Definition at line 386 of file blog_view.inc.
390 if ($this->blog->allow_subscriptions)
394 echo $this->blog->format(
"<a id='blog_subscription_button' class='button' href='#' onclick='new BlogManager().showSubscriptionDialog({blog_id},\"{title:jsSafe}\"); return false;'>$buttonFormat</a>");
◆ registerHandler()
BlogView::registerHandler |
( |
|
$type, |
|
|
|
$handler |
|
) |
| |
◆ registerStandardHandlers()
static BlogView::registerStandardHandlers |
( |
|
$view | ) |
|
|
static |
Definition at line 441 of file blog_view.inc.
DefaultBlogViewHandler provides a standard, no-frills display for blog entries.
NewsBlogViewHandler provides a simple blog view tailored displaying news articles.
◆ $blog
◆ $handlers
The documentation for this class was generated from the following file: