actualise_give_rating_points
actualise_post_comment
actualise_post_trackback
actualise_rating
actualise_specific_rating
already_rated
display_rating
embed_feedback_systems
extract_topic_identifier
feedback_fields
find_overridden_comment_forum
get_comments
get_details_behind_feedback_code
get_rating_box
get_rating_simple_array
get_trackbacks
post_comment_script
process_overridden_comment_forum
send_trackbacks
set_comment_forum_for
trackback_script
update_spacer_post
MAX_LIKES_TO_SHOW
RATING_TYPE_like_dislike
RATING_TYPE_star_choice
actualise_post_trackback(boolean $allow_trackbacks, \ID_TEXT $content_type, \ID_TEXT $content_id) : boolean
package | core_feedback_features |
---|
boolean
Whether this resource allows trackback (if not, this function does nothing - but it's nice to move out this common logic into the shared function)
\ID_TEXT
The type (download, etc) that this trackback is for
\ID_TEXT
The ID of the type that this trackback is for
boolean
Whether trackbacks are onalready_rated(array $rating_for_types, \ID_TEXT $content_id) : boolean
package | core_feedback_features |
---|
array
List of types (download, etc) that this rating is for. All need to be rated for it to return true.
\ID_TEXT
The ID of the type that this rating is for
boolean
Whether the resource has already been ratedextract_topic_identifier(string $full_text) : string
package | core_feedback_features |
---|
string
Potentially complex topic title
string
Simplified topic titlefeedback_fields(boolean $allow_rating, boolean $allow_comments, \?boolean $allow_trackbacks, boolean $send_trackbacks, \LONG_TEXT $notes, \?boolean $allow_reviews= null
, boolean $default_off= false
, boolean $has_notes= true
, boolean $show_header= true
, string $field_name_prefix= ''
) : \Tempcode
package | core_feedback_features |
---|
boolean
Whether rating is currently/by-default allowed for this resource
boolean
Whether comments are currently/by-default allowed for this resource
\?boolean
Whether trackbacks are currently/by-default allowed for this resource (null: this resource does not support trackbacks regardless)
boolean
Whether we're allowed to send trackbacks for this resource
\LONG_TEXT
The current/by-default notes for this content
\?boolean
Whether reviews are currently/by-default allowed for this resource (null: no reviews allowed here)
boolean
Whether the default values for the allow options is actually off (this determines how the tray auto-hides itself)
boolean
If there's to be a notes field
boolean
Whether to show a header
string
Field name prefix
\Tempcode
The feedback editing fieldsfind_overridden_comment_forum(\ID_TEXT $feedback_code, \?ID_TEXT $category_id = null
) : \ID_TEXT
package | core_feedback_features |
---|
\ID_TEXT
The feedback code, which we may have overridden the comment forum against
\?ID_TEXT
The category ID, which we may have overridden the comment forum against (null: no category ID to override against)
\ID_TEXT
The comment topic forum (may be integer as string, or string forum name - so use forum_id_from_name on the result)get_comments(\ID_TEXT $content_type, boolean $allow_comments, \ID_TEXT $content_id, boolean $invisible_if_no_comments= false
, \?string $forum= null
, \?string $post_warning= null
, \?mixed $_comments= null
, boolean $explicit_allow= false
, \?boolean $reverse= null
, \?MEMBER $highlight_by_user= null
, boolean $allow_reviews= false
, \?integer $num_to_show_limit= null
) : \Tempcode
package | core_feedback_features |
---|
\ID_TEXT
The type (download, etc) that this commenting is for
boolean
Whether this resource allows comments (if not, this function does nothing - but it's nice to move out this common logic into the shared function)
\ID_TEXT
The ID of the type that this commenting is for
boolean
Whether the comment box will be invisible if there are not yet any comments (and you're not staff)
\?string
The name of the forum to use (null: default comment forum)
\?string
The default post to use (null: standard courtesy warning)
\?mixed
The raw comment array (null: lookup). This is useful if we want to pass it through a filter
boolean
Whether to skip permission checks
\?boolean
Whether to show in reverse date order (affects default search order only) (null: read config)
\?MEMBER
User to highlight the posts of (null: none)
boolean
Whether to allow ratings along with the comment (like reviews)
\?integer
Maximum to load (null: default)
\Tempcode
The Tempcode for the comment topicget_details_behind_feedback_code(\ID_TEXT $content_type, \ID_TEXT $content_id) : array
package | core_feedback_features |
---|
\ID_TEXT
Content type
\ID_TEXT
Content ID
array
A tuple: Content title (null: unknown), Submitter (null: unknown), URL (for use within current browser session), URL (for use in emails / sharing), Content meta aware info arrayget_trackbacks(\ID_TEXT $content_type, \ID_TEXT $content_id, boolean $allow_trackback, \ID_TEXT $type = ''
) : \Tempcode
package | core_feedback_features |
---|
\ID_TEXT
The type (download, etc) that this trackback is for
\ID_TEXT
The ID of the type that this trackback is for
boolean
Whether this resource allows trackback (if not, this function does nothing - but it's nice to move out this common logic into the shared function)
\ID_TEXT
The type of details being fetched (currently: blank or XML)
\Tempcode
Tempcode for complete trackback boxprocess_overridden_comment_forum(\ID_TEXT $feedback_code, \ID_TEXT $id, \ID_TEXT $category_id, \ID_TEXT $old_category_id) : \ID_TEXT
package | core_feedback_features |
---|
\ID_TEXT
The feedback code, which we may have overridden the comment forum against
\ID_TEXT
The resource ID whose comment topic may need moving
\ID_TEXT
The new/current category ID, which we may have overridden the comment forum against
\ID_TEXT
The old category ID, which we may have overridden the comment forum against
\ID_TEXT
The comment topic forumsend_trackbacks(string $_urls, string $title, string $excerpt) : boolean
package | core_feedback_features |
---|
string
A comma-separated list of URLs to which we should trackback
string
The article title
string
The excerpt to send
boolean
Success?set_comment_forum_for(\ID_TEXT $feedback_code, \?ID_TEXT $category_id, \ID_TEXT $forum_id)
package | core_feedback_features |
---|
\ID_TEXT
The feedback code to override the comment topic forum for
\?ID_TEXT
The category ID to override the comment topic forum for (null: none)
\ID_TEXT
The new comment topic forum
trackback_script()
package | core_feedback_features |
---|
update_spacer_post(boolean $allow_comments, \ID_TEXT $content_type, \ID_TEXT $content_id, mixed $content_url, \?string $content_title, \?string $forum= null
, \?AUTO_LINK $post_id= null
)
package | core_feedback_features |
---|
boolean
Whether this resource allows comments (if not, this function does nothing - but it's nice to move out this common logic into the shared function)
\ID_TEXT
The type (download, etc) that this commenting is for
\ID_TEXT
The ID of the type that this commenting is for
mixed
The URL to where the commenting will pass back to (to put into the comment topic header) (URLPATH or Tempcode)
\?string
The title to where the commenting will pass back to (to put into the comment topic header) (null: don't know, but not first post so not important)
\?string
The name of the forum to use (null: default comment forum)
\?AUTO_LINK
ID of spacer post (null: unknown)
Add comments to the specified resource.
Parameters
$allow_comments
boolean
Whether this resource allows comments (if not, this function does nothing - but it's nice to move out this common logic into the shared function)
$content_type
\ID_TEXT
The type (download, etc) that this commenting is for
$content_id
\ID_TEXT
The ID of the type that this commenting is for
$content_url
mixed
The URL to where the commenting will pass back to (to put into the comment topic header) (URLPATH or Tempcode)
$content_title
\?string
The title to where the commenting will pass back to (to put into the comment topic header) (null: don't know, but not first post so not important)
$forum
\?string
The name of the forum to use (null: default comment forum)
$avoid_captcha
boolean
Whether to not require a captcha
$validated
\?BINARY
Whether the post is validated (null: unknown, find whether it needs to be marked unvalidated initially). This only works with the Conversr driver (hence is the last parameter).
$explicit_allow
boolean
Whether to force allowance
$no_success_message
boolean
Whether to skip a success message
$private
boolean
Whether posts made should not be shared
$post_title
\?string
Title of the post (null: lookup from POST environment)
$post
\?string
Body of the post (null: lookup from POST environment)
$time
\?TIME
Time of comment topic (null: now)
Returns
boolean
Whether a hidden post has been made