X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=lib%2Fnoticelistitemadapter.php;h=a80b63088ce61488fe124afb39ffe9af55df34bc;hb=b4271a3533bdf12329f27dd75452c1ef2a6ee3d1;hp=48530a9c1a85b5def2d8a0dafab6e143be1fb2d3;hpb=e5961efc278c992be6dc057364771ff3266921d1;p=quix0rs-gnu-social.git diff --git a/lib/noticelistitemadapter.php b/lib/noticelistitemadapter.php index 48530a9c1a..a80b63088c 100644 --- a/lib/noticelistitemadapter.php +++ b/lib/noticelistitemadapter.php @@ -4,7 +4,7 @@ * Copyright (C) 2011, StatusNet, Inc. * * For use by microapps to customize notice list item output - * + * * PHP version 5 * * This program is free software: you can redistribute it and/or modify @@ -44,7 +44,6 @@ if (!defined('STATUSNET')) { * @license http://www.fsf.org/licensing/licenses/agpl-3.0.html AGPL 3.0 * @link http://status.net/ */ - class NoticeListItemAdapter { protected $nli; @@ -54,7 +53,6 @@ class NoticeListItemAdapter * * @param NoticeListItem $nli item to wrap */ - function __construct($nli) { $this->nli = $nli; @@ -72,4 +70,9 @@ class NoticeListItemAdapter { return call_user_func_array(array($this->nli, $name), $arguments); } + + function __get($name) + { + return $this->nli->$name; + } }