Friendica Communications Platform (please note that this is a clone of the repository at github, issues are handled there) https://friendi.ca
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 
Hypolite Petovan 9c6fbc6a74 Update references to the friendica/friendica stable branch 2 years ago
..
Admin Update references to the friendica/friendica stable branch 2 years ago
Api Add support for max_id parameter in new Twitter contact API endpoints 2 years ago
Contact Update log string in Module\Contact\Poke 2 years ago
Conversation New query for community page 2 years ago
Debug Add PageInfo result panels to Debug\Babel 2 years ago
Diaspora "print_r" in logging replaced / obsolete stuff removed 2 years ago
Filer Add license info at Friendica classes 2 years ago
HTTPException Add license info at Friendica classes 2 years ago
Item Remove "hidewall" check from ACL 2 years ago
Notifications Add UID as parameter for notify repository call 2 years ago
Profile File and category aren't using "term" anymore 2 years ago
Search Issue 8514: Make paging for searcg items work again 2 years ago
Security Add license info at Friendica PHP files 2 years ago
Settings Merge 2 years ago
Special Add license info at Friendica classes 2 years ago
Update Expand system.no_auto_update to community, profile statuses and contact conversations pages 2 years ago
WellKnown Add license info at Friendica classes 2 years ago
AccountManagementControlDocument.php Add license info at Friendica classes 2 years ago
Acctlink.php Ensure url property of Probe::uri result is used authoritatively 2 years ago
AllFriends.php Add L10n parameter to Pager classes 2 years ago
Apps.php Add license info at Friendica classes 2 years ago
Attach.php Add license info at Friendica PHP files 2 years ago
BaseAdmin.php Update references to the friendica/friendica stable branch 2 years ago
BaseApi.php Add license info at Friendica classes 2 years ago
BaseNotifications.php Add L10n parameter to Pager classes 2 years ago
BaseProfile.php Add license info at Friendica classes 2 years ago
BaseSearch.php Add node-wide default items per page config 2 years ago
BaseSettings.php "Delegations" is renamed to "Accounts" 2 years ago
Bookmarklet.php Add license info at Friendica classes 2 years ago
Contact.php Add expected whitespace before Widget::unavailableNetworks() output in Module\Contact 2 years ago
Credits.php Add license info at Friendica classes 2 years ago
Delegation.php Add license info at Friendica classes 2 years ago
Directory.php Fix for "Undefined index: profile_url" 2 years ago
Feed.php Add license info at Friendica classes 2 years ago
FollowConfirm.php cleanup namespace usages for L10n 2 years ago
Followers.php Combine getFollowers and getFollowing into getContacts in ActivityPub\Transmitter 2 years ago
Following.php Combine getFollowers and getFollowing into getContacts in ActivityPub\Transmitter 2 years ago
FriendSuggest.php Add license info at Friendica classes 2 years ago
Friendica.php Add license info at Friendica classes 2 years ago
Group.php Add license info at Friendica PHP files 2 years ago
Hashtag.php Usage of the new tag tables 2 years ago
Help.php Add license info at Friendica classes 2 years ago
Home.php Add license info at Friendica classes 2 years ago
HoverCard.php Clarify the effect of "net-publish" 2 years ago
Inbox.php Add license info at Friendica PHP files 2 years ago
Install.php Add license info at Friendica classes 2 years ago
Invite.php Add license info at Friendica classes 2 years ago
Like.php Improve performance of asynchronous like/update 2 years ago
Magic.php "print_r" in logging replaced / obsolete stuff removed 2 years ago
Maintenance.php Add license info at Friendica classes 2 years ago
Manifest.php Move manifest JSON from template to array 2 years ago
NoScrape.php Exit with an error if profile info isn't available in Module\NoScrape 2 years ago
NodeInfo.php Add license info at Friendica classes 2 years ago
Objects.php Issue 8700: Resolvable activities 2 years ago
Oembed.php Add license info at Friendica classes 2 years ago
OpenSearch.php Add license info at Friendica classes 2 years ago
Outbox.php Add license info at Friendica PHP files 2 years ago
Owa.php "print_r" in logging replaced / obsolete stuff removed 2 years ago
Photo.php Issue 8371: Improvements for picture permissions 2 years ago
Pinned.php Add license info at Friendica classes 2 years ago
Proxy.php Add license info at Friendica PHP files 2 years ago
PublicRSAKey.php Add license info at Friendica classes 2 years ago
README.md fixing text 3 years ago
RandomProfile.php Add license info at Friendica classes 2 years ago
ReallySimpleDiscovery.php Add license info at Friendica classes 2 years ago
Register.php Add license info at Friendica classes 2 years ago
RemoteFollow.php Issue 8675: reduce requests of foreign pages 2 years ago
RobotsTxt.php Add license info at Friendica classes 2 years ago
Smilies.php Add license info at Friendica classes 2 years ago
Starred.php Add license info at Friendica classes 2 years ago
Statistics.php Add license info at Friendica classes 2 years ago
Theme.php Add license info at Friendica classes 2 years ago
ThemeDetails.php Add license info at Friendica classes 2 years ago
ToggleMobile.php Add license info at Friendica classes 2 years ago
Tos.php Add license info at Friendica PHP files 2 years ago
Welcome.php remove default from welcome.php 2 years ago
Worker.php Add license info at Friendica classes 2 years ago
Xrd.php Add license info at Friendica classes 2 years ago

README.md

Friendica\Module

The Module namespace contains the different modules of Friendica. Each module is loaded through the App.

There are mainly two types of modules:

  • frontend modules to interact with users
  • backend modules to interact with machine requests

Frontend modules

This type of modules mainly needs a template, which are generally located at view/templates/.

A frontend module should extend the BaseModule, especially the content() method.

Backend modules

This type of modules mainly responds either with encoded XML or with JSON output. It isn't intended to respond with human readable text.

A frontend module should extend the BaseModule, especially the rawContent() method.

Routing

Every module needs to be accessed within a route. The routes are defined inside Router->collectRoutes().

Use the given routes as a pattern for further routes.

The routing library and further documentation can be found here.