Class CalendarSolution_FrequentEvent_Form

Description

The means to edit a Frequent Event via an HTML form

Located in /include/CalendarSolution/FrequentEvent/Form.php (line 20)

CalendarSolution
   |
   --CalendarSolution_FrequentEvent
      |
      --CalendarSolution_FrequentEvent_Form
Variable Summary
array $errors
array $fields
Method Summary
CalendarSolution_FrequentEvent_Form __construct ([string $dbms = CALENDAR_SOLUTION_DBMS])
void delete ()
string get_rendering (int $frequent_event_id)
void insert ()
bool is_valid ([bool $check_frequent_event_id = true])
void update ()
Variables
array $errors = array() (line 25)

Errors found by is_valid()

  • access: protected
array $fields = array(
'frequent_event_id',
'frequent_event',
'frequent_event_uri',
)
(line 31)

The names of fields on the form

  • access: protected
array $fields_bitwise = array() (line 41)

The names of fields on the form that are bitwise in the database

  • access: protected

Inherited Variables

Inherited from CalendarSolution

CalendarSolution::$cache
CalendarSolution::$cache_available
CalendarSolution::$csrf_token_name
CalendarSolution::$data
CalendarSolution::$http_host
CalendarSolution::$sql
CalendarSolution::$uri
CalendarSolution::$use_cache
Methods
Constructor __construct (line 55)

Sets the CSRF token name and calls the main constructor

CalendarSolution_FrequentEvent_Form __construct ([string $dbms = CALENDAR_SOLUTION_DBMS])
  • string $dbms: optional override of the database extension setting in CALENDAR_SOLUTION_DBMS. Values can be "mysql", "mysqli", "pgsql", "sqlite", "sqlite3".

Redefinition of:
CalendarSolution::__construct()
Instantiates the database and cache classes then sets the $http_host property
delete (line 69)

Deletes the record specified by $this->data['frequent_event_id']

void delete ()
get_rendering (line 160)

Produces the HTML form for editing an event

  • return: the complete HTML of the desired event
  • throws: CalendarSolution_Exception if $this->data is not populated
  • access: public
string get_rendering (int $frequent_event_id)
  • int $frequent_event_id: the id number of the item to get (defaults to $_REQUEST['frequent_event_id'])
insert (line 89)

Inserts the posted data into the database

void insert ()
is_valid (line 116)

Ensures the validity of the information in $this->data

  • throws: CalendarSolution_Exception on fields containing predetermined data being manipulated
  • access: public
bool is_valid ([bool $check_frequent_event_id = true])
  • bool $check_frequent_event_id: test the value of frequent_event_id?
update (line 249)

Updates the record with the posted data

void update ()

Inherited Methods

Inherited From CalendarSolution_FrequentEvent

CalendarSolution_FrequentEvent::run_query()
CalendarSolution_FrequentEvent::set_data_from_query()

Inherited From CalendarSolution

CalendarSolution::__construct()
CalendarSolution::convert_windows_characters()
CalendarSolution::escape_data_for_html()
CalendarSolution::escape_for_icalendar()
CalendarSolution::flush_cache()
CalendarSolution::format_date()
CalendarSolution::get_admin_navigation()
CalendarSolution::get_credit()
CalendarSolution::get_css()
CalendarSolution::get_date_from_request()
CalendarSolution::get_errors()
CalendarSolution::get_event_formatted_icalendar()
CalendarSolution::get_int_array_from_request()
CalendarSolution::get_int_from_request()
CalendarSolution::get_string_from_request()
CalendarSolution::is_admin()
CalendarSolution::is_cache_available()
CalendarSolution::set_data_empty()
CalendarSolution::set_data_from_post()
CalendarSolution::set_uri()
CalendarSolution::validate_csrf_token()
Class Constants

Documentation generated on Wed, 21 Mar 2012 14:16:42 -0400 by phpDocumentor 1.4.4