ACTION Class Reference

List of all members.

Public Member Functions

 ACTION ()
 doAction ($action)
 addComment ()
 sendMessage ()
 validateMessage ()
 createAccount ()
 forgotPassword ()
 doKarma ($type)
 callPlugin ()
 checkban ($blogid)
 updateTicket ()
 autoDraft ()


Detailed Description

Actions that can be called via action.php

http://nucleuscms.org/license.txt GNU General Public License Copyright (C) 2002-2007 The Nucleus Group

Version:
Id
ACTION.php 1140 2007-05-10 08:06:46Z kimitake
NucleusJP
ACTION.php,v 1.8.2.5 2008/02/04 06:14:06 kimitake Exp

Definition at line 21 of file ACTION.php.


Member Function Documentation

ACTION::ACTION (  ) 

Constructor for an new ACTION object

Definition at line 26 of file ACTION.php.

ACTION::doAction ( action  ) 

Calls functions that handle an action called from action.php

Definition at line 34 of file ACTION.php.

References $action, addComment(), autoDraft(), callPlugin(), createAccount(), doError(), doKarma(), forgotPassword(), sendMessage(), and updateTicket().

ACTION::addComment (  ) 

Adds a new comment to an item (if IP isn't banned)

Definition at line 72 of file ACTION.php.

References $blogid, $CONF, $errormessage, $manager, checkban(), createItemLink(), exit, getBlogIDFromItemID(), postVar(), and redirect().

Referenced by doAction().

ACTION::sendMessage (  ) 

Sends a message from the current member to the member given as argument

Definition at line 121 of file ACTION.php.

References $CONF, $error, $member, createLink(), createMemberLink(), exit, getMailFooter(), mb_internal_encoding(), mb_language(), mb_send_mail(), postVar(), redirect(), and validateMessage().

Referenced by doAction().

ACTION::validateMessage (  ) 

Checks if a mail to a member is allowed Returns a string with the error message if the mail is disallowed

Definition at line 171 of file ACTION.php.

References $CONF, $manager, $member, isValidMailAddress(), and postVar().

Referenced by sendMessage().

ACTION::createAccount (  ) 

Creates a new user account

Definition at line 195 of file ACTION.php.

References $CONF, $manager, MEMBER::create(), doError(), exit, postVar(), and redirect().

Referenced by doAction().

ACTION::forgotPassword (  ) 

Sends a new password

Definition at line 242 of file ACTION.php.

References MEMBER::createFromName(), doError(), MEMBER::exists(), exit, postVar(), and redirect().

Referenced by doAction().

ACTION::doKarma ( type  ) 

Handle karma votes

Definition at line 271 of file ACTION.php.

References $blogid, $CONF, $itemid, $manager, $member, checkban(), doError(), exit, getBlogIDFromItemID(), getMailFooter(), redirect(), and serverVar().

Referenced by doAction().

ACTION::callPlugin (  ) 

Calls a plugin action

Definition at line 339 of file ACTION.php.

References $error, $manager, doError(), exit, and requestVar().

Referenced by doAction().

ACTION::checkban ( blogid  ) 

Checks if an IP or IP range is banned

Definition at line 369 of file ACTION.php.

References $blogid, doError(), BAN::isBanned(), and serverVar().

Referenced by addComment(), and doKarma().

ACTION::updateTicket (  ) 

Gets a new ticket

Definition at line 381 of file ACTION.php.

References $manager.

Referenced by doAction().

ACTION::autoDraft (  ) 

Handles AutoSaveDraft

Definition at line 395 of file ACTION.php.

References $manager, and ITEM::createDraftFromRequest().

Referenced by doAction().


The documentation for this class was generated from the following file:



Generated on Wed Jun 25 17:26:01 2008 by  doxygen 1.5.5