string add(
string
$internal, string
$name, string
$theme
)
|
|
Add a new weblog, based on $theme. returns the internal name used for the weblog.
Parameters:
|
string |
$internal: |
|
|
string |
$name: |
|
|
string |
$theme: |
|
void delete(
string
$weblogname
)
|
|
Delete a weblog
Parameters:
void deleteCategoryFromWeblogs(
$name
)
|
|
Parameters:
void export(
string
$weblogname
)
|
|
Export a weblog as a theme file. The file is saved in the same folder as the weblog's frontpage template.
Parameters:
void get(
string
$weblogname, string
$key
)
|
|
Gets a property of a given weblog
Parameters:
|
string |
$weblogname: |
|
|
string |
$key: |
|
array getCategories(
[string
$weblogname = '']
)
|
|
Get the categories from a certain weblog.
Parameters:
Gets the currently active weblog.
array getSubweblog(
[string
$weblogname = ''],
$subweblogname
)
|
|
Return a subweblog as an array
Parameters:
|
string |
$weblogname: |
|
|
|
$subweblogname: |
|
array getSubweblogs(
[string
$weblogname = '']
)
|
|
Return the subweblogs of a given weblog as an array. It does this by grabbing all [[weblog]] and [[ subweblog ]] tags from the templates in the same folder as the template that was selected as the frontpage template. Updates the subweblog info in the weblogs object.
Parameters:
array getWeblog(
[string
$weblogname = '']
)
|
|
Returns the given weblog as an array. If no weblogname was given, use the current weblog.
Parameters:
Returns an array with the weblog names.
Return all weblogs as an array
void getWeblogsWithCat(
array
$categories
)
|
|
Return the weblogs that have the given category or categories assigned to them.
Parameters:
boolean isWeblog(
$weblogname, string
$name
)
|
|
Check if a given $name is a weblog.
Parameters:
|
string |
$name: |
|
|
|
$weblogname: |
|
void set(
string
$weblogname, string
$key, string
$value
)
|
|
Sets a property of a given weblog
Parameters:
|
string |
$weblogname: |
|
|
string |
$key: |
|
|
string |
$value: |
|
boolean setCurrent(
[string
$weblogname = '']
)
|
|
Sets a given weblog as 'current' and returns false if the weblog doesn't exist.
Parameters:
boolean setCurrentFromCategory(
mixed
$categories
)
|
|
Sets a given weblog as 'current' based on a given category and returns false if no matching weblog could be set.
Parameters:
int sort(
array
$a, array
$b
)
|
|
Sort the weblogs based on string comparison of name.
Parameters:
void _getLink(
string
$weblogname, string
$value
)
|
|
Calculates the link for a given weblog
Parameters:
|
string |
$value: |
|
|
string |
$weblogname: |
|