[UI] Fix a small typo
This commit is contained in:
parent
3b01aa31d3
commit
fbc6fe0818
@ -1,34 +1,31 @@
|
|||||||
<?php
|
<?php
|
||||||
|
// This file is part of GNU social - https://www.gnu.org/software/social
|
||||||
|
//
|
||||||
|
// GNU social 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.
|
||||||
|
//
|
||||||
|
// GNU social 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 GNU social. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* StatusNet, the distributed open-source microblogging tool
|
|
||||||
*
|
|
||||||
* Base class for UI widgets
|
* Base class for UI widgets
|
||||||
*
|
*
|
||||||
* PHP version 5
|
|
||||||
*
|
|
||||||
* LICENCE: 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/>.
|
|
||||||
*
|
|
||||||
* @category Widget
|
* @category Widget
|
||||||
* @package StatusNet
|
* @package GNUsocial
|
||||||
* @author Evan Prodromou <evan@status.net>
|
* @author Evan Prodromou <evan@status.net>
|
||||||
* @author Sarven Capadisli <csarven@status.net>
|
* @author Sarven Capadisli <csarven@status.net>
|
||||||
* @copyright 2009 StatusNet, Inc.
|
* @copyright 2009-2019 Free Software Foundation, Inc http://www.fsf.org
|
||||||
* @license http://www.fsf.org/licensing/licenses/agpl-3.0.html GNU Affero General Public License version 3.0
|
* @license https://www.gnu.org/licenses/agpl.html GNU AGPL v3 or later
|
||||||
* @link http://status.net/
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
if (!defined('GNUSOCIAL')) { exit(1); }
|
defined('GNUSOCIAL') || die();
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Base class for UI widgets
|
* Base class for UI widgets
|
||||||
@ -37,14 +34,13 @@ if (!defined('GNUSOCIAL')) { exit(1); }
|
|||||||
* that's used on different parts of the site. Examples would be profile
|
* that's used on different parts of the site. Examples would be profile
|
||||||
* lists, notice lists, navigation menus (tabsets) and common forms.
|
* lists, notice lists, navigation menus (tabsets) and common forms.
|
||||||
*
|
*
|
||||||
* @category Widget
|
* @category Widget
|
||||||
* @package StatusNet
|
* @package GNUsocial
|
||||||
* @author Evan Prodromou <evan@status.net>
|
* @author Evan Prodromou <evan@status.net>
|
||||||
* @author Sarven Capadisli <csarven@status.net>
|
* @author Sarven Capadisli <csarven@status.net>
|
||||||
* @license http://www.fsf.org/licensing/licenses/agpl-3.0.html GNU Affero General Public License version 3.0
|
* @license https://www.gnu.org/licenses/agpl.html GNU AGPL v3 or later
|
||||||
* @link http://status.net/
|
|
||||||
*
|
*
|
||||||
* @see HTMLOutputter
|
* @see HTMLOutputter
|
||||||
*/
|
*/
|
||||||
|
|
||||||
class Widget
|
class Widget
|
||||||
@ -55,7 +51,7 @@ class Widget
|
|||||||
* Action (HTMLOutputter) to use for output
|
* Action (HTMLOutputter) to use for output
|
||||||
*/
|
*/
|
||||||
|
|
||||||
var $out = null;
|
public $out = null;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Prepare the widget for use
|
* Prepare the widget for use
|
||||||
@ -63,7 +59,7 @@ class Widget
|
|||||||
* @param Action $out output helper, defaults to null
|
* @param Action $out output helper, defaults to null
|
||||||
* @param array $widgetOpts
|
* @param array $widgetOpts
|
||||||
*/
|
*/
|
||||||
function __construct(Action $out = null, array $widgetOpts = [])
|
public function __construct(?Action $out = null, array $widgetOpts = [])
|
||||||
{
|
{
|
||||||
$this->out = $out;
|
$this->out = $out;
|
||||||
if (!array_key_exists('scoped', $widgetOpts)) {
|
if (!array_key_exists('scoped', $widgetOpts)) {
|
||||||
@ -80,7 +76,7 @@ class Widget
|
|||||||
* @return void
|
* @return void
|
||||||
*/
|
*/
|
||||||
|
|
||||||
function show()
|
public function show()
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -92,7 +88,7 @@ class Widget
|
|||||||
* @return HTMLOutputter the output helper
|
* @return HTMLOutputter the output helper
|
||||||
*/
|
*/
|
||||||
|
|
||||||
function getOut()
|
public function getOut()
|
||||||
{
|
{
|
||||||
return $this->out;
|
return $this->out;
|
||||||
}
|
}
|
||||||
@ -105,7 +101,7 @@ class Widget
|
|||||||
*
|
*
|
||||||
* @return mixed Return value of the method.
|
* @return mixed Return value of the method.
|
||||||
*/
|
*/
|
||||||
function __call($name, $arguments)
|
public function __call($name, $arguments)
|
||||||
{
|
{
|
||||||
return call_user_func_array(array($this->out, $name), $arguments);
|
return call_user_func_array(array($this->out, $name), $arguments);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user