static string kind_name(
string
$kind
)
|
|
Parameters:
Blog Blog(
[object DB
$db_row = NULL]
)
|
|
Constructor
Parameters:
void contact_link(
[
$params = array()]
)
|
|
T-Tag: displays a link to the contact form for the owner of the current Blog
'before' => '',
'after' => ' ',
'title' =>
T_('Send a message to the owner of this blog...'),
), $params );
Parameters:
Information Tags:
| Todo: | EdB: one day this needs a 'class' param instead of assuming "contact_link" |
void credits_link(
[
$params = array()]
)
|
|
T-Tag: Display a link to the current blog's credits page
'before' => '',
'after' => ' ',
'credits_text' =>
T_('software credits'),
'credits_title' =>
T_('see who wrote the code that helps make this website'),
'powered_text' =>
T_('powered by'),
'powered_title' =>
T_('this website is powered by Quam Plures'),
'class' => '',
), $params );
Parameters:
void dbdelete(
[boolean
$echo = false]
)
|
|
Delete a blog and dependencies from database
Includes WAY TOO MANY requests because we try to be compatible with MySQL 3.23, bleh!
Parameters:
|
boolean |
$echo: |
true if you want to echo progress |
Redefinition of:
- DataObject::dbdelete()
- Delete object from DB.
Insert into the DB
Redefinition of:
- DataObject::dbinsert()
- Insert object into DB based on previously recorded changes.
Update the DB based on previously recorded changes
Redefinition of:
- DataObject::dbupdate()
- Update the DB based on previously recorded changes
void footer_text(
$params
)
|
|
T-Tag: Display the footer text for the current Blog
'before' => '',
'after' => ' ',
), $params );
Parameters:
string gen_archive_link(
$text,
$title,
$year, [
$month = NULL], [
$day = NULL], [
$week = NULL], [
$glue = '&'], [
$paged = 1]
)
|
|
Generate link to archive
Parameters:
|
|
$text: |
|
|
|
$title: |
|
|
|
$year: |
|
|
|
$month: |
|
|
|
$day: |
|
|
|
$week: |
|
|
|
$glue: |
|
|
|
$paged: |
|
API Tags:
void gen_archive_url(
string
$year, [string
$month = NULL], [string
$day = NULL], [string
$week = NULL], [
$glue = '&'], [
$paged = 1]
)
|
|
Generate archive page URL
Note: there ate two similar functions here.
Parameters:
|
string |
$year: |
year |
|
string |
$month: |
month |
|
string |
$day: |
day |
|
string |
$week: |
week |
|
|
$glue: |
|
|
|
$paged: |
|
API Tags:
Generate the baseurl of the blog (URL of the folder where the blog lives)
Information Tags:
void gen_blogurl(
[string
$type = 'default']
)
|
|
Generate blog URL
Parameters:
|
string |
$type: |
default|dynamic|static |
void gen_tag_url(
$tag, [
$paged = 1], [
$glue = '&']
)
|
|
Generate a tag url on this blog
Parameters:
false|string get(
string
$parname
)
|
|
Get a param.
Parameters:
|
string |
$parname: |
Parameter name |
API Tags:
| Return: | The value as string or false in case of error (e.g. media dir is disabled). |
Redefinition of:
- DataObject::get()
- Get a member param by its name
string get_allowed_item_status(
[string
$status = NULL]
)
|
|
Get allowed post status for current user in this blog
Parameters:
|
string |
$status: |
status to start with. Empty to use default. |
API Tags:
| Return: | authorized status; NULL if none |
Information Tags:
| Todo: | make default a Blog param |
void get_archive_url(
string
$date, [
$glue = '&']
)
|
|
Get archive page URL
Note: there are two similar functions here.
Parameters:
|
string |
$date: |
monthly, weekly, daily |
|
|
$glue: |
|
API Tags:
void get_comment_feed_url(
string
$template_folder_name
)
|
|
Get URL to display the blog comments in an XML feed.
Parameters:
|
string |
$template_folder_name: |
|
void get_contact_url(
[boolean
$with_redirect = true]
)
|
|
Parameters:
|
boolean |
$with_redirect: |
do we want to redirect back to where we came from after message? |
void get_default_cat_ID(
)
|
|
Get default category for current blog
Information Tags:
| Todo: | fp> this is a super lame stub, but it's still better than nothing. Should be user configurable. |
void get_filemanager_link(
string
0
)
|
|
Get link to edit files
Parameters:
|
string |
0: |
link (false on error) |
void get_item_feed_url(
string
$template_folder_name
)
|
|
Get URL to display the blog posts in an XML feed.
Parameters:
|
string |
$template_folder_name: |
|
string get_maxlen_name(
[
$maxlen = 50]
)
|
|
Get the max length of the blog name
Parameters:
string get_media_dir(
[boolean
$create = true]
)
|
|
Get the blog's media directory (and create it if necessary).
If we're on an admin page, it adds status messages.
Parameters:
|
boolean |
$create: |
Create the directory, if it does not exist yet? |
API Tags:
| Return: | path string on success, false if the dir could not be created |
Information Tags:
| Todo: | These status messages should rather go to a "syslog" and not be displayed to a normal user |
| Todo: | dh> refactor this into e.g. create_media_dir() and use it for Blog::get_media_dir, too. |
Get the URL to the media folder
API Tags:
string|false|NULL get_setting(
$parname
)
|
|
Get a setting.
Parameters:
API Tags:
| Return: | value as string on success; NULL if not found; false in case of error |
string get_sql_where_aggregate_coll_IDs(
string
$field
)
|
|
Get SQL expression to match the list of aggregates collection IDs.
This resolves as follows:
- empty: current blog only
- "*": all blogs (returns "1" as in "WHERE 1")
- other: as present in DB
Parameters:
|
string |
$field: |
SQL field name |
API Tags:
| Return: | e.g. "$field IN (1,5)" |
string get_tag_link(
string
$tag, [string
$text = NULL], [array
$attribs = array()]
)
|
|
Get a link (<a href>) to the tag page of a given tag.
Parameters:
|
string |
$tag: |
Tag |
|
string |
$text: |
Link text (defaults to tag name) |
|
array |
$attribs: |
Additional attributes for the A tag (href gets overridden). |
API Tags:
| Return: | The <a href> link |
void get_tag_post_count(
$tag
)
|
|
Get # of posts for a given tag
Parameters:
void get_viewmode_url(
string
$template_folder_name, [string
$additional_params = ''], [boolean
$halt_on_error = false]
)
|
|
Get URL to display the blog with a temporary template.
This is used to construct the various RSS/Atom feeds
Parameters:
|
string |
$template_folder_name: |
|
|
string |
$additional_params: |
|
|
boolean |
$halt_on_error: |
|
void init_by_kind(
string
$kind, [
$name = NULL], [
$shortname = NULL], [
$urlname = NULL]
)
|
|
Parameters:
|
string |
$kind: |
|
|
|
$name: |
|
|
|
$shortname: |
|
|
|
$urlname: |
|
void load_CollectionSettings(
)
|
|
Make sure collection settings are loaded
boolean load_from_Request(
[array
$groups = array()]
)
|
|
Load data from Request form fields.
Parameters:
|
array |
$groups: |
groups of params to load |
API Tags:
| Return: | true if loaded data seems valid. |
void longdesc(
[
$params = array()]
)
|
|
T-Tag: Display the current blog's long description
'before' => '',
'after' => ' ',
'format' => 'htmlbody',
), $params );
Parameters:
void name(
[
$params = array()]
)
|
|
T-Tag: Display the current blog's name
'before' => '',
'after' => ' ',
'format' => 'htmlbody',
), $params );
Parameters:
string replace_callback(
array
$matches
)
|
|
Callback function for footer_text()
Parameters:
boolean set(
string
$parname,
$parvalue
)
|
|
Set param value
Parameters:
|
string |
$parname: |
Parameter name |
|
|
$parvalue: |
|
API Tags:
| Return: | true, if a value has been set; false if it has not changed |
Redefinition of:
- DataObject::set()
- Set param value
void set_media_fullpath(
string
$path
)
|
|
Set the full path of the media folder
Parameters:
|
string |
$path: |
the full path |
void set_media_subdir(
string
$path
)
|
|
Set the media folder's subdir
Parameters:
|
string |
$path: |
the subdirectory |
void set_media_url(
string
$url
)
|
|
Set the full URL of the media folder
Parameters:
|
string |
$url: |
the full URL |
boolean set_setting(
$parname,
$value, [
$make_null = false]
)
|
|
Set a setting.
Parameters:
|
|
$parname: |
|
|
|
$value: |
|
|
|
$make_null: |
|
API Tags:
| Return: | true, if the value has been set, false if it has not changed. |
void tagline(
[
$params = array()]
)
|
|
T-Tag: Display the current blog's tagline
'before' => '',
'after' => ' ',
'format' => 'htmlbody',
), $params );
Parameters: