add_news
add_news_category
build_news_sitemap
create_selection_list_news
create_selection_list_news_categories
delete_news
delete_news_category
dispatch_news_notification
edit_news
edit_news_category
import_foreign_news_html
import_rss_fields
render_news_box
render_news_category_box
send_rss_ping
add_news(\SHORT_TEXT $title, \LONG_TEXT $news, \?ID_TEXT $author= null, \BINARY $validated= 1, \BINARY $allow_rating= 1, \SHORT_INTEGER $allow_comments= 1, \BINARY $allow_trackbacks= 1, \LONG_TEXT $notes= '', \LONG_TEXT $news_article= '', \?AUTO_LINK $main_news_category= null, \?array $news_categories= null, \?TIME $time= null, \?MEMBER $submitter= null, integer $views= 0, \?TIME $edit_date= null, \?AUTO_LINK $id= null, \URLPATH $image= '', \?SHORT_TEXT $meta_keywords= '', \?LONG_TEXT $meta_description= '') : \AUTO_LINK
| package | news |
|---|
\SHORT_TEXTThe news title
\LONG_TEXTThe news summary (or if not an article, the full news)
\?ID_TEXTThe news author (possibly, a link to an existing author in the system, but does not need to be) (null: current username)
\BINARYWhether the news has been validated
\BINARYWhether the news may be rated
\SHORT_INTEGERWhether comments are allowed (0=no, 1=yes, 2=review style)
\BINARYWhether the news may have trackbacks
\LONG_TEXTNotes for the news
\LONG_TEXTThe news entry (blank means no entry)
\?AUTO_LINKThe primary news category (null: personal)
\?arrayThe IDs of the news categories that this is in (null: none)
\?TIMEThe time of submission (null: now)
\?MEMBERThe news submitter (null: current member)
integerThe number of views the article has had
\?TIMEThe edit date (null: never)
\?AUTO_LINKForce an ID (null: don't force an ID)
\URLPATHURL to the image for the news entry (blank: use cat image)
\?SHORT_TEXTMeta keywords for this resource (null: do not edit) (blank: implicit)
\?LONG_TEXTMeta description for this resource (null: do not edit) (blank: implicit)
\AUTO_LINKThe ID of the news just addedadd_news_category(\SHORT_TEXT $title, \ID_TEXT $img, \LONG_TEXT $notes, \?MEMBER $owner= null, \?AUTO_LINK $id= null) : \AUTO_LINK
| package | news |
|---|
\SHORT_TEXTThe news category title
\ID_TEXTThe theme image ID of the picture to use for the news category
\LONG_TEXTNotes for the news category
\?MEMBERThe owner (null: public)
\?AUTO_LINKForce an ID (null: don't force an ID)
\AUTO_LINKThe ID of our new news categorybuild_news_sitemap()
| package | news |
|---|
create_selection_list_news(\?AUTO_LINK $it, \?MEMBER $only_owned= null, boolean $editable_filter= false, boolean $only_in_blog= false) : \Tempcode
| package | news |
|---|
\?AUTO_LINKThe selected news entry (null: none)
\?MEMBERLimit news to those submitted by this member (null: show all)
booleanWhether to only show for what may be edited by the current member
booleanWhether to only show blog posts
\TempcodeThe listcreate_selection_list_news_categories(\?mixed $it= null, boolean $show_all_personal_categories= false, boolean $addable_filter= false, boolean $only_existing= false, \?boolean $only_blogs= null, boolean $prefer_not_blog_selected= false, \?TIME $updated_since= null) : \Tempcode
| package | news |
|---|
\?mixedThe selected news category. Array or AUTO_LINK (null: personal)
booleanWhether to add all personal categories into the list (for things like the adminzone, where all categories must be shown, regardless of permissions)
booleanWhether to only show for what may be added to by the current member
booleanWhether to limit to only existing cats (otherwise we dynamically add unstarted blogs)
\?booleanWhether to limit to only show blog categories (null: don't care, true: blogs only, false: no blogs)
booleanWhether to prefer to choose a non-blog category as the default
\?TIMETime from which content must be updated (null: no limit).
\TempcodeThe Tempcode for the news category select listdelete_news(\AUTO_LINK $id)
delete_news_category(\AUTO_LINK $id)
dispatch_news_notification(\AUTO_LINK $id, \SHORT_TEXT $title, \AUTO_LINK $main_news_category)
| package | news |
|---|
\AUTO_LINKThe ID of the news
\SHORT_TEXTThe title
\AUTO_LINKThe main news category
edit_news(\AUTO_LINK $id, \SHORT_TEXT $title, \LONG_TEXT $news, \ID_TEXT $author, \BINARY $validated, \BINARY $allow_rating, \SHORT_INTEGER $allow_comments, \BINARY $allow_trackbacks, \LONG_TEXT $notes, \LONG_TEXT $news_article, \AUTO_LINK $main_news_category, \?array $news_categories, \SHORT_TEXT $meta_keywords, \LONG_TEXT $meta_description, \?URLPATH $image, \?TIME $add_time= null, \?TIME $edit_time= null, \?integer $views= null, \?MEMBER $submitter= null, boolean $null_is_literal= false)
| package | news |
|---|
\AUTO_LINKThe ID of the news to edit
\SHORT_TEXTThe news title
\LONG_TEXTThe news summary (or if not an article, the full news)
\ID_TEXTThe news author (possibly, a link to an existing author in the system, but does not need to be)
\BINARYWhether the news has been validated
\BINARYWhether the news may be rated
\SHORT_INTEGERWhether comments are allowed (0=no, 1=yes, 2=review style)
\BINARYWhether the news may have trackbacks
\LONG_TEXTNotes for the news
\LONG_TEXTThe news entry (blank means no entry)
\AUTO_LINKThe primary news category (null: personal)
\?arrayThe IDs of the news categories that this is in (null: do not change)
\SHORT_TEXTMeta keywords
\LONG_TEXTMeta description
\?URLPATHURL to the image for the news entry (blank: use cat image) (null: don't delete existing)
\?TIMEAdd time (null: do not change)
\?TIMEEdit time (null: either means current time, or if $null_is_literal, means reset to to NULL)
\?integerNumber of views (null: do not change)
\?MEMBERSubmitter (null: do not change)
booleanDetermines whether some NULLs passed mean 'use a default' or literally mean 'set to NULL'
edit_news_category(\AUTO_LINK $id, \?SHORT_TEXT $title, \?SHORT_TEXT $img, \?LONG_TEXT $notes, \?MEMBER $owner)
| package | news |
|---|
\AUTO_LINKThe news category to edit
\?SHORT_TEXTThe title (null: keep as-is)
\?SHORT_TEXTThe image (null: keep as-is)
\?LONG_TEXTThe notes (null: keep as-is)
\?MEMBERThe owner (null: public)
import_foreign_news_html(string $html, boolean $force_linebreaks = false) : string
| package | news |
|---|
stringHTML
booleanWhether to add in HTML line breaks from whitespace ones.
stringComcodeimport_rss_fields(boolean $import_to_blog) : \Tempcode
| package | news |
|---|
booleanWhether to import to blogs, by default
\TempcodeUI fieldsrender_news_box(array $row, \ID_TEXT $zone= '_SEARCH', boolean $give_context= true, boolean $brief= false, \ID_TEXT $guid= '') : \Tempcode
| package | news |
|---|
arrayThe news row
\ID_TEXTThe zone our news module is in
booleanWhether to include context (i.e. say WHAT this is, not just show the actual content)
booleanWhether to use the brief styling
\ID_TEXTOverridden GUID to send to templates (blank: none)
\TempcodeThe boxrender_news_category_box(array $row, \ID_TEXT $zone= '_SEARCH', boolean $give_context= true, boolean $attach_to_url_filter= false, \?integer $blogs= null, \ID_TEXT $guid= '') : \Tempcode
| package | news |
|---|
arrayThe database field row of it
\ID_TEXTThe zone to use
booleanWhether to include context (i.e. say WHAT this is, not just show the actual content)
booleanWhether to copy through any filter parameters in the URL, under the basis that they are associated with what this box is browsing
\?integerWhat to show (null: news and blogs, 0: news, 1: blogs)
\ID_TEXTOverridden GUID to send to templates (blank: none)
\TempcodeA box for it, linking to the full pagesend_rss_ping(boolean $show_errors = true) : string