version.php

Summary
version.php
VersionShow version information for this software and plugins
VersionActionVersion info page
isReadOnlyReturn true since we’re read-only.
titleReturns the page title
preparePrepare to run
handleShows a page with the version information in the content area.
showContentBlockOverride to add h-entry, and content-inner classes
showContentShow version information

Version

Show version information for this software and plugins

postActiv

the micro-blogging software

Copyright

Copyright © 2016-2017, Maiyannah Bishop

Derived from code copyright various sources

  • GNU Social © 2013-2016, Free Software Foundation, Inc
  • StatusNet © 2008-2012, StatusNet, Inc

License

This program is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU Affero General Public License for more details.

You should have received a copy of the GNU Affero General Public License along with this program.  If not, see http://www.gnu.org/licenses/.

https://www.gnu.org/licenses/agpl.html

About

Show version information for this software and plugins

A page that shows version information for this site.  Helpful for debugging, for giving credit to authors, and for linking to more complete documentation for admins.

PHP version

Tested with PHP 7.0

File Authors

Web

VersionAction

Version info page

Variables

  • pluginVersions - array to hold plugin information
  • contributors - HARDCODED array of contributors
Summary
isReadOnlyReturn true since we’re read-only.
titleReturns the page title
preparePrepare to run
handleShows a page with the version information in the content area.
showContentBlockOverride to add h-entry, and content-inner classes
showContentShow version information

isReadOnly

function isReadOnly($args)

Return true since we’re read-only.

Param

  • array $args - other arguments

Returns

  • boolean is read only action?

title

function title()

Returns the page title

@return string page title

prepare

protected function prepare(array $args = array())

Prepare to run

Fire off an event to let plugins report their versions.

Parameters

  • array $args - array misc. arguments

Returns

  • boolean success

handle

protected function handle()

Shows a page with the version information in the content area.

Parameters

  • array $args - ignored.

Returns

  • void

showContentBlock

function showContentBlock()

Override to add h-entry, and content-inner classes

Returns

  • void

showContent

function showContent()

Show version information

TODO: This will need templated, when Smarty is implemented

@return void

function isReadOnly($args)
Return true since we’re read-only.
function title()
Returns the page title
protected function prepare(array $args = array())
Prepare to run
protected function handle()
Shows a page with the version information in the content area.
function showContentBlock()
Override to add h-entry, and content-inner classes
function showContent()
Show version information