void dbdelete(
[boolean
$delete_stub_file = false], [boolean
$delete_static_file = false], [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 |
$delete_stub_file: |
true if you want to try to delete the stub file |
|
boolean |
$delete_static_file: |
true if you want to try to delete the static file |
|
boolean |
$echo: |
true if you want to echo progress |
Redefinition of:
- DataObject::dbdelete()
- Delete object from DB.
Update the DB based on previously recorded changes
Redefinition of:
- DataObject::dbupdate()
- Update the DB based on previously recorded changes
void gen_blogurl(
[string
$type = 'default'], [boolean
$absolute = true]
)
|
|
Generate blog URL
Parameters:
|
string |
$type: |
default|dynamic|static |
|
boolean |
$absolute: |
should this be an absolute URL? (otherwise: relative to $baseurl) |
false|string get(
$parname
)
|
|
Get a param.
Parameters:
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
Get the blog's media directory (and create it if necessary).
If we're on an admin page, it adds status messages.
API Tags:
| Return: | the path as 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 |
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 |
void load_CollectionSettings(
)
|
|
void name(
[string
$format = 'htmlbody'], [
$disp = true]
)
|
|
Template function: display name of blog
Parameters:
void name_return(
[string
$format = 'htmlbody']
)
|
|
Template function: return name of item
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 setMediaFullPath(
string
$path
)
|
|
Set the full path of the media folder
Parameters:
|
string |
$path: |
the full path |
void setMediaSubDir(
string
$path
)
|
|
Set the media folder's subdir
Parameters:
|
string |
$path: |
the subdirectory |
void setMediaUrl(
string
$url
)
|
|
Set the full URL of the media folder
Parameters:
|
string |
$url: |
the full URL |
boolean set_setting(
$parname,
$value
)
|
|
Set a setting.
Parameters:
API Tags:
| Return: | true, if the value has been set, false if it has not changed. |