$this->group = $group;
}
- function newListItem($profile)
+ function newListItem(Profile $profile)
{
return new GroupBlockListItem($profile, $this->group, $this->action);
}
// @todo FIXME: documentation missing.
class GroupQueueList extends GroupMemberList
{
- function newListItem($profile)
+ function newListItem(Profile $profile)
{
return new GroupQueueListItem($profile, $this->group, $this->action);
}
$this->terms = $terms;
}
- function newListItem($notice)
+ function newListItem(Notice $notice)
{
return new SearchNoticeListItem($notice, $this->out, $this->terms);
}
$this->peopletag = $peopletag;
}
- function newListItem($profile)
+ function newListItem(Profile $profile)
{
return new PeopletagMemberListItem($profile, $this->peopletag, $this->action);
}
$this->peopletag = $peopletag;
}
- function newListItem($profile)
+ function newListItem(Profile $profile)
{
return new PeopletagSubscriberListItem($profile, $this->peopletag, $this->action);
}
class SelfTagProfileList extends ProfileList
{
- function newListItem($profile)
+ function newListItem(Profile $profile)
{
return new SelfTagProfileListItem($profile, $this->action);
}
*/
class ProfileNoticeList extends NoticeList
{
- function newListItem($notice)
+ function newListItem(Notice $notice)
{
return new ProfileNoticeListItem($notice, $this->out);
}
class SubQueueList extends ProfileList
{
- function newListItem($profile)
+ function newListItem(Profile $profile)
{
return new SubQueueListItem($profile, $this->action);
}
class SubscribersList extends SubscriptionList
{
- function newListItem($profile)
+ function newListItem(Profile $profile)
{
return new SubscribersListItem($profile, $this->owner, $this->action);
}
class SubscriptionsList extends SubscriptionList
{
- function newListItem($profile)
+ function newListItem(Profile $profile)
{
return new SubscriptionsListItem($profile, $this->owner, $this->action);
}
class FullThreadedNoticeList extends ThreadedNoticeList
{
- function newListItem($notice)
+ function newListItem(Notice $notice)
{
return new FullThreadedNoticeListItem($notice, $this->out, $this->userProfile);
}
class GroupMembersMiniList extends ProfileMiniList
{
- function newListItem($profile)
+ function newListItem(Profile $profile)
{
return new GroupMembersMiniListItem($profile, $this->action);
}
class GroupBlockedMiniList extends ProfileMiniList
{
- function newListItem($profile)
+ function newListItem(Profile $profile)
{
return new GroupBlockedMiniListItem($profile, $this->action);
}
$this->group = $group;
}
- function newListItem($profile)
+ function newListItem(Profile $profile)
{
return new GroupMemberListItem($profile, $this->group, $this->action);
}
}
}
- function newListItem($plugin)
+ function newListItem(Plugin $plugin)
{
return new PluginListItem($plugin, $this->out);
}
class SubscribersMiniList extends ProfileMiniList
{
- function newListItem($profile)
+ function newListItem(Profile $profile)
{
return new SubscribersMiniListItem($profile, $this->action);
}
return $cnt;
}
- function newListItem($profile)
+ function newListItem(Profile $profile)
{
return new ProfileListItem($profile, $this->action);
}
$this->out->elementStart('ul', 'entities users xoxo');
}
- function newListItem($profile)
+ function newListItem(Profile $profile)
{
return new ProfileMiniListItem($profile, $this->action);
}
$this->owner = $owner;
}
- function newListItem($profile)
+ function newListItem(Profile $profile)
{
return new SubscriptionListItem($profile, $this->owner, $this->action);
}
return true;
}
- function onEndAdminPanelNav($menu) {
+ function onEndAdminPanelNav(Menu $menu) {
if (AdminPanelAction::canAdmin('adsense')) {
// TRANS: Menu item title/tooltip
$menu_title = _m('AdSense configuration');
/**
* Add the bit.ly admin panel to the list...
*/
- function onEndAdminPanelNav($nav)
+ function onEndAdminPanelNav(Menu $nav)
{
if (AdminPanelAction::canAdmin('bitly')) {
$action_name = $nav->action->trimmed('action');
*
* @return boolean hook value
*/
- function onEndAdminPanelNav($nav)
+ function onEndAdminPanelNav(Menu $nav)
{
if (AdminPanelAction::canAdmin('blacklist')) {
return true;
}
- function onEndDeleteUserForm($action, $user)
+ function onEndDeleteUserForm(Action $action, User $user)
{
$cur = common_current_user();
$action->elementEnd('ul');
}
- function onEndDeleteUser($action, $user)
+ function onEndDeleteUser(Action $action, User $user)
{
if ($action->boolean('blacklisthomepage')) {
$pattern = $action->trimmed('blacklisthomepagepattern');
return true;
}
- function checkboxAndText($action, $checkID, $label, $textID, $value)
+ private function checkboxAndText(Action $action, $checkID, $label, $textID, $value)
{
$action->element('input', array('name' => $checkID,
'type' => 'checkbox',
*
* @return NoticeListItem a list item to show
*/
- function newListItem($notice)
+ function newListItem(Notice $notice)
{
return new ConversationTreeItem($notice, $this->out);
}
$this->out->elementStart('tbody');
}
- function newListItem($profile, $odd)
+ function newListItem(Profile $profile, $odd)
{
return new SortableGroupListItem($profile, $this->owner, $this->action, $odd);
}
return $cnt;
}
- function newListItem($profile, $odd)
+ function newListItem(Profile $profile, $odd)
{
return new SortableSubscriptionListItem($profile, $this->owner, $this->action, $odd);
}
*
* @return boolean hook value
*/
- function onEndAdminPanelNav($nav)
+ function onEndAdminPanelNav(Menu $nav)
{
if (AdminPanelAction::canAdmin('facebook')) {
class FavoritesNoticeList extends NoticeList
{
- function newListItem($notice)
+ function newListItem(Notice $notice)
{
return new FavoritesNoticeListItem($notice, $this->out);
}
$action->script('plugins/GNUsocialProfileExtensions/js/profile.js');
}
- function onEndAdminPanelNav($nav)
+ function onEndAdminPanelNav(Menu $nav)
{
if (AdminPanelAction::canAdmin('profilefields')) {
$this->out->elementEnd('li');
}
- function newListItem($notice)
+ function newListItem(Notice $notice)
{
return new NoticeTreeItem($notice, $this->out);
}
*
* @return boolean hook value
*/
- function onEndAdminPanelNav($nav)
+ function onEndAdminPanelNav(Menu $nav)
{
if (AdminPanelAction::canAdmin('openid')) {
return true;
}
- function onEndAdminPanelNav($menu) {
+ function onEndAdminPanelNav(Menu $menu) {
if (AdminPanelAction::canAdmin('openx')) {
// TRANS: Menu item title.
$menu_title = _m('OpenX configuration.');
class SearchSubscriptionsList extends SubscriptionList
{
- function newListItem($searchsub)
+ function newListItem(SearchSub $searchsub)
{
return new SearchSubscriptionsListItem($searchsub, $this->owner, $this->action);
}
return true;
}
- function onEndAdminPanelNav($menu) {
+ function onEndAdminPanelNav(Menu $menu) {
if (AdminPanelAction::canAdmin('sitemap')) {
// TRANS: Menu item title/tooltip
$menu_title = _m('Sitemap configuration');
class TagSubscriptionsList extends SubscriptionList
{
- function newListItem($tagsub)
+ function newListItem(TagSub $tagsub)
{
return new TagSubscriptionsListItem($tagsub, $this->owner, $this->action);
}
* @return boolean hook value
*/
- function onEndAdminPanelNav($nav)
+ function onEndAdminPanelNav(Menu $nav)
{
if (AdminPanelAction::canAdmin('twitter')) {
*
* @return ProfileListItem newly-created item
*/
- function newListItem($profile)
+ function newListItem(Profile $profile)
{
return new FlaggedProfileListItem($this->profile, $this->action);
}