Public Member Functions | |
| BLOG ($id) | |
| readLog ($template, $amountEntries, $offset=0, $startpos=0) | |
| showArchive ($templatename, $year, $month, $day=0) | |
| setSelectedCategory ($catid) | |
| setSelectedCategoryByName ($catname) | |
| getSelectedCategory () | |
| readLogAmount ($template, $amountEntries, $extraQuery, $highlight, $comments, $dateheads, $offset=0, $startpos=0) | |
| showUsingQuery ($templateName, $query, $highlight= '', $comments=0, $dateheads=1) | |
| showOneitem ($itemid, $template, $highlight) | |
| additem ($catid, $title, $body, $more, $blogid, $authorid, $timestamp, $closed, $draft, $posted='1') | |
| sendNewItemNotification ($itemid, $title, $body) | |
| createNewCategory ($catName= '', $catDescription= 'New category') | |
| search ($query, $template, $amountMonths, $maxresults, $startpos) | |
| getSqlSearch ($query, $amountMonths=0, &$highlight, $mode= '') | |
| getSqlBlog ($extraQuery, $mode= '') | |
| showArchiveList ($template, $mode= 'month', $limit=0) | |
| showCategoryList ($template) | |
| showBlogList ($template, $bnametype) | |
| readSettings () | |
| writeSettings () | |
| updateUpdatefile () | |
| isValidCategory ($catid) | |
| getCategoryName ($catid) | |
| getCategoryDesc ($catid) | |
| getCategoryIdFromName ($name) | |
| sendPing () | |
| setPingUserland ($val) | |
| convertBreaks () | |
| insertJavaScriptInfo ($authorid= '') | |
| setConvertBreaks ($val) | |
| setAllowPastPosting ($val) | |
| allowPastPosting () | |
| getCorrectTime ($t=0) | |
| getName () | |
| getShortName () | |
| getMaxComments () | |
| getNotifyAddress () | |
| getNotifyType () | |
| notifyOnComment () | |
| notifyOnVote () | |
| notifyOnNewItem () | |
| setNotifyType ($val) | |
| getTimeOffset () | |
| commentsEnabled () | |
| getURL () | |
| getDefaultSkin () | |
| getUpdateFile () | |
| getDescription () | |
| isPublic () | |
| emailRequired () | |
| getSearchable () | |
| getDefaultCategory () | |
| setPublic ($val) | |
| setSearchable ($val) | |
| setDescription ($val) | |
| setUpdateFile ($val) | |
| setDefaultSkin ($val) | |
| setURL ($val) | |
| setName ($val) | |
| setShortName ($val) | |
| setCommentsEnabled ($val) | |
| setMaxComments ($val) | |
| setNotifyAddress ($val) | |
| setEmailRequired ($val) | |
| setTimeOffset ($val) | |
| setDefaultCategory ($val) | |
| getSetting ($key) | |
| setSetting ($key, $value) | |
| addTeamMember ($memberid, $admin) | |
| getID () | |
| exists ($name) | |
| existsID ($id) | |
| setFuturePost () | |
| clearFuturePost () | |
| checkJustPosted () | |
Public Attributes | |
| $blogid | |
| $selectedcatid | |
| $isValid | |
| $settings | |
Definition at line 26 of file BLOG.php.
| BLOG::BLOG | ( | $ | id | ) |
Creates a new BLOG object for the given blog
| $id | blogid |
Definition at line 46 of file BLOG.php.
References $catid, readSettings(), and setSelectedCategory().
| BLOG::readLog | ( | $ | template, | |
| $ | amountEntries, | |||
| $ | offset = 0, |
|||
| $ | startpos = 0 | |||
| ) |
Shows the given amount of items for this blog
| $template | String representing the template _NAME_ (!) | |
| $amountEntries | amount of entries to show | |
| $startpos | offset from where items should be shown (e.g. 5 = start at fifth item) |
Definition at line 68 of file BLOG.php.
References $startpos, and readLogAmount().
| BLOG::showArchive | ( | $ | templatename, | |
| $ | year, | |||
| $ | month, | |||
| $ | day = 0 | |||
| ) |
Shows an archive for a given month
| $year | year | |
| $month | month | |
| $template | String representing the template name to be used |
Definition at line 82 of file BLOG.php.
References mysqldate(), and readLogAmount().
| BLOG::setSelectedCategory | ( | $ | catid | ) |
Definition at line 102 of file BLOG.php.
References $catid, and isValidCategory().
Referenced by BLOG(), and setSelectedCategoryByName().
| BLOG::setSelectedCategoryByName | ( | $ | catname | ) |
Definition at line 107 of file BLOG.php.
References getCategoryIdFromName(), and setSelectedCategory().
| BLOG::getSelectedCategory | ( | ) |
| BLOG::readLogAmount | ( | $ | template, | |
| $ | amountEntries, | |||
| $ | extraQuery, | |||
| $ | highlight, | |||
| $ | comments, | |||
| $ | dateheads, | |||
| $ | offset = 0, |
|||
| $ | startpos = 0 | |||
| ) |
Shows the given amount of items for this blog
| $template | String representing the template _NAME_ (!) | |
| $amountEntries | amount of entries to show (0 = no limit) | |
| $extraQuery | extra conditions to be added to the query | |
| $highlight | contains a query that should be highlighted | |
| $comments | 1=show comments 0=don't show comments | |
| $dateheads | 1=show dateheads 0=don't show dateheads | |
| $offset | offset |
Definition at line 135 of file BLOG.php.
References $highlight, $query, $startpos, getSqlBlog(), and showUsingQuery().
Referenced by readLog(), search(), showArchive(), and showOneitem().
| BLOG::showUsingQuery | ( | $ | templateName, | |
| $ | query, | |||
| $ | highlight = '', |
|||
| $ | comments = 0, |
|||
| $ | dateheads = 1 | |||
| ) |
Definition at line 147 of file BLOG.php.
References $actions, $CONF, $highlight, $manager, $query, cookieVar(), getCorrectTime(), mysql_fetch_object(), mysql_free_result(), mysql_num_rows(), and sql_query().
Referenced by readLogAmount(), and search().
| BLOG::showOneitem | ( | $ | itemid, | |
| $ | template, | |||
| $ | highlight | |||
| ) |
| BLOG::additem | ( | $ | catid, | |
| $ | title, | |||
| $ | body, | |||
| $ | more, | |||
| $ | blogid, | |||
| $ | authorid, | |||
| $ | timestamp, | |||
| $ | closed, | |||
| $ | draft, | |||
| $ | posted = '1' | |||
| ) |
Adds an item to this blog
Definition at line 238 of file BLOG.php.
References $blogid, $catid, $itemid, $manager, $query, addBreaks(), convertBreaks(), getCorrectTime(), getDefaultCategory(), getNotifyAddress(), isValidCategory(), mysql_insert_id(), notifyOnNewItem(), sendNewItemNotification(), and sql_query().
| BLOG::sendNewItemNotification | ( | $ | itemid, | |
| $ | title, | |||
| $ | body | |||
| ) |
Definition at line 288 of file BLOG.php.
References $CONF, $itemid, $member, createItemLink(), getMailFooter(), getName(), getNotifyAddress(), getURL(), and toAscii().
Referenced by additem().
| BLOG::createNewCategory | ( | $ | catName = '', |
|
| $ | catDescription = 'New category' | |||
| ) |
Creates a new category for this blog
| $catName | name of the new category. When empty, a name is generated automatically (starting with newcat) | |
| $catDescription | description of the new category. Defaults to 'New Category' |
Definition at line 336 of file BLOG.php.
References $catid, $manager, $member, $query, getID(), mysql_insert_id(), mysql_num_rows(), sql_query(), and sql_table().
| BLOG::search | ( | $ | query, | |
| $ | template, | |||
| $ | amountMonths, | |||
| $ | maxresults, | |||
| $ | startpos | |||
| ) |
Searches all months of this blog for the given query
| $query | search query | |
| $template | template to be used (__NAME__ of the template) | |
| $amountMonths | max amount of months to be search (0 = all) | |
| $maxresults | max number of results to show | |
| $startpos | offset |
Definition at line 403 of file BLOG.php.
References $CONF, $highlight, $manager, $maxresults, $query, $startpos, TEMPLATE::fill(), getID(), getSqlSearch(), readLogAmount(), and showUsingQuery().
| BLOG::getSqlSearch | ( | $ | query, | |
| $ | amountMonths = 0, |
|||
| &$ | highlight, | |||
| $ | mode = '' | |||
| ) |
Returns an SQL query to use for a search query
| $query | search query | |
| $amountMonths | amount of months to search back. Default = 0 = unlimited | |
| $mode | either empty, or 'count'. In this case, the query will be a SELECT COUNT(*) query |
either a full SQL query, or an empty string (if querystring empty)
Definition at line 454 of file BLOG.php.
References $highlight, $query, getCorrectTime(), getID(), mysqldate(), and sql_table().
Referenced by search().
| BLOG::getSqlBlog | ( | $ | extraQuery, | |
| $ | mode = '' | |||
| ) |
Returns the SQL query that's normally used to display the blog items on the index type skins
| $mode | either empty, or 'count'. In this case, the query will be a SELECT COUNT(*) query |
Definition at line 523 of file BLOG.php.
References $query, getCorrectTime(), getSelectedCategory(), mysqldate(), and sql_table().
Referenced by readLogAmount().
| BLOG::showArchiveList | ( | $ | template, | |
| $ | mode = 'month', |
|||
| $ | limit = 0 | |||
| ) |
Shows the archivelist using the given template
Definition at line 553 of file BLOG.php.
References $archive, $catid, $CONF, $manager, $query, createArchiveLink(), TEMPLATE::fill(), getCorrectTime(), getID(), mysql_fetch_object(), mysql_free_result(), mysqldate(), and sql_query().
| BLOG::showCategoryList | ( | $ | template | ) |
Shows the list of categories using a given template
Definition at line 611 of file BLOG.php.
References $archive, $archivelist, $CONF, $manager, $query, createArchiveLink(), createArchiveListLink(), createBlogidLink(), createLink(), TEMPLATE::fill(), getID(), mysql_fetch_assoc(), mysql_free_result(), and sql_query().
| BLOG::showBlogList | ( | $ | template, | |
| $ | bnametype | |||
| ) |
Shows a list of all blogs in the system using a given template
Definition at line 679 of file BLOG.php.
References $CONF, $manager, $query, createBlogidLink(), TEMPLATE::fill(), mysql_fetch_assoc(), mysql_free_result(), and sql_query().
Referenced by ACTIONS::parse_bloglist().
| BLOG::readSettings | ( | ) |
Blogsettings functions
Definition at line 727 of file BLOG.php.
References $query, mysql_fetch_assoc(), mysql_num_rows(), and sql_query().
Referenced by BLOG().
| BLOG::writeSettings | ( | ) |
Definition at line 740 of file BLOG.php.
References $query, allowPastPosting(), commentsEnabled(), convertBreaks(), emailRequired(), getDefaultCategory(), getDefaultSkin(), getDescription(), getID(), getMaxComments(), getName(), getNotifyAddress(), getNotifyType(), getSearchable(), getShortName(), getTimeOffset(), getUpdateFile(), getURL(), isPublic(), sendPing(), and sql_query().
| BLOG::updateUpdatefile | ( | ) |
| BLOG::isValidCategory | ( | $ | catid | ) |
Definition at line 783 of file BLOG.php.
References $catid, $query, getID(), mysql_num_rows(), and sql_query().
Referenced by additem(), and setSelectedCategory().
| BLOG::getCategoryName | ( | $ | catid | ) |
Definition at line 789 of file BLOG.php.
References $catid, getID(), mysql_fetch_object(), sql_query(), and sql_table().
| BLOG::getCategoryDesc | ( | $ | catid | ) |
Definition at line 795 of file BLOG.php.
References $catid, getID(), mysql_fetch_object(), sql_query(), and sql_table().
| BLOG::getCategoryIdFromName | ( | $ | name | ) |
Definition at line 801 of file BLOG.php.
References getDefaultCategory(), getID(), mysql_fetch_object(), mysql_num_rows(), sql_query(), and sql_table().
Referenced by setSelectedCategoryByName().
| BLOG::sendPing | ( | ) |
| BLOG::setPingUserland | ( | $ | val | ) |
| BLOG::convertBreaks | ( | ) |
Definition at line 819 of file BLOG.php.
References getSetting().
Referenced by additem(), insertJavaScriptInfo(), and writeSettings().
| BLOG::insertJavaScriptInfo | ( | $ | authorid = '' |
) |
Definition at line 823 of file BLOG.php.
References $CONF, $member, convertBreaks(), and setConvertBreaks().
| BLOG::setConvertBreaks | ( | $ | val | ) |
Definition at line 836 of file BLOG.php.
References setSetting().
Referenced by insertJavaScriptInfo().
| BLOG::setAllowPastPosting | ( | $ | val | ) |
| BLOG::allowPastPosting | ( | ) |
| BLOG::getCorrectTime | ( | $ | t = 0 |
) |
Definition at line 846 of file BLOG.php.
References getTimeOffset().
Referenced by additem(), getSqlBlog(), getSqlSearch(), showArchiveList(), showUsingQuery(), and updateUpdatefile().
| BLOG::getName | ( | ) |
Definition at line 851 of file BLOG.php.
References getSetting().
Referenced by addTeamMember(), sendNewItemNotification(), and writeSettings().
| BLOG::getShortName | ( | ) |
| BLOG::getMaxComments | ( | ) |
| BLOG::getNotifyAddress | ( | ) |
Definition at line 863 of file BLOG.php.
References getSetting().
Referenced by additem(), sendNewItemNotification(), and writeSettings().
| BLOG::getNotifyType | ( | ) |
Definition at line 867 of file BLOG.php.
References getSetting().
Referenced by notifyOnComment(), notifyOnNewItem(), notifyOnVote(), and writeSettings().
| BLOG::notifyOnComment | ( | ) |
| BLOG::notifyOnVote | ( | ) |
| BLOG::notifyOnNewItem | ( | ) |
| BLOG::setNotifyType | ( | $ | val | ) |
| BLOG::getTimeOffset | ( | ) |
Definition at line 891 of file BLOG.php.
References getSetting().
Referenced by getCorrectTime(), and writeSettings().
| BLOG::commentsEnabled | ( | ) |
| BLOG::getURL | ( | ) |
Definition at line 899 of file BLOG.php.
References getSetting().
Referenced by sendNewItemNotification(), and writeSettings().
| BLOG::getDefaultSkin | ( | ) |
| BLOG::getUpdateFile | ( | ) |
Definition at line 907 of file BLOG.php.
References getSetting().
Referenced by updateUpdatefile(), and writeSettings().
| BLOG::getDescription | ( | ) |
| BLOG::isPublic | ( | ) |
| BLOG::emailRequired | ( | ) |
| BLOG::getSearchable | ( | ) |
| BLOG::getDefaultCategory | ( | ) |
Definition at line 927 of file BLOG.php.
References getSetting().
Referenced by additem(), getCategoryIdFromName(), and writeSettings().
| BLOG::setPublic | ( | $ | val | ) |
| BLOG::setSearchable | ( | $ | val | ) |
| BLOG::setDescription | ( | $ | val | ) |
| BLOG::setUpdateFile | ( | $ | val | ) |
| BLOG::setDefaultSkin | ( | $ | val | ) |
| BLOG::setURL | ( | $ | val | ) |
| BLOG::setName | ( | $ | val | ) |
| BLOG::setShortName | ( | $ | val | ) |
| BLOG::setCommentsEnabled | ( | $ | val | ) |
| BLOG::setMaxComments | ( | $ | val | ) |
| BLOG::setNotifyAddress | ( | $ | val | ) |
| BLOG::setEmailRequired | ( | $ | val | ) |
| BLOG::setTimeOffset | ( | $ | val | ) |
| BLOG::setDefaultCategory | ( | $ | val | ) |
| BLOG::getSetting | ( | $ | key | ) |
Definition at line 997 of file BLOG.php.
Referenced by allowPastPosting(), commentsEnabled(), convertBreaks(), emailRequired(), getDefaultCategory(), getDefaultSkin(), getDescription(), getMaxComments(), getName(), getNotifyAddress(), getNotifyType(), getSearchable(), getShortName(), getTimeOffset(), getUpdateFile(), getURL(), isPublic(), and sendPing().
| BLOG::setSetting | ( | $ | key, | |
| $ | value | |||
| ) |
Definition at line 1001 of file BLOG.php.
Referenced by setAllowPastPosting(), setCommentsEnabled(), setConvertBreaks(), setDefaultCategory(), setDefaultSkin(), setDescription(), setEmailRequired(), setMaxComments(), setName(), setNotifyAddress(), setNotifyType(), setPingUserland(), setPublic(), setSearchable(), setShortName(), setTimeOffset(), setUpdateFile(), and setURL().
| BLOG::addTeamMember | ( | $ | memberid, | |
| $ | admin | |||
| ) |
Definition at line 1008 of file BLOG.php.
References $admin, $manager, $memberid, $query, ACTIONLOG::add(), MEMBER::createFromID(), getID(), getName(), and sql_query().
| BLOG::getID | ( | ) |
Definition at line 1050 of file BLOG.php.
Referenced by addTeamMember(), checkJustPosted(), clearFuturePost(), createNewCategory(), getCategoryDesc(), getCategoryIdFromName(), getCategoryName(), getSqlSearch(), isValidCategory(), search(), setFuturePost(), showArchiveList(), showCategoryList(), and writeSettings().
| BLOG::exists | ( | $ | name | ) |
Definition at line 1055 of file BLOG.php.
References mysql_num_rows(), sql_query(), and sql_table().
Referenced by MANAGER::existsBlog().
| BLOG::existsID | ( | $ | id | ) |
Definition at line 1061 of file BLOG.php.
References mysql_num_rows(), sql_query(), and sql_table().
Referenced by _addDatedItem(), _categoryList(), _getRecentItems(), _getRecentItemsBlogger(), _getRecentItemsMetaWeblog(), _getSkinPart(), _mt_categoryList(), _mt_getRecentPostTitles(), _newMediaObject(), _setSkinPart(), bm_doShowForm(), and MANAGER::existsBlogID().
| BLOG::setFuturePost | ( | ) |
| BLOG::clearFuturePost | ( | ) |
Definition at line 1074 of file BLOG.php.
References $query, getID(), and sql_query().
Referenced by checkJustPosted().
| BLOG::checkJustPosted | ( | ) |
Definition at line 1081 of file BLOG.php.
References $blogid, $manager, clearFuturePost(), getID(), mysql_num_rows(), sql_query(), and sql_table().
| BLOG::$blogid |
1.5.5