tangra logo
   
[ class tree: tangra_lib ] [ index: tangra_lib ] [ all elements ]
 

Class: Web_Event_Simple_Int

Source Location: /web_site/web_event_simple_int.class.php

Class Web_Event_Simple_Int

Class Overview

Web_Event_Simple that expect captured value to be integer otherwise throws exception

Useful when integer id is expected and we want to prevent the application from sql injection for example

Located in /web_site/web_event_simple_int.class.php [line 30]

Tangra_Class
   |
   --Event
      |
      --Web_Event
         |
         --Web_Event_Simple
            |
            --Web_Event_Simple_Int

Methods

[ Top ]
Inherited Properties, Constants, and Methods
Inherited Properties Inherited Methods Inherited Constants

Inherited From Web_Event_Simple

Web_Event_Simple::$capture
Web_Event_Simple::$type

Inherited From Event

Event::$name

Inherited From Web_Event_Simple

Web_Event_Simple::__construct()
Constructor
Web_Event_Simple::get_capture()
Returns capture label
Web_Event_Simple::get_type()
Returns type of the event
Web_Event_Simple::is_it_me()
Checks if event condition is met
Web_Event_Simple::set_capture()
Sets capture label
Web_Event_Simple::set_type()
Sets event type

Inherited From Web_Event

Web_Event::get_capture()
Returns label of the capture
Web_Event::is_it_me()
Checks if event condition is met

Inherited From Event

Event::__construct()
Event::get_name()
Gets the event name
Event::set_name()
Sets the event name

Inherited From Tangra_Class

Tangra_Class::get_class_name()
Alias of get_class(). Exist because of historical reasons.
Tangra_Class::__set()
Overides PHP built-in method and just throws exception if called. Purpose - to "forbid" autosetting of nonexisting class properties.

[ Top ]
Method Summary
string   is_it_me()   Checks if event condition is met

[ Top ]
Methods
is_it_me  [line 39]

  string is_it_me( Web_Context $context  )

Checks if event condition is met

Parameters:
Web_Context   $context: 

API Tags:
Return:  Value of the capture. It is integer but it is represented as string
Access:  public


Redefinition of:
Web_Event_Simple::is_it_me()
Checks if event condition is met

[ Top ]