X-Git-Url: http://git.sourceforge.jp/view?p=nucleus-jp%2Fnucleus-jp-ancient.git;a=blobdiff_plain;f=euc%2Fnucleus%2Flibs%2FACTIONS.php;h=279b6e08b20b1907e5f3b8789fb405887253d953;hp=cdb3624bcb2892c196c03cab7cdfaf90d7792641;hb=4a878fdfff8d2b46f29902653ff4303dabb04660;hpb=929760acf97e0c2746af7d93e19baad9b04071a6 diff --git a/euc/nucleus/libs/ACTIONS.php b/euc/nucleus/libs/ACTIONS.php index cdb3624..279b6e0 100644 --- a/euc/nucleus/libs/ACTIONS.php +++ b/euc/nucleus/libs/ACTIONS.php @@ -18,8 +18,8 @@ * * @license http://nucleuscms.org/license.txt GNU General Public License * @copyright Copyright (C) 2002-2007 The Nucleus Group - * @version $Id: ACTIONS.php,v 1.2 2007-03-22 09:23:58 kimitake Exp $ - * @version $NucleusJP: ACTIONS.php,v 1.1 2007/03/22 08:36:52 kimitake Exp $ + * @version $Id: ACTIONS.php,v 1.3 2007-04-20 08:27:13 kimitake Exp $ + * @version $NucleusJP: ACTIONS.php,v 1.2 2007/03/22 09:23:58 kimitake Exp $ */ class ACTIONS extends BaseActions { @@ -58,14 +58,14 @@ class ACTIONS extends BaseActions { } /** - * Set the skin + * Set the skin */ function setSkin(&$skin) { $this->skin =& $skin; } /** - * Set the parser + * Set the parser */ function setParser(&$parser) { $this->parser =& $parser; @@ -189,7 +189,7 @@ class ACTIONS extends BaseActions { } /** - * Different checks for a category + * Different checks for a category */ function _ifCategory($name = '', $value='') { global $blog, $catid; @@ -213,7 +213,7 @@ class ACTIONS extends BaseActions { } /** - * Checks if a member is on the team of a blog and return his rights + * Checks if a member is on the team of a blog and return his rights */ function _ifOnTeam($blogName = '') { global $blog, $member, $manager; @@ -234,7 +234,7 @@ class ACTIONS extends BaseActions { } /** - * Checks if a member is admin of a blog + * Checks if a member is admin of a blog */ function _ifAdmin($blogName = '') { global $blog, $member, $manager; @@ -330,7 +330,7 @@ class ACTIONS extends BaseActions { } /** - * Creates an item link and if no id is given a todaylink + * Creates an item link and if no id is given a todaylink */ function _itemlink($id, $linktext = '') { global $CONF; @@ -339,9 +339,9 @@ class ACTIONS extends BaseActions { else $this->parse_todaylink($linktext); } - + /** - * Creates an archive link and if no id is given a todaylink + * Creates an archive link and if no id is given a todaylink */ function _archivelink($id, $linktext = '') { global $CONF, $blog; @@ -350,7 +350,7 @@ class ACTIONS extends BaseActions { else $this->parse_todaylink($linktext); } - + /** * Helper function that sets the category that a blog will need to use * @@ -368,7 +368,7 @@ class ACTIONS extends BaseActions { } /** - * Notifies the Manager that a PreBlogContent event occurs + * Notifies the Manager that a PreBlogContent event occurs */ function _preBlogContent($type, &$blog) { global $manager; @@ -376,13 +376,13 @@ class ACTIONS extends BaseActions { } /** - * Notifies the Manager that a PostBlogContent event occurs + * Notifies the Manager that a PostBlogContent event occurs */ function _postBlogContent($type, &$blog) { global $manager; $manager->notify('PostBlogContent',array('blog' => &$blog, 'type' => $type)); } - + /** * Parse skinvar additemform */ @@ -395,7 +395,7 @@ class ACTIONS extends BaseActions { $blog->InsertJavaScriptInfo(); $this->doForm('additemform'); } - + /** * Parse skinvar adminurl * (shortcut for admin url) @@ -406,7 +406,7 @@ class ACTIONS extends BaseActions { /** * Parse skinvar archive - */ + */ function parse_archive($template, $category = '') { global $blog, $archive; // can be used with either yyyy-mm or yyyy-mm-dd @@ -450,8 +450,8 @@ class ACTIONS extends BaseActions { } /** - * Parse skinvar archivedaylist - */ + * Parse skinvar archivedaylist + */ function parse_archivedaylist($template, $category = 'all', $limit = 0) { global $blog; if ($category == 'all') $category = ''; @@ -483,7 +483,7 @@ class ACTIONS extends BaseActions { /** * Parse skinvar archivetype - */ + */ function parse_archivetype() { global $archivetype; echo $archivetype; @@ -491,7 +491,7 @@ class ACTIONS extends BaseActions { /** * Parse skinvar blog - */ + */ function parse_blog($template, $amount = 10, $category = '') { global $blog, $startpos; @@ -501,16 +501,16 @@ class ACTIONS extends BaseActions { $this->amountfound = $blog->readLog($template, $limit, $offset, $startpos); $this->_postBlogContent('blog',$blog); } - + /* * Parse skinvar bloglist * Shows a list of all blogs * bnametype: whether 'name' or 'shortname' is used for the link text - */ + */ function parse_bloglist($template, $bnametype = '') { BLOG::showBlogList($template, $bnametype); } - + /** * Parse skinvar blogsetting */ @@ -534,7 +534,7 @@ class ACTIONS extends BaseActions { break; } } - + /** * Parse callback */ @@ -543,10 +543,10 @@ class ACTIONS extends BaseActions { global $manager; $manager->notify($eventName, array('type' => $type)); } - + /** * Parse skinvar category - */ + */ function parse_category($type = 'name') { global $catid, $blog; if (!$blog->isValidCategory($catid)) @@ -564,10 +564,10 @@ class ACTIONS extends BaseActions { break; } } - + /** * Parse categorylist - */ + */ function parse_categorylist($template, $blogname = '') { global $blog, $manager; @@ -582,14 +582,14 @@ class ACTIONS extends BaseActions { $this->_postBlogContent('categorylist',$b); } } - + /** * Parse skinvar charset */ function parse_charset() { echo _CHARSET; } - + /** * Parse skinvar commentform */ @@ -659,11 +659,11 @@ class ACTIONS extends BaseActions { $this->doForm('commentform-loggedin'); } } - + /** * Parse skinvar comments * include comments for one item - */ + */ function parse_comments($template) { global $itemid, $manager, $blog, $highlight; $template =& $manager->getTemplate($template); @@ -689,7 +689,7 @@ class ACTIONS extends BaseActions { if ($errormessage) echo '