Class Contact

Description

Can be used to contact system admins or sending ascii data via email

Located in /mod_contact.php (line 13)

Base
   |
   --Contact
Method Summary
Contact __construct ()
void get_mail_signal (mixed $com)
boolean send_email ()
void set_data ([string $cont = ""], [string $s_name = ""], [string $s_schl = ""])
void set_sender_name (mixed $name)
void set_sender_school (mixed $school_name)
void start ()
void view ()
Methods
Constructor __construct (line 44)
  • access: public
Contact __construct ()
get_mail_signal (line 84)

Return unique name-attribute/signal by following string param:

  • send: send-button
  • f_name: name-textbox
  • f_email: email-textbox
  • f_school: school-textbox
  • subject: subject-textbox
  • content: content-textbox
  • to_email: custom-email-textbox
  • to_admin: admin-email-list
  • mailcontent: if this post-variable is set, it will be included to mail-content.

  • access: public
void get_mail_signal (mixed $com)
send_email (line 217)

Message sender

Gets the correct calues from POST-variables

  • return: success Same as PHP mail-function bool
  • access: protected
boolean send_email ()
set_data (line 106)

Sets mail content and sender data

  • access: public
void set_data ([string $cont = ""], [string $s_name = ""], [string $s_schl = ""])
  • string $cont: Mail content
  • string $s_name: Sender name
  • string $s_schl: Sende school
set_sender_name (line 116)
  • access: public
void set_sender_name (mixed $name)
set_sender_school (line 119)
  • access: public
void set_sender_school (mixed $school_name)
start (line 142)

Handles signals

Handles following superglobal POST variables:

  • send: unique signal send executes mail sending logic

  • access: public
void start ()
view (line 175)

Shows current view By view attribute value:

  • send: prints the email form. This is default view also.

  • contact: prints the email form with admin list
  • thanks: prints thanks message
Default is

  • access: public
void view ()

Inherited Methods

Inherited From Base

Base::make_query()

Documentation generated on Mon, 16 May 2005 16:11:53 +0300 by phpDocumentor 1.3.0RC3