const OSTATUS_DEFAULT_POLL_TIMEFRAME_MENTIONS = 14400; // given in minutes
/**
- * @brief
+ * @brief Fetches author data
*
- * @param $xpath
- * @param $context
- * @param $importer
- * @param $contact
- * @param $onlyfetch
+ * @param object $xpath The xpath object
+ * @param object $context The xml context of the author detals
+ * @param array $importer user record of the importing user
+ * @param array $contact Called by reference, will contain the fetched contact
+ * @param bool $onlyfetch Only fetch the header without updating the contact entries
*
- * @return
+ * @return array Array of author related entries for the item
*/
private function fetchauthor($xpath, $context, $importer, &$contact, $onlyfetch) {
* @brief
*
* @param $xml
- * @param $importer
+ * @param array $importer user record of the importing user
*
* @return
*/
}
/**
- * @brief
+ * @brief Imports an XML string containing OStatus elements
*
- * @param $xml
- * @param $importer
+ * @param string $xml The XML
+ * @param array $importer user record of the importing user
* @param $contact
- * @param $hub
- *
- * @return
+ * @param array $hub Called by reference, returns the fetched hub data
*/
public static function import($xml,$importer,&$contact, &$hub) {
}
/**
- * @brief
+ * @brief Create an url out of an uri
*
- * @param $href
+ * @param string $href URI in the format "parameter1:parameter1:..."
*
- * @return
+ * @return string URL in the format http(s)://....
*/
public static function convert_href($href) {
$elements = explode(":",$href);
}
/**
- * @brief
+ * @brief Checks if there are entries in conversations that aren't present on our side
*
- * @param $mentions
- * @param $override
- *
- * @return
+ * @param bool $mentions Fetch conversations where we are mentioned
+ * @param bool $override Override the interval setting
*/
public static function check_conversations($mentions = false, $override = false) {
$last = get_config('system','ostatus_last_poll');
*
* @param $conversation_url
* @param $uid
- * @param $item
+ * @param array $item Data of the item that is to be posted
*
* @return
*/
}
/**
- * @brief
+ * @brief Checks if the current post is a reshare
*
- * @param $item
+ * @param array $item The item array of thw post
*
- * @return
+ * @return string The guid if the post is a reshare
*/
private function get_reshared_guid($item) {
$body = trim($item["body"]);
}
/**
- * @brief
+ * @brief Cleans the body of a post if it contains picture links
*
- * @param $body
+ * @param string $body The body
*
- * @return
+ * @return string The cleaned body
*/
private function format_picture_post($body) {
$siteinfo = get_attached_data($body);
/**
* @brief
*
- * @param $doc
- * @param $owner
+ * @param object $doc XML document
+ * @param array $owner Contact data of the poster
*
* @return
*/
/**
* @brief
*
- * @param $doc
+ * @param object $doc XML document
* @param $root
*
* @return
/**
* @brief
*
- * @param $doc
+ * @param object $doc XML document
* @param $root
- * @param $item
+ * @param array $item Data of the item that is to be posted
*
* @return
*/
/**
* @brief
*
- * @param $doc
- * @param $owner
+ * @param object $doc XML document
+ * @param array $owner Contact data of the poster
*
* @return
*/
/**
* @brief
*
- * @param $item
+ * @param array $item Data of the item that is to be posted
*
* @return
*/
/**
* @brief
*
- * @param $item
+ * @param array $item Data of the item that is to be posted
*
* @return
*/
/**
* @brief
*
- * @param $doc
- * @param $item
- * @param $owner
+ * @param object $doc XML document
+ * @param array $item Data of the item that is to be posted
+ * @param array $owner Contact data of the poster
* @param $toplevel
*
* @return
/**
* @brief
*
- * @param $doc
+ * @param object $doc XML document
* @param $contact
*
* @return
* @brief
*
* @param $url
- * @param $owner
+ * @param array $owner Contact data of the poster
*
* @return
*/
/**
* @brief
*
- * @param $doc
- * @param $item
- * @param $owner
+ * @param object $doc XML document
+ * @param array $item Data of the item that is to be posted
+ * @param array $owner Contact data of the poster
* @param $repeated_guid
* @param $toplevel
*
/**
* @brief
*
- * @param $doc
- * @param $item
- * @param $owner
+ * @param object $doc XML document
+ * @param array $item Data of the item that is to be posted
+ * @param array $owner Contact data of the poster
* @param $toplevel
*
- * @return
+ * @return object
*/
private function like_entry($doc, $item, $owner, $toplevel) {
/**
* @brief
*
- * @param $doc
- * @param $item
- * @param $owner
+ * @param object $doc XML document
+ * @param array $item Data of the item that is to be posted
+ * @param array $owner Contact data of the poster
* @param $toplevel
*
* @return
/**
* @brief
*
- * @param $doc
+ * @param object $doc XML document
* @param $entry
- * @param $owner
+ * @param array $owner Contact data of the poster
* @param $toplevel
*
* @return
/**
* @brief
*
- * @param $doc
+ * @param object $doc XML document
* @param $entry
- * @param $item
- * @param $owner
+ * @param array $item Data of the item that is to be posted
+ * @param array $owner Contact data of the poster
* @param $title
* @param $verb
* @param $complete
/**
* @brief
*
- * @param $doc
+ * @param object $doc XML document
* @param $entry
- * @param $item
- * @param $owner
+ * @param array $item Data of the item that is to be posted
+ * @param array $owner Contact data of the poster
* @param $complete
*
* @return
}
/**
- * @brief
+ * @brief Creates the XML for a salmon message
*
- * @param $item
- * @param $owner
+ * @param array $item Data of the item that is to be posted
+ * @param array $owner Contact data of the poster
*
- * @return
+ * @return string XML for the salmon
*/
public static function salmon($item,$owner) {