From b69fca14e76a2f5db0cd0924fe5e7056e94771b1 Mon Sep 17 00:00:00 2001 From: friendica Date: Tue, 26 Feb 2013 15:49:37 -0800 Subject: initial doco --- doc/html/items_8php.html | 1606 ++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 1606 insertions(+) create mode 100644 doc/html/items_8php.html (limited to 'doc/html/items_8php.html') diff --git a/doc/html/items_8php.html b/doc/html/items_8php.html new file mode 100644 index 000000000..cafb0fc1c --- /dev/null +++ b/doc/html/items_8php.html @@ -0,0 +1,1606 @@ + + + + + + +The Red Project: include/items.php File Reference + + + + + + + + + + + + + +
+
+ + + + + + + +
+
The Red Project +
+
+
+ + + + + +
+
+ +
+
+
+ +
+ + + + +
+ +
+ +
+ +
+
items.php File Reference
+
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +

+Functions

 collect_recipients ($item, &$private)
 
 get_public_feed ($channel, $params)
 
 get_feed_for (&$a, $dfrn_id, $owner_nick, $last_update, $direction=0)
 
 construct_verb ($item)
 
 construct_activity_object ($item)
 
 construct_activity_target ($item)
 
if(!function_exists('limit_body_size')) title_is_body ($title, $body)
 
 get_item_elements ($x)
 
 import_author_xchan ($x)
 
 encode_item ($item)
 
 map_scope ($scope)
 
 encode_item_xchan ($xchan)
 
 encode_item_terms ($terms)
 
 termtype ($t)
 
 decode_tags ($t)
 
 activity_sanitise ($arr)
 
 array_sanitise ($arr)
 
 encode_item_flags ($item)
 
 encode_mail ($item)
 
 get_mail_elements ($x)
 
 get_profile_elements ($x)
 
 get_atom_elements ($feed, $item)
 
 encode_rel_links ($links)
 
 item_store ($arr, $force_parent=false)
 
 send_status_notifications ($post_id, $item)
 
 get_item_contact ($item, $contacts)
 
 tag_deliver ($uid, $item_id)
 
 tgroup_check ($uid, $item)
 
 mail_store ($arr)
 
 dfrn_deliver ($owner, $contact, $atom, $dissolve=false)
 
 consume_feed ($xml, $importer, &$contact, &$hub, $datedir=0, $pass=0)
 
 local_delivery ($importer, $data)
 
 new_follower ($importer, $contact, $datarray, $item, $sharing=false)
 
 lose_follower ($importer, $contact, $datarray, $item)
 
 lose_sharer ($importer, $contact, $datarray, $item)
 
 atom_author ($tag, $name, $uri, $h, $w, $photo)
 
 atom_entry ($item, $type, $author, $owner, $comment=false, $cid=0)
 
 fix_private_photos ($s, $uid, $item=null, $cid=0)
 
 has_permissions ($obj)
 
 compare_permissions ($obj1, $obj2)
 
 enumerate_permissions ($obj)
 
 item_getfeedtags ($item)
 
 item_getfeedattach ($item)
 
 item_expire ($uid, $days)
 
 drop_items ($items)
 
 drop_item ($id, $interactive=true)
 
 delete_item_lowlevel ($item)
 
 first_post_date ($uid, $wall=false)
 
 posted_dates ($uid, $wall)
 
 posted_date_widget ($url, $uid, $wall)
 
 fetch_post_tags ($items, $link=false)
 
 zot_feed ($uid, $observer_xchan, $mindate)
 
+

Function Documentation

+ +
+
+ + + + + + + + +
activity_sanitise ( $arr)
+
+ +

Referenced by get_item_elements(), and item_store().

+ +
+
+ +
+
+ + + + + + + + +
array_sanitise ( $arr)
+
+ +

Referenced by get_profile_elements().

+ +
+
+ +
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
atom_author ( $tag,
 $name,
 $uri,
 $h,
 $w,
 $photo 
)
+
+ +

Referenced by atom_entry().

+ +
+
+ +
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
atom_entry ( $item,
 $type,
 $author,
 $owner,
 $comment = false,
 $cid = 0 
)
+
+ +

Referenced by get_feed_for().

+ +
+
+ +
+
+ + + + + + + + + + + + + + + + + + +
collect_recipients ( $item,
$private 
)
+
+ +

Referenced by notifier_run().

+ +
+
+ +
+
+ + + + + + + + + + + + + + + + + + +
compare_permissions ( $obj1,
 $obj2 
)
+
+ +

Referenced by fix_private_photos().

+ +
+
+ +
+
+ + + + + + + + +
construct_activity_object ( $item)
+
+ +

Referenced by atom_entry().

+ +
+
+ +
+
+ + + + + + + + +
construct_activity_target ( $item)
+
+ +

Referenced by atom_entry().

+ +
+
+ +
+
+ + + + + + + + +
construct_verb ( $item)
+
+ +

Referenced by atom_entry().

+ +
+
+ +
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
consume_feed ( $xml,
 $importer,
$contact,
$hub,
 $datedir = 0,
 $pass = 0 
)
+
+

consume_feed - process atom feed and update anything/everything we might need to update

+

$xml = the (atom) feed to consume - RSS isn't as fully supported but may work for simple feeds.

+

$importer = the contact_record (joined to user_record) of the local user who owns this relationship. It is this person's stuff that is going to be updated. $contact = the person who is sending us stuff. If not set, we MAY be processing a "follow" activity from an external network and MAY create an appropriate contact record. Otherwise, we MUST have a contact record. $hub = should we find a hub declation in the feed, pass it back to our calling process, who might (or might not) try and subscribe to it. $datedir sorts in reverse order $pass - by default ($pass = 0) we cannot guarantee that a parent item has been imported prior to its children being seen in the stream unless we are certain of how the feed is arranged/ordered. With $pass = 1, we only pull parent items out of the stream. With $pass = 2, we only pull children (comments/likes).

+

So running this twice, first with pass 1 and then with pass 2 will do the right thing regardless of feed ordering. This won't be adequate in a fully-threaded model where comments can have sub-threads. That would require some massive sorting to get all the feed items into a mostly linear ordering, and might still require recursion.

+

Add new birthday event for this person

+

$bdtext is just a readable placeholder in case the event is shared with others. We will replace it during presentation to our $importer to contain a sparkle link and perhaps a photo.

+ +
+
+ +
+
+ + + + + + + + +
decode_tags ( $t)
+
+ +

Referenced by get_item_elements().

+ +
+
+ +
+
+ + + + + + + + +
delete_item_lowlevel ( $item)
+
+ +

Referenced by drop_item().

+ +
+
+ +
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
dfrn_deliver ( $owner,
 $contact,
 $atom,
 $dissolve = false 
)
+
+ +

Referenced by terminate_friendship().

+ +
+
+ +
+
+ + + + + + + + + + + + + + + + + + +
drop_item ( $id,
 $interactive = true 
)
+
+
+ +
+
+ + + + + + + + +
drop_items ( $items)
+
+ +

Referenced by item_post().

+ +
+
+ +
+
+ + + + + + + + +
encode_item ( $item)
+
+ +

Referenced by notifier_run(), and zot_feed().

+ +
+
+ +
+
+ + + + + + + + +
encode_item_flags ( $item)
+
+ +

Referenced by encode_item().

+ +
+
+ +
+
+ + + + + + + + +
encode_item_terms ( $terms)
+
+ +

Referenced by encode_item().

+ +
+
+ +
+
+ + + + + + + + +
encode_item_xchan ( $xchan)
+
+ +

Referenced by encode_item(), and encode_mail().

+ +
+
+ +
+
+ + + + + + + + +
encode_mail ( $item)
+
+ +

Referenced by notifier_run().

+ +
+
+ +
+
+ + + + + + + + +
encode_rel_links ( $links)
+
+ +

Referenced by get_atom_elements().

+ +
+
+ +
+
+ + + + + + + + +
enumerate_permissions ( $obj)
+
+ +

Referenced by compare_permissions(), and fix_private_photos().

+ +
+
+ +
+
+ + + + + + + + + + + + + + + + + + +
fetch_post_tags ( $items,
 $link = false 
)
+
+
+ +
+
+ + + + + + + + + + + + + + + + + + +
first_post_date ( $uid,
 $wall = false 
)
+
+ +

Referenced by posted_dates().

+ +
+
+ +
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
fix_private_photos ( $s,
 $uid,
 $item = null,
 $cid = 0 
)
+
+ +

Referenced by atom_entry().

+ +
+
+ +
+
+ + + + + + + + + + + + + + + + + + +
get_atom_elements ( $feed,
 $item 
)
+
+

If there's a copy of the body content which is guaranteed to have survived mangling in transit, use it.

+ +

Referenced by consume_feed(), and local_delivery().

+ +
+
+ +
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
get_feed_for ($a,
 $dfrn_id,
 $owner_nick,
 $last_update,
 $direction = 0 
)
+
+ +
+
+ +
+
+ + + + + + + + + + + + + + + + + + +
get_item_contact ( $item,
 $contacts 
)
+
+ +
+
+ +
+
+ + + + + + + + +
get_item_elements ( $x)
+
+ +

Referenced by zot_import().

+ +
+
+ +
+
+ + + + + + + + +
get_mail_elements ( $x)
+
+ +

Referenced by zot_import().

+ +
+
+ +
+
+ + + + + + + + +
get_profile_elements ( $x)
+
+ +

Referenced by zot_import().

+ +
+
+ +
+
+ + + + + + + + + + + + + + + + + + +
get_public_feed ( $channel,
 $params 
)
+
+ +

Referenced by feed_init().

+ +
+
+ +
+
+ + + + + + + + +
has_permissions ( $obj)
+
+ +

Referenced by fix_private_photos().

+ +
+
+ +
+
+ + + + + + + + +
import_author_xchan ( $x)
+
+
+ +
+
+ + + + + + + + + + + + + + + + + + +
item_expire ( $uid,
 $days 
)
+
+ +

Referenced by expire_run().

+ +
+
+ +
+
+ + + + + + + + +
item_getfeedattach ( $item)
+
+ +

Referenced by atom_entry().

+ +
+
+ +
+
+ + + + + + + + +
item_getfeedtags ( $item)
+
+ +

Referenced by atom_entry().

+ +
+
+ +
+
+ + + + + + + + + + + + + + + + + + +
item_store ( $arr,
 $force_parent = false 
)
+
+
+ +
+
+ + + + + + + + + + + + + + + + + + +
local_delivery ( $importer,
 $data 
)
+
+ +
+
+ +
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
lose_follower ( $importer,
 $contact,
 $datarray,
 $item 
)
+
+ +

Referenced by consume_feed().

+ +
+
+ +
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
lose_sharer ( $importer,
 $contact,
 $datarray,
 $item 
)
+
+ +

Referenced by consume_feed().

+ +
+
+ +
+
+ + + + + + + + +
mail_store ( $arr)
+
+ +

Referenced by process_mail_delivery().

+ +
+
+ +
+
+ + + + + + + + +
map_scope ( $scope)
+
+ +

Referenced by encode_item().

+ +
+
+ +
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
new_follower ( $importer,
 $contact,
 $datarray,
 $item,
 $sharing = false 
)
+
+ +

Referenced by consume_feed().

+ +
+
+ +
+
+ + + + + + + + + + + + + + + + + + + + + + + + +
posted_date_widget ( $url,
 $uid,
 $wall 
)
+
+ +

Referenced by channel_aside(), and network_init().

+ +
+
+ +
+
+ + + + + + + + + + + + + + + + + + +
posted_dates ( $uid,
 $wall 
)
+
+ +

Referenced by posted_date_widget().

+ +
+
+ +
+
+ + + + + + + + + + + + + + + + + + +
send_status_notifications ( $post_id,
 $item 
)
+
+ +

Referenced by item_store().

+ +
+
+ +
+
+ + + + + + + + + + + + + + + + + + +
tag_deliver ( $uid,
 $item_id 
)
+
+ +

Referenced by item_store().

+ +
+
+ +
+
+ + + + + + + + +
termtype ( $t)
+
+ +

Referenced by encode_item_terms().

+ +
+
+ +
+
+ + + + + + + + + + + + + + + + + + +
tgroup_check ( $uid,
 $item 
)
+
+ +

Referenced by consume_feed(), and local_delivery().

+ +
+
+ +
+
+ + + + + + + + + + + + + + + + + + +
if (!function_exists('limit_body_size')) title_is_body ( $title,
 $body 
)
+
+ +

Referenced by get_atom_elements().

+ +
+
+ +
+
+ + + + + + + + + + + + + + + + + + + + + + + + +
zot_feed ( $uid,
 $observer_xchan,
 $mindate 
)
+
+ +

Referenced by zotfeed_init().

+ +
+
+
+
+ + + + -- cgit v1.2.3 From 0ee1e83a3c6bb48064789a622f5eb7331733cb64 Mon Sep 17 00:00:00 2001 From: friendica Date: Tue, 26 Feb 2013 16:04:28 -0800 Subject: small doco update --- doc/html/items_8php.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'doc/html/items_8php.html') diff --git a/doc/html/items_8php.html b/doc/html/items_8php.html index cafb0fc1c..86e78fb09 100644 --- a/doc/html/items_8php.html +++ b/doc/html/items_8php.html @@ -1597,7 +1597,7 @@ Functions - - - - + -- cgit v1.2.3 From 4cfbdfa6dbed878565bab5172efaf67c8fda0886 Mon Sep 17 00:00:00 2001 From: friendica Date: Sun, 3 Mar 2013 23:38:08 -0800 Subject: cleanup affinity tool --- doc/html/items_8php.html | 36 +++++++++++++++++++++++++++++++++--- 1 file changed, 33 insertions(+), 3 deletions(-) (limited to 'doc/html/items_8php.html') diff --git a/doc/html/items_8php.html b/doc/html/items_8php.html index cb965d186..ab9c4f6fa 100644 --- a/doc/html/items_8php.html +++ b/doc/html/items_8php.html @@ -160,6 +160,8 @@ Functions    item_store ($arr, $force_parent=false)   + item_store_update ($arr, $force_parent=false) +   send_status_notifications ($post_id, $item)    get_item_contact ($item, $contacts) @@ -232,7 +234,7 @@ Functions @@ -1175,6 +1177,34 @@ Functions

Referenced by consume_feed(), event_store(), item_post(), like_content(), local_delivery(), mood_init(), photo_upload(), photos_create_item(), photos_post(), poke_init(), process_delivery(), profile_activity(), subthread_content(), and tagger_content().

+ + + +
+
+ + + + + + + + + + + + + + + + + + +
item_store_update ( $arr,
 $force_parent = false 
)
+
+ +

Referenced by update_imported_item().

+
@@ -1451,7 +1481,7 @@ Functions
-

Referenced by item_store().

+

Referenced by item_store(), and item_store_update().

@@ -1479,7 +1509,7 @@ Functions
-

Referenced by item_store().

+

Referenced by item_store(), and item_store_update().

-- cgit v1.2.3 From 5a29f511c1fa609f58f50d9148edd1fe77b23d9d Mon Sep 17 00:00:00 2001 From: friendica Date: Fri, 15 Mar 2013 15:36:58 -0700 Subject: add xconfig table and functions, update strings and doco --- doc/html/items_8php.html | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'doc/html/items_8php.html') diff --git a/doc/html/items_8php.html b/doc/html/items_8php.html index ab9c4f6fa..75ff25ea5 100644 --- a/doc/html/items_8php.html +++ b/doc/html/items_8php.html @@ -138,9 +138,9 @@ Functions    encode_item_terms ($terms)   - termtype ($t) + termtype ($t)   - decode_tags ($t) + decode_tags ($t)    activity_sanitise ($arr)   @@ -798,7 +798,7 @@ Functions -- cgit v1.2.3 From 36bfe90882b9ca1268e6338281c8da28803ae3eb Mon Sep 17 00:00:00 2001 From: friendica Date: Tue, 16 Apr 2013 16:05:05 -0700 Subject: update doco --- doc/html/items_8php.html | 57 +++++++++++++++++++++++++++++++++++++++++++----- 1 file changed, 52 insertions(+), 5 deletions(-) (limited to 'doc/html/items_8php.html') diff --git a/doc/html/items_8php.html b/doc/html/items_8php.html index 75ff25ea5..50211043e 100644 --- a/doc/html/items_8php.html +++ b/doc/html/items_8php.html @@ -114,6 +114,8 @@ $(document).ready(function(){initNavTree('items_8php.html','');}); Functions  collect_recipients ($item, &$private)   + post_activity_item ($arr) +   get_public_feed ($channel, $params)    get_feed_for (&$a, $dfrn_id, $owner_nick, $last_update, $direction=0) @@ -124,8 +126,10 @@ Functions    construct_activity_target ($item)   -if(!function_exists('limit_body_size')) title_is_body ($title, $body) -  + limit_body_size ($body) +  + title_is_body ($title, $body) +   get_item_elements ($x)    import_author_xchan ($x) @@ -1175,7 +1179,7 @@ Functions @@ -1205,6 +1209,24 @@ Functions

Referenced by update_imported_item().

+ + + +
+
+ + + + + + + + +
limit_body_size ( $body)
+
+ +

Referenced by get_atom_elements().

+
@@ -1393,6 +1415,31 @@ Functions

Referenced by consume_feed().

+ + + +
+
+ + + + + + + + +
post_activity_item ( $arr)
+
+

post_activity_item($arr)

+
post an activity
+
Parameters
+ + +
array$arrIn its simplest form one needs only to set $arr['body'] to post a note to the logged in channel's wall. Much more complex activities can be created. Permissions are checked. No filtering, tag expansion or other processing is performed.
+
+
+
Returns
array 'success' => true or false 'activity' => the resulting activity if successful
+
@@ -1559,12 +1606,12 @@ Functions - +
- + -- cgit v1.2.3 From 9e22ec928b9534ea9db0d18bf685fb0d357fbad2 Mon Sep 17 00:00:00 2001 From: friendica Date: Thu, 18 Apr 2013 21:06:31 -0700 Subject: more umbilical cutting --- doc/html/items_8php.html | 25 +++++++++++++++++++++++-- 1 file changed, 23 insertions(+), 2 deletions(-) (limited to 'doc/html/items_8php.html') diff --git a/doc/html/items_8php.html b/doc/html/items_8php.html index 50211043e..a09a8b58e 100644 --- a/doc/html/items_8php.html +++ b/doc/html/items_8php.html @@ -28,7 +28,7 @@
if (!function_exists('limit_body_size')) title_is_body title_is_body (   $title,
- + + + @@ -1179,7 +1181,7 @@ Functions
The Red Project
@@ -114,6 +114,8 @@ $(document).ready(function(){initNavTree('items_8php.html','');}); Functions
 collect_recipients ($item, &$private)
 
 red_zrl_callback ($matches)
 
 post_activity_item ($arr)
 
 get_public_feed ($channel, $params)
@@ -1440,6 +1442,8 @@ Functions
Returns
array 'success' => true or false 'activity' => the resulting activity if successful
+

Referenced by poke_init().

+ @@ -1502,6 +1506,23 @@ Functions

Referenced by posted_date_widget().

+ + + +
+
+ + + + + + + + +
red_zrl_callback ( $matches)
+
+

red_zrl_callback preg_match function when fixing 'naked' links in mod item.php Check if we've got a hubloc for the site and use a zrl if we do, a url if we don't.

+
-- cgit v1.2.3 From 946554ff4b03d81f32375832b8b50883a3ffeedf Mon Sep 17 00:00:00 2001 From: friendica Date: Fri, 10 May 2013 03:52:06 -0700 Subject: doc update --- doc/html/items_8php.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'doc/html/items_8php.html') diff --git a/doc/html/items_8php.html b/doc/html/items_8php.html index a09a8b58e..58bda96d6 100644 --- a/doc/html/items_8php.html +++ b/doc/html/items_8php.html @@ -804,7 +804,7 @@ Functions -- cgit v1.2.3 From 34526e82531c67995e25cf04abce0d927ce22ffd Mon Sep 17 00:00:00 2001 From: friendica Date: Fri, 10 May 2013 03:59:11 -0700 Subject: doc cleanup --- doc/html/items_8php.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'doc/html/items_8php.html') diff --git a/doc/html/items_8php.html b/doc/html/items_8php.html index 58bda96d6..0e73e8571 100644 --- a/doc/html/items_8php.html +++ b/doc/html/items_8php.html @@ -4,7 +4,7 @@ -The Red Project: include/items.php File Reference +The Red Matrix: include/items.php File Reference @@ -30,7 +30,7 @@ Logo -
The Red Project +
The Red Matrix
-- cgit v1.2.3 From 5e4b9d7766ceffd19785f14443cc1b4d4f675d4e Mon Sep 17 00:00:00 2001 From: friendica Date: Tue, 14 May 2013 21:25:58 -0700 Subject: disable pcss when installing since modules don't yet work and pcss uses the view module, plus weekly doc update --- doc/html/items_8php.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'doc/html/items_8php.html') diff --git a/doc/html/items_8php.html b/doc/html/items_8php.html index 0e73e8571..1f064892d 100644 --- a/doc/html/items_8php.html +++ b/doc/html/items_8php.html @@ -28,7 +28,7 @@ - + + + @@ -224,6 +226,8 @@ Functions + +
The Red Matrix
-- cgit v1.2.3 From 5c1f959c1828066358ec868ffb953e88f16195c6 Mon Sep 17 00:00:00 2001 From: friendica Date: Fri, 24 May 2013 06:02:30 -0700 Subject: set default contact affinity back to 99 - we'll solve the other problem another way, this one is flawed --- doc/html/items_8php.html | 64 ++++++++++++++++++++++++++++++++++++++++++++++-- 1 file changed, 62 insertions(+), 2 deletions(-) (limited to 'doc/html/items_8php.html') diff --git a/doc/html/items_8php.html b/doc/html/items_8php.html index 1f064892d..055457706 100644 --- a/doc/html/items_8php.html +++ b/doc/html/items_8php.html @@ -118,6 +118,8 @@ Functions
 
 post_activity_item ($arr)
 
 purify_html ($s)
 
 get_public_feed ($channel, $params)
 
 get_feed_for (&$a, $dfrn_id, $owner_nick, $last_update, $direction=0)
 
 zot_feed ($uid, $observer_xchan, $mindate)
 
 items_fetch ($arr, $channel=null, $client_mode=CLIENT_MODE_NORMAL, $module= 'network')
 

Function Documentation

@@ -804,7 +808,7 @@ Functions
@@ -1211,6 +1215,44 @@ Functions

Referenced by update_imported_item().

+ + + +
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
items_fetch ( $arr,
 $channel = null,
 $client_mode = CLIENT_MODE_NORMAL,
 $module = 'network' 
)
+
+
@@ -1442,7 +1484,7 @@ Functions
Returns
array 'success' => true or false 'activity' => the resulting activity if successful
-

Referenced by poke_init().

+

Referenced by api_channel_stream(), and poke_init().

@@ -1506,6 +1548,24 @@ Functions

Referenced by posted_date_widget().

+ + + +
+
+ + + + + + + + +
purify_html ( $s)
+
+ +

Referenced by post_activity_item().

+
-- cgit v1.2.3 From 6cafab10e6e168da73a9916c04e54fa43e2ae85b Mon Sep 17 00:00:00 2001 From: friendica Date: Mon, 3 Jun 2013 16:29:33 -0700 Subject: fix pager, doc update --- doc/html/items_8php.html | 20 -------------------- 1 file changed, 20 deletions(-) (limited to 'doc/html/items_8php.html') diff --git a/doc/html/items_8php.html b/doc/html/items_8php.html index 055457706..0dbfdb66b 100644 --- a/doc/html/items_8php.html +++ b/doc/html/items_8php.html @@ -118,8 +118,6 @@ Functions    post_activity_item ($arr)   - purify_html ($s) -   get_public_feed ($channel, $params)    get_feed_for (&$a, $dfrn_id, $owner_nick, $last_update, $direction=0) @@ -1548,24 +1546,6 @@ Functions

Referenced by posted_date_widget().

- - - -
-
- - - - - - - - -
purify_html ( $s)
-
- -

Referenced by post_activity_item().

-
-- cgit v1.2.3 From ee1ecd8ea29e41f70f8ee233ff6859e2e45e28b7 Mon Sep 17 00:00:00 2001 From: friendica Date: Sat, 8 Jun 2013 16:29:56 -0700 Subject: remove uploaded import file once we're done with it. --- doc/html/items_8php.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'doc/html/items_8php.html') diff --git a/doc/html/items_8php.html b/doc/html/items_8php.html index 0dbfdb66b..ed3a69e79 100644 --- a/doc/html/items_8php.html +++ b/doc/html/items_8php.html @@ -1183,7 +1183,7 @@ Functions @@ -1482,7 +1482,7 @@ Functions
Returns
array 'success' => true or false 'activity' => the resulting activity if successful
-

Referenced by api_channel_stream(), and poke_init().

+

Referenced by api_channel_stream(), poke_init(), and tagger_content().

-- cgit v1.2.3 From 765d6e0a97f135755d6ec1322f6e3272bc0ae620 Mon Sep 17 00:00:00 2001 From: friendica Date: Fri, 14 Jun 2013 16:54:58 -0700 Subject: push refresh messages, performance work on conversations and configs, doc updates --- doc/html/items_8php.html | 60 ++++++++++++++++++++++++------------------------ 1 file changed, 30 insertions(+), 30 deletions(-) (limited to 'doc/html/items_8php.html') diff --git a/doc/html/items_8php.html b/doc/html/items_8php.html index ed3a69e79..7a8744588 100644 --- a/doc/html/items_8php.html +++ b/doc/html/items_8php.html @@ -120,8 +120,8 @@ Functions    get_public_feed ($channel, $params)   - get_feed_for (&$a, $dfrn_id, $owner_nick, $last_update, $direction=0) -  + get_feed_for ($channel, $observer_hash, $params) +   construct_verb ($item)    construct_activity_object ($item) @@ -190,8 +190,8 @@ Functions    lose_sharer ($importer, $contact, $datarray, $item)   - atom_author ($tag, $name, $uri, $h, $w, $photo) -  + atom_author ($tag, $name, $uri, $h, $w, $type, $photo) +   atom_entry ($item, $type, $author, $owner, $comment=false, $cid=0)    fix_private_photos ($s, $uid, $item=null, $cid=0) @@ -224,8 +224,8 @@ Functions    zot_feed ($uid, $observer_xchan, $mindate)   - items_fetch ($arr, $channel=null, $client_mode=CLIENT_MODE_NORMAL, $module= 'network') -  + items_fetch ($arr, $channel=null, $observer_hash=null, $client_mode=CLIENT_MODE_NORMAL, $module= 'network') + 

Function Documentation

@@ -264,7 +264,7 @@ Functions - +
@@ -298,6 +298,12 @@ Functions + + + + + + @@ -364,7 +370,7 @@ Functions
  $w,
 $type,
-

Referenced by get_feed_for().

+

Referenced by get_feed_for().

@@ -806,7 +812,7 @@ Functions @@ -907,39 +913,27 @@ Functions - +
- - - - - - - - - - - - - + - + - + @@ -949,6 +943,8 @@ Functions
get_feed_for ($a,
 $dfrn_id,
 $owner_nick, $channel,
 $last_update, $observer_hash,
 $direction = 0 $params 
+

Referenced by get_public_feed().

+
@@ -1137,8 +1133,6 @@ Functions
-

Referenced by atom_entry().

-
@@ -1155,8 +1149,6 @@ Functions
-

Referenced by atom_entry().

-
@@ -1215,7 +1207,7 @@ Functions - +
@@ -1231,6 +1223,12 @@ Functions + + + + + + @@ -1251,6 +1249,8 @@ Functions
  $channel = null,
 $observer_hash = null,
+

Referenced by get_feed_for().

+
-- cgit v1.2.3 From e16d678aab5fc43027ff80beedf1609ae09d78b0 Mon Sep 17 00:00:00 2001 From: friendica Date: Fri, 21 Jun 2013 15:15:07 -0700 Subject: relocate tagadelic to include/taxonomy --- doc/html/items_8php.html | 34 ++++++++++++++++++++++++++++++++-- 1 file changed, 32 insertions(+), 2 deletions(-) (limited to 'doc/html/items_8php.html') diff --git a/doc/html/items_8php.html b/doc/html/items_8php.html index 7a8744588..9ddcc712c 100644 --- a/doc/html/items_8php.html +++ b/doc/html/items_8php.html @@ -114,6 +114,8 @@ $(document).ready(function(){initNavTree('items_8php.html','');}); Functions  collect_recipients ($item, &$private)   + can_comment_on_post ($observer_xchan, $item) +   red_zrl_callback ($matches)    post_activity_item ($arr) @@ -372,6 +374,34 @@ Functions

Referenced by get_feed_for().

+ + + +
+
+ + + + + + + + + + + + + + + + + + +
can_comment_on_post ( $observer_xchan,
 $item 
)
+
+ +

Referenced by Item\__construct().

+
@@ -1409,7 +1439,7 @@ Functions
-

Referenced by encode_item().

+

Referenced by encode_item(), item_post(), and post_activity_item().

@@ -1663,7 +1693,7 @@ Functions -- cgit v1.2.3 From 6e880cfd4954c4a044358a823fac4dc9d5467a6b Mon Sep 17 00:00:00 2001 From: friendica Date: Sun, 7 Jul 2013 17:22:40 -0700 Subject: use current channel photo for favicon where applicable - might be browser dependent but seems to work on FF --- doc/html/items_8php.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'doc/html/items_8php.html') diff --git a/doc/html/items_8php.html b/doc/html/items_8php.html index 9ddcc712c..d38fc39e5 100644 --- a/doc/html/items_8php.html +++ b/doc/html/items_8php.html @@ -1512,7 +1512,7 @@ Functions
Returns
array 'success' => true or false 'activity' => the resulting activity if successful
-

Referenced by api_channel_stream(), poke_init(), and tagger_content().

+

Referenced by api_channel_stream(), poke_init(), tagger_content(), and thing_init().

-- cgit v1.2.3 From 39856f7cb1c15bd737d60581e0a54a061896f99d Mon Sep 17 00:00:00 2001 From: friendica Date: Sun, 14 Jul 2013 01:12:05 -0700 Subject: Add self to recipient lists. Sure we already have a copy but it's possible our nomadic channel clones don't. --- doc/html/items_8php.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'doc/html/items_8php.html') diff --git a/doc/html/items_8php.html b/doc/html/items_8php.html index d38fc39e5..6cf7dae20 100644 --- a/doc/html/items_8php.html +++ b/doc/html/items_8php.html @@ -400,7 +400,7 @@ Functions
-

Referenced by Item\__construct().

+

Referenced by Conversation\add_thread().

-- cgit v1.2.3 From c02a9301215ac146c26346ebc633d7c808cea5ee Mon Sep 17 00:00:00 2001 From: friendica Date: Fri, 9 Aug 2013 01:20:34 -0700 Subject: move sitekey creation to the account creation function instead of during channel creation. Channel import bypassed sitekey creation completely. We should do it during install, but it's possible somebody might have to install manually and the sitekey would never get created. This is the best compromise I can come up with. Looks like the doc tree was also updated in this checkin --- doc/html/items_8php.html | 174 ++--------------------------------------------- 1 file changed, 6 insertions(+), 168 deletions(-) (limited to 'doc/html/items_8php.html') diff --git a/doc/html/items_8php.html b/doc/html/items_8php.html index 6cf7dae20..e91c8f22d 100644 --- a/doc/html/items_8php.html +++ b/doc/html/items_8php.html @@ -184,14 +184,6 @@ Functions    consume_feed ($xml, $importer, &$contact, &$hub, $datedir=0, $pass=0)   - local_delivery ($importer, $data) -  - new_follower ($importer, $contact, $datarray, $item, $sharing=false) -  - lose_follower ($importer, $contact, $datarray, $item) -  - lose_sharer ($importer, $contact, $datarray, $item) -   atom_author ($tag, $name, $uri, $h, $w, $type, $photo)    atom_entry ($item, $type, $author, $owner, $comment=false, $cid=0) @@ -565,8 +557,6 @@ Functions

$xml = the (atom) feed to consume - RSS isn't as fully supported but may work for simple feeds.

$importer = the contact_record (joined to user_record) of the local user who owns this relationship. It is this person's stuff that is going to be updated. $contact = the person who is sending us stuff. If not set, we MAY be processing a "follow" activity from an external network and MAY create an appropriate contact record. Otherwise, we MUST have a contact record. $hub = should we find a hub declation in the feed, pass it back to our calling process, who might (or might not) try and subscribe to it. $datedir sorts in reverse order $pass - by default ($pass = 0) we cannot guarantee that a parent item has been imported prior to its children being seen in the stream unless we are certain of how the feed is arranged/ordered. With $pass = 1, we only pull parent items out of the stream. With $pass = 2, we only pull children (comments/likes).

So running this twice, first with pass 1 and then with pass 2 will do the right thing regardless of feed ordering. This won't be adequate in a fully-threaded model where comments can have sub-threads. That would require some massive sorting to get all the feed items into a mostly linear ordering, and might still require recursion.

-

Add new birthday event for this person

-

$bdtext is just a readable placeholder in case the event is shared with others. We will replace it during presentation to our $importer to contain a sparkle link and perhaps a photo.

@@ -670,7 +660,7 @@ Functions @@ -842,7 +832,7 @@ Functions @@ -939,7 +929,7 @@ Functions

If there's a copy of the body content which is guaranteed to have survived mangling in transit, use it.

-

Referenced by consume_feed(), and local_delivery().

+

Referenced by consume_feed().

@@ -1205,7 +1195,7 @@ Functions @@ -1299,112 +1289,6 @@ Functions

Referenced by get_atom_elements().

- - - -
-
- - - - - - - - - - - - - - - - - - -
local_delivery ( $importer,
 $data 
)
-
- -
-
- -
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
lose_follower ( $importer,
 $contact,
 $datarray,
 $item 
)
-
- -

Referenced by consume_feed().

- -
-
- -
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
lose_sharer ( $importer,
 $contact,
 $datarray,
 $item 
)
-
- -

Referenced by consume_feed().

-
@@ -1441,52 +1325,6 @@ Functions

Referenced by encode_item(), item_post(), and post_activity_item().

- - - -
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
new_follower ( $importer,
 $contact,
 $datarray,
 $item,
 $sharing = false 
)
-
- -

Referenced by consume_feed().

-
@@ -1546,7 +1384,7 @@ Functions @@ -1693,7 +1531,7 @@ Functions -- cgit v1.2.3 From b5efa1a63a621856f4f12fbd938aa3230aa0d1a9 Mon Sep 17 00:00:00 2001 From: friendica Date: Sat, 17 Aug 2013 06:30:09 -0700 Subject: issue #82, posted order not working - also doc update --- doc/html/items_8php.html | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) (limited to 'doc/html/items_8php.html') diff --git a/doc/html/items_8php.html b/doc/html/items_8php.html index e91c8f22d..a78bfc16a 100644 --- a/doc/html/items_8php.html +++ b/doc/html/items_8php.html @@ -166,10 +166,10 @@ Functions    encode_rel_links ($links)   - item_store ($arr, $force_parent=false) -  - item_store_update ($arr, $force_parent=false) -  + item_store ($arr, $allow_exec=false) +  + item_store_update ($arr, $allow_exec=false) +   send_status_notifications ($post_id, $item)    get_item_contact ($item, $contacts) @@ -236,7 +236,7 @@ Functions @@ -832,7 +832,7 @@ Functions @@ -1171,7 +1171,7 @@ Functions - +
@@ -1185,7 +1185,7 @@ Functions - + @@ -1199,7 +1199,7 @@ Functions - +
 $force_parent = false $allow_exec = false 
@@ -1213,7 +1213,7 @@ Functions - + @@ -1457,7 +1457,7 @@ Functions
 $force_parent = false $allow_exec = false 
-

Referenced by item_store(), and item_store_update().

+

Referenced by item_store(), and item_store_update().

@@ -1485,7 +1485,7 @@ Functions
-

Referenced by item_store(), and item_store_update().

+

Referenced by item_store(), and item_store_update().

-- cgit v1.2.3 From 381f457c3fae5dea1c76883837f18a70a55e6bb8 Mon Sep 17 00:00:00 2001 From: friendica Date: Sat, 24 Aug 2013 16:52:38 -0700 Subject: fix xchans more completely after a URL change --- doc/html/items_8php.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'doc/html/items_8php.html') diff --git a/doc/html/items_8php.html b/doc/html/items_8php.html index a78bfc16a..45632a5d3 100644 --- a/doc/html/items_8php.html +++ b/doc/html/items_8php.html @@ -236,7 +236,7 @@ Functions -- cgit v1.2.3 From 63c60b224c70ee9d09b8eb73bd11c44ca4a259fd Mon Sep 17 00:00:00 2001 From: friendica Date: Fri, 6 Sep 2013 03:10:25 -0700 Subject: provide mimetype selector on edit (pages and blocks) --- doc/html/items_8php.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'doc/html/items_8php.html') diff --git a/doc/html/items_8php.html b/doc/html/items_8php.html index 45632a5d3..09d2998ea 100644 --- a/doc/html/items_8php.html +++ b/doc/html/items_8php.html @@ -832,7 +832,7 @@ Functions -- cgit v1.2.3 From c98605df370d8a1b9dcd264cbad35367e57f095e Mon Sep 17 00:00:00 2001 From: friendica Date: Sat, 28 Sep 2013 04:30:57 -0700 Subject: doc updates --- doc/html/items_8php.html | 40 +++++++++++++++++++++++++++++++++++++++- 1 file changed, 39 insertions(+), 1 deletion(-) (limited to 'doc/html/items_8php.html') diff --git a/doc/html/items_8php.html b/doc/html/items_8php.html index 09d2998ea..41b25e9fc 100644 --- a/doc/html/items_8php.html +++ b/doc/html/items_8php.html @@ -178,6 +178,8 @@ Functions    tgroup_check ($uid, $item)   + check_item_source ($uid, $item) +   mail_store ($arr)    dfrn_deliver ($owner, $contact, $atom, $dissolve=false) @@ -392,7 +394,43 @@ Functions
-

Referenced by Conversation\add_thread().

+

Referenced by Conversation\add_thread(), and item_post().

+ +
+ + +
+
+ + + + + + + + + + + + + + + + + + +
check_item_source ( $uid,
 $item 
)
+
+

check_item_source($uid,$item)

+
Parameters
+ + + +
$uid
$itemChecks to see if this item owner is referenced as a source for this channel and if the post matches the rules for inclusion in this channel. Returns true if we should create a second delivery chain and false if none of the rules apply, or if the item is private.
+
+
+ +

Referenced by tag_deliver().

-- cgit v1.2.3 From 24dd15c2051bad20cad266e36227577cd8e46632 Mon Sep 17 00:00:00 2001 From: friendica Date: Fri, 4 Oct 2013 04:46:55 -0700 Subject: doc update --- doc/html/items_8php.html | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'doc/html/items_8php.html') diff --git a/doc/html/items_8php.html b/doc/html/items_8php.html index 41b25e9fc..f1d5aee87 100644 --- a/doc/html/items_8php.html +++ b/doc/html/items_8php.html @@ -393,6 +393,8 @@ Functions
+

can_comment_on_post($observer_xchan,$item);

+

This function examines the comment_policy attached to an item and decides if the current observer has sufficient privileges to comment. This will normally be called on a remote site where perm_is_allowed() will not be suitable because the post owner does not have a local channel_id. Generally we should look at the item - in particular the author['book_flags'] and see if ABOOK_FLAG_SELF is set. If it is, you should be able to use perm_is_allowed( ... 'post_comments'), and if it isn't you need to call can_comment_on_post()

Referenced by Conversation\add_thread(), and item_post().

@@ -1045,7 +1047,7 @@ Functions
-

Referenced by zot_import().

+

Referenced by zot_import().

@@ -1063,7 +1065,7 @@ Functions
-

Referenced by zot_import().

+

Referenced by zot_import().

@@ -1081,7 +1083,7 @@ Functions
-

Referenced by zot_import().

+

Referenced by zot_import().

@@ -1233,7 +1235,7 @@ Functions -- cgit v1.2.3 From 09950745c10912f9875eb4a63793ff7e85bb7974 Mon Sep 17 00:00:00 2001 From: friendica Date: Fri, 11 Oct 2013 20:43:53 -0700 Subject: doc updates --- doc/html/items_8php.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'doc/html/items_8php.html') diff --git a/doc/html/items_8php.html b/doc/html/items_8php.html index f1d5aee87..e78cb185e 100644 --- a/doc/html/items_8php.html +++ b/doc/html/items_8php.html @@ -1263,7 +1263,7 @@ Functions
-

Referenced by update_imported_item().

+

Referenced by item_post(), and update_imported_item().

-- cgit v1.2.3 From 97a109eed4e034d587b0d64d0f70f6b8a9380217 Mon Sep 17 00:00:00 2001 From: friendica Date: Sat, 9 Nov 2013 12:15:34 -0800 Subject: doc update --- doc/html/items_8php.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'doc/html/items_8php.html') diff --git a/doc/html/items_8php.html b/doc/html/items_8php.html index e78cb185e..7554583ae 100644 --- a/doc/html/items_8php.html +++ b/doc/html/items_8php.html @@ -700,7 +700,7 @@ Functions -- cgit v1.2.3 From f6b43a0a7bc96e199fad8ad65e0aa63bd9a04f8b Mon Sep 17 00:00:00 2001 From: friendica Date: Fri, 22 Nov 2013 11:52:26 -0800 Subject: doc updates --- doc/html/items_8php.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'doc/html/items_8php.html') diff --git a/doc/html/items_8php.html b/doc/html/items_8php.html index 7554583ae..5f9663fca 100644 --- a/doc/html/items_8php.html +++ b/doc/html/items_8php.html @@ -1047,7 +1047,7 @@ Functions
-

Referenced by zot_import().

+

Referenced by onepoll_run(), and zot_import().

-- cgit v1.2.3 From 8cd9a2c3a944e804c72ef461df801116c6b44ac7 Mon Sep 17 00:00:00 2001 From: friendica Date: Thu, 28 Nov 2013 19:37:39 -0800 Subject: doc updates --- doc/html/items_8php.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'doc/html/items_8php.html') diff --git a/doc/html/items_8php.html b/doc/html/items_8php.html index 5f9663fca..852603068 100644 --- a/doc/html/items_8php.html +++ b/doc/html/items_8php.html @@ -28,7 +28,7 @@ - + - - @@ -634,46 +632,6 @@ Functions

Referenced by drop_item().

- - - -
-
-
The Red Matrix
-- cgit v1.2.3 From 90fff1de1c81eca9cdca8c41ec8083b72965b4a2 Mon Sep 17 00:00:00 2001 From: friendica Date: Fri, 6 Dec 2013 00:11:03 -0800 Subject: doc updates --- doc/html/items_8php.html | 42 ------------------------------------------ 1 file changed, 42 deletions(-) (limited to 'doc/html/items_8php.html') diff --git a/doc/html/items_8php.html b/doc/html/items_8php.html index 852603068..cdb6587c5 100644 --- a/doc/html/items_8php.html +++ b/doc/html/items_8php.html @@ -182,8 +182,6 @@ Functions
 
 mail_store ($arr)
 
 dfrn_deliver ($owner, $contact, $atom, $dissolve=false)
 
 consume_feed ($xml, $importer, &$contact, &$hub, $datedir=0, $pass=0)
 
 atom_author ($tag, $name, $uri, $h, $w, $type, $photo)
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
dfrn_deliver ( $owner,
 $contact,
 $atom,
 $dissolve = false 
)
-
- -

Referenced by terminate_friendship().

-
-- cgit v1.2.3 From 64b16f1e1ac303b476ffac891c99f6404bc04f53 Mon Sep 17 00:00:00 2001 From: friendica Date: Fri, 13 Dec 2013 01:13:35 -0800 Subject: add construct_page hook --- doc/html/items_8php.html | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'doc/html/items_8php.html') diff --git a/doc/html/items_8php.html b/doc/html/items_8php.html index cdb6587c5..d76cf3b7f 100644 --- a/doc/html/items_8php.html +++ b/doc/html/items_8php.html @@ -830,7 +830,7 @@ Functions @@ -1382,8 +1382,6 @@ Functions @@ -1410,7 +1408,7 @@ Functions
-

Referenced by posted_date_widget().

+

Referenced by posted_date_widget(), and widget_archive().

-- cgit v1.2.3 From 916f3e9afc0dcf7f4255bac917ed6236595c7e07 Mon Sep 17 00:00:00 2001 From: friendica Date: Fri, 20 Dec 2013 01:39:05 -0800 Subject: doc updates --- doc/html/items_8php.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'doc/html/items_8php.html') diff --git a/doc/html/items_8php.html b/doc/html/items_8php.html index d76cf3b7f..a5cf59220 100644 --- a/doc/html/items_8php.html +++ b/doc/html/items_8php.html @@ -830,7 +830,7 @@ Functions -- cgit v1.2.3 From 121ee48963f7da0aec45b94163d68f23a36c7744 Mon Sep 17 00:00:00 2001 From: friendica Date: Fri, 27 Dec 2013 21:19:23 -0800 Subject: sslify - remove the redirect fallback - as it gets called occasionally and creates mixed content exceptions. Let's see how we go without it. Also a doc update. --- doc/html/items_8php.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'doc/html/items_8php.html') diff --git a/doc/html/items_8php.html b/doc/html/items_8php.html index a5cf59220..7e960877d 100644 --- a/doc/html/items_8php.html +++ b/doc/html/items_8php.html @@ -1481,7 +1481,7 @@ Functions -- cgit v1.2.3 From 3298768d957421743eaa56dec5381141ab094d53 Mon Sep 17 00:00:00 2001 From: friendica Date: Fri, 10 Jan 2014 00:47:40 -0800 Subject: directory creation error, display localtimes on cloud webpage, doc updates --- doc/html/items_8php.html | 60 ++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 60 insertions(+) (limited to 'doc/html/items_8php.html') diff --git a/doc/html/items_8php.html b/doc/html/items_8php.html index 7e960877d..14c34b581 100644 --- a/doc/html/items_8php.html +++ b/doc/html/items_8php.html @@ -220,6 +220,8 @@ Functions    items_fetch ($arr, $channel=null, $observer_hash=null, $client_mode=CLIENT_MODE_NORMAL, $module= 'network')   + update_remote_id ($channel, $post_id, $webpage, $pagetitle, $namespace, $remote_id, $mid) + 

Function Documentation

@@ -1557,6 +1559,64 @@ Functions

Referenced by get_atom_elements().

+ + + +
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
update_remote_id ( $channel,
 $post_id,
 $webpage,
 $pagetitle,
 $namespace,
 $remote_id,
 $mid 
)
+
+ +

Referenced by item_post().

+
-- cgit v1.2.3 From 3869b16298041887d0c90c884ffb5b22df8d56e9 Mon Sep 17 00:00:00 2001 From: friendica Date: Fri, 24 Jan 2014 14:35:32 -0800 Subject: prettyphoto (js|css) not found --- doc/html/items_8php.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'doc/html/items_8php.html') diff --git a/doc/html/items_8php.html b/doc/html/items_8php.html index 14c34b581..1cba27d43 100644 --- a/doc/html/items_8php.html +++ b/doc/html/items_8php.html @@ -1195,7 +1195,7 @@ Functions @@ -1223,7 +1223,7 @@ Functions -- cgit v1.2.3 From 902c9b158528b03e6e31f8b7f16fa4a5b16f62cd Mon Sep 17 00:00:00 2001 From: friendica Date: Fri, 31 Jan 2014 20:02:45 -0800 Subject: doc updates --- doc/html/items_8php.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'doc/html/items_8php.html') diff --git a/doc/html/items_8php.html b/doc/html/items_8php.html index 1cba27d43..a17e9cc15 100644 --- a/doc/html/items_8php.html +++ b/doc/html/items_8php.html @@ -1269,7 +1269,7 @@ Functions
-

Referenced by get_feed_for().

+

Referenced by api_statuses_user_timeline(), and get_feed_for().

-- cgit v1.2.3 From fb49647993fec8f52e69801ce92a9882a4c95b1a Mon Sep 17 00:00:00 2001 From: friendica Date: Fri, 7 Feb 2014 00:49:45 -0800 Subject: doc updates --- doc/html/items_8php.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'doc/html/items_8php.html') diff --git a/doc/html/items_8php.html b/doc/html/items_8php.html index a17e9cc15..13aecfbec 100644 --- a/doc/html/items_8php.html +++ b/doc/html/items_8php.html @@ -832,7 +832,7 @@ Functions -- cgit v1.2.3 From 064962ff82701d9d415a351a91354a0cdf949bd5 Mon Sep 17 00:00:00 2001 From: friendica Date: Fri, 14 Feb 2014 12:25:27 -0800 Subject: doc and assets update. There is what seems to be a controversial powerpoint in this checkin. The powerpoint is of course *open source* even if powerpoint itself is not. The source file is available for your examination and revision. --- doc/html/items_8php.html | 54 ++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 54 insertions(+) (limited to 'doc/html/items_8php.html') diff --git a/doc/html/items_8php.html b/doc/html/items_8php.html index 13aecfbec..dbe9f62b0 100644 --- a/doc/html/items_8php.html +++ b/doc/html/items_8php.html @@ -118,6 +118,12 @@ Functions    red_zrl_callback ($matches)   + red_escape_zrl_callback ($matches) +  + red_escape_codeblock ($m) +  + red_unescape_codeblock ($m) +   post_activity_item ($arr)    get_public_feed ($channel, $params) @@ -1412,6 +1418,54 @@ Functions

Referenced by posted_date_widget(), and widget_archive().

+ + + +
+
+ + + + + + + + +
red_escape_codeblock ( $m)
+
+ +
+
+ +
+
+ + + + + + + + +
red_escape_zrl_callback ( $matches)
+
+ +
+
+ +
+
+ + + + + + + + +
red_unescape_codeblock ( $m)
+
+
-- cgit v1.2.3 From 0501bab7dc5982f94924e19192c1d523a45085aa Mon Sep 17 00:00:00 2001 From: friendica Date: Fri, 21 Feb 2014 23:51:43 -0800 Subject: doc update --- doc/html/items_8php.html | 58 ++++++++++++++++++------------------------------ 1 file changed, 22 insertions(+), 36 deletions(-) (limited to 'doc/html/items_8php.html') diff --git a/doc/html/items_8php.html b/doc/html/items_8php.html index dbe9f62b0..1ff5877f6 100644 --- a/doc/html/items_8php.html +++ b/doc/html/items_8php.html @@ -144,6 +144,8 @@ Functions    import_author_xchan ($x)   + import_author_rss ($x) +   encode_item ($item)    map_scope ($scope) @@ -218,8 +220,6 @@ Functions    posted_dates ($uid, $wall)   - posted_date_widget ($url, $uid, $wall) -   fetch_post_tags ($items, $link=false)    zot_feed ($uid, $observer_xchan, $mindate) @@ -1097,6 +1097,24 @@ Functions

Referenced by fix_private_photos().

+ + + +
+
+ + + + + + + + +
import_author_rss ( $x)
+
+ +

Referenced by import_author_xchan().

+
@@ -1358,38 +1376,6 @@ Functions

Referenced by api_channel_stream(), poke_init(), tagger_content(), and thing_init().

- - - -
-
- - - - - - - - - - - - - - - - - - - - - - - - -
posted_date_widget ( $url,
 $uid,
 $wall 
)
-
-
@@ -1416,7 +1402,7 @@ Functions
-

Referenced by posted_date_widget(), and widget_archive().

+

Referenced by widget_archive().

@@ -1481,7 +1467,7 @@ Functions
-

red_zrl_callback preg_match function when fixing 'naked' links in mod item.php Check if we've got a hubloc for the site and use a zrl if we do, a url if we don't.

+

red_zrl_callback preg_match function when fixing 'naked' links in mod item.php Check if we've got a hubloc for the site and use a zrl if we do, a url if we don't. Remove any existing zid= param which may have been pasted by mistake - and will have the author's credentials. zid's are dynamic and can't really be passed around like that.

-- cgit v1.2.3 From 16c2aa042fade698ece5dcb67cde10ff8155bd65 Mon Sep 17 00:00:00 2001 From: friendica Date: Fri, 7 Mar 2014 14:30:24 -0800 Subject: doc update --- doc/html/items_8php.html | 22 +++++++++++++++++++++- 1 file changed, 21 insertions(+), 1 deletion(-) (limited to 'doc/html/items_8php.html') diff --git a/doc/html/items_8php.html b/doc/html/items_8php.html index 1ff5877f6..72b939468 100644 --- a/doc/html/items_8php.html +++ b/doc/html/items_8php.html @@ -210,6 +210,8 @@ Functions    item_expire ($uid, $days)   + retain_item ($id) +   drop_items ($items)    drop_item ($id, $interactive=true) @@ -838,7 +840,7 @@ Functions @@ -1469,6 +1471,24 @@ Functions

red_zrl_callback preg_match function when fixing 'naked' links in mod item.php Check if we've got a hubloc for the site and use a zrl if we do, a url if we don't. Remove any existing zid= param which may have been pasted by mistake - and will have the author's credentials. zid's are dynamic and can't really be passed around like that.

+
+ + +
+
+ + + + + + + + +
retain_item ( $id)
+
+ +

Referenced by item_expire().

+
-- cgit v1.2.3 From 3c23d1f9fe2813d91fc8d29f19f8a51d9a0a9091 Mon Sep 17 00:00:00 2001 From: friendica Date: Fri, 28 Mar 2014 01:12:36 -0700 Subject: doc update --- doc/html/items_8php.html | 44 ++++++++++++++++++++++++++++++-------------- 1 file changed, 30 insertions(+), 14 deletions(-) (limited to 'doc/html/items_8php.html') diff --git a/doc/html/items_8php.html b/doc/html/items_8php.html index 72b939468..115c975fc 100644 --- a/doc/html/items_8php.html +++ b/doc/html/items_8php.html @@ -214,10 +214,10 @@ Functions    drop_items ($items)   - drop_item ($id, $interactive=true) -  - delete_item_lowlevel ($item) -  + drop_item ($id, $interactive=true, $stage=DROPITEM_NORMAL) +  + delete_item_lowlevel ($item, $stage=DROPITEM_NORMAL) +   first_post_date ($uid, $wall=false)    posted_dates ($uid, $wall) @@ -626,7 +626,7 @@ Functions - +
@@ -634,17 +634,27 @@ Functions - + + + + + + + + + + +
delete_item_lowlevel (  $item)$item,
 $stage = DROPITEM_NORMAL 
)
-

Referenced by drop_item().

+

Referenced by drop_item().

- + @@ -1015,7 +1031,7 @@ Functions
-

Referenced by onepoll_run(), and zot_import().

+

Referenced by externals_run(), onepoll_run(), and zot_import().

@@ -1221,7 +1237,7 @@ Functions @@ -1543,7 +1559,7 @@ Functions @@ -1589,7 +1605,7 @@ Functions
-

Referenced by consume_feed(), and process_delivery().

+

Referenced by consume_feed(), and process_delivery().

-- cgit v1.2.3 From f832e5958594a942060766993625893f22beb59e Mon Sep 17 00:00:00 2001 From: friendica Date: Fri, 4 Apr 2014 15:24:45 -0700 Subject: doc updates, plus back-end work for rpost to let you post to a different channel than your current logged-in channel. Need the same for rbmark back-end. Then we "just" need a selector widget on the editor forms. --- doc/html/items_8php.html | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) (limited to 'doc/html/items_8php.html') diff --git a/doc/html/items_8php.html b/doc/html/items_8php.html index 115c975fc..b56f79a3a 100644 --- a/doc/html/items_8php.html +++ b/doc/html/items_8php.html @@ -116,6 +116,8 @@ Functions    can_comment_on_post ($observer_xchan, $item)   + add_source_route ($iid, $hash) +   red_zrl_callback ($matches)    red_escape_zrl_callback ($matches) @@ -248,6 +250,34 @@ Functions

Referenced by get_item_elements(), get_mail_elements(), item_store(), and item_store_update().

+ + + +
+
+ + + + + + + + + + + + + + + + + + +
add_source_route ( $iid,
 $hash 
)
+
+ +

Referenced by process_delivery().

+
-- cgit v1.2.3 From 14cf9572cd69cc217571c0a596aa6c4fb34eff7f Mon Sep 17 00:00:00 2001 From: friendica Date: Fri, 25 Apr 2014 16:08:58 -0700 Subject: doc/strings update --- doc/html/items_8php.html | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'doc/html/items_8php.html') diff --git a/doc/html/items_8php.html b/doc/html/items_8php.html index b56f79a3a..ebea2bc0c 100644 --- a/doc/html/items_8php.html +++ b/doc/html/items_8php.html @@ -275,6 +275,15 @@ Functions
+

add_source_route($iid,$hash) Adds $hash to the item source route specified by $iid

+
Parameters
+ + + +
integer$iiditem['id'] of target item
string$hashxchan_hash of the channel that sent the item Modifies item pointed to by $iid
+
+
+

$item['route'] contains a comma-separated list of xchans that sent the current message, somewhat analogous to the * Received: header line in email. We can use this to perform loop detection and to avoid sending a particular item to any "upstream" sender (they already have a copy because they sent it to us).

Referenced by process_delivery().

@@ -1124,6 +1133,7 @@ Functions
+

get_public_feed($channel,$params) generate an Atom feed

Referenced by feed_init().

-- cgit v1.2.3 From cdf5e08eb970c58b2d413e4ea9a4042f265259a3 Mon Sep 17 00:00:00 2001 From: friendica Date: Fri, 2 May 2014 17:28:46 -0700 Subject: weekly update --- doc/html/items_8php.html | 35 ++++++++++++++++++++++++++++++++--- 1 file changed, 32 insertions(+), 3 deletions(-) (limited to 'doc/html/items_8php.html') diff --git a/doc/html/items_8php.html b/doc/html/items_8php.html index ebea2bc0c..8683450e7 100644 --- a/doc/html/items_8php.html +++ b/doc/html/items_8php.html @@ -222,6 +222,8 @@ Functions    first_post_date ($uid, $wall=false)   + list_post_dates ($uid, $wall) +   posted_dates ($uid, $wall)    fetch_post_tags ($items, $link=false) @@ -923,7 +925,7 @@ Functions
-

Referenced by posted_dates().

+

Referenced by list_post_dates(), and posted_dates().

@@ -1371,6 +1373,35 @@ Functions

Referenced by get_atom_elements().

+ + + +
+
+ + + + + + + + + + + + + + + + + + +
list_post_dates ( $uid,
 $wall 
)
+
+

modified posted_dates() {below} to arrange the list in years, which we'll eventually use to make a menu of years with collapsible sub-menus for the months instead of the current flat list of all representative dates.

+ +

Referenced by widget_archive().

+
@@ -1460,8 +1491,6 @@ Functions
-

Referenced by widget_archive().

-
-- cgit v1.2.3 From 6ac50faaa24e540baded894f492fb24367aea796 Mon Sep 17 00:00:00 2001 From: friendica Date: Fri, 16 May 2014 02:13:27 -0700 Subject: doc updates --- doc/html/items_8php.html | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) (limited to 'doc/html/items_8php.html') diff --git a/doc/html/items_8php.html b/doc/html/items_8php.html index 8683450e7..24d268052 100644 --- a/doc/html/items_8php.html +++ b/doc/html/items_8php.html @@ -126,6 +126,8 @@ Functions    red_unescape_codeblock ($m)   + red_zrlify_img_callback ($matches) +   post_activity_item ($arr)    get_public_feed ($channel, $params) @@ -1556,6 +1558,22 @@ Functions

red_zrl_callback preg_match function when fixing 'naked' links in mod item.php Check if we've got a hubloc for the site and use a zrl if we do, a url if we don't. Remove any existing zid= param which may have been pasted by mistake - and will have the author's credentials. zid's are dynamic and can't really be passed around like that.

+
+ + +
+
+ + + + + + + + +
red_zrlify_img_callback ( $matches)
+
+
-- cgit v1.2.3 From 626eab99f8affc59f3578dabf4fd2ad97abd62e4 Mon Sep 17 00:00:00 2001 From: friendica Date: Fri, 23 May 2014 14:52:55 -0700 Subject: add profile photo app because it is sometimes hard to find. Also doc updates --- doc/html/items_8php.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'doc/html/items_8php.html') diff --git a/doc/html/items_8php.html b/doc/html/items_8php.html index 24d268052..e0d8563b3 100644 --- a/doc/html/items_8php.html +++ b/doc/html/items_8php.html @@ -158,9 +158,9 @@ Functions    encode_item_terms ($terms)   - termtype ($t) + termtype ($t)   - decode_tags ($t) + decode_tags ($t)    activity_sanitise ($arr)   -- cgit v1.2.3 From c37ee6f06f1a52b08c49fe3bd6de2cc46e51a490 Mon Sep 17 00:00:00 2001 From: friendica Date: Fri, 30 May 2014 02:52:29 -0700 Subject: doc updates --- doc/html/items_8php.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'doc/html/items_8php.html') diff --git a/doc/html/items_8php.html b/doc/html/items_8php.html index e0d8563b3..1d6632169 100644 --- a/doc/html/items_8php.html +++ b/doc/html/items_8php.html @@ -899,7 +899,7 @@ Functions @@ -1281,7 +1281,7 @@ Functions -- cgit v1.2.3 From 5968bc7f8635b476834e7fb71d95800b9c152fdd Mon Sep 17 00:00:00 2001 From: friendica Date: Sat, 21 Jun 2014 16:04:00 -0700 Subject: moods not working in other languages + doc updates --- doc/html/items_8php.html | 69 ++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 69 insertions(+) (limited to 'doc/html/items_8php.html') diff --git a/doc/html/items_8php.html b/doc/html/items_8php.html index 1d6632169..8de640f1a 100644 --- a/doc/html/items_8php.html +++ b/doc/html/items_8php.html @@ -236,6 +236,10 @@ Functions    update_remote_id ($channel, $post_id, $webpage, $pagetitle, $namespace, $remote_id, $mid)   + item_add_cid ($xchan_hash, $mid, $uid) +  + item_remove_cid ($xchan_hash, $mid, $uid) + 

Function Documentation

@@ -1195,6 +1199,39 @@ Functions

Referenced by get_item_elements(), get_mail_elements(), and get_profile_elements().

+ + + +
+
+ + + + + + + + + + + + + + + + + + + + + + + + +
item_add_cid ( $xchan_hash,
 $mid,
 $uid 
)
+
+

change access control for item with message_id $mid and channel_id $uid

+
@@ -1255,6 +1292,38 @@ Functions
+
+ + +
+
+ + + + + + + + + + + + + + + + + + + + + + + + +
item_remove_cid ( $xchan_hash,
 $mid,
 $uid 
)
+
+
-- cgit v1.2.3