FreenetIS
 All Classes Namespaces Functions Variables Pages
Public Member Functions | Static Public Member Functions | Public Attributes | List of all members
Address_points_Controller Class Reference
Inheritance diagram for Address_points_Controller:
Controller

Public Member Functions

 index ()
 Index redirects to show all.
 show_all ($member_id=0, $limit_results=50, $order_by= 'items_count', $order_by_direction= 'DESC', $page_word=null, $page=1)
 Function shows list of all address points.
 show ($address_point_id=NULL)
 Function shows address point detail.
 add ()
 Function allow to add address point.
 edit ($address_point_id=NULL)
 Form for editing address point (just for filling in GPS coordinates).
 delete ($address_point_id=NULL)
 Function deletes address point.
 get_gps_by_address ()
 Help AJAX function to fill GPS by street, street_id, town and country.
 get_gps_by_address_string ()
 Help AJAX function to fill GPS by street, town, district, zip and country.
 autocomplete_gps ()
 Function to autocomplete empty GPS coords.
- Public Member Functions inherited from Controller
 __construct ()
 Contruct of controller, creates singleton or return it.
 is_user_in_group ($aro_group_id, $aro_id)
 Checks if user is in ARO group.
 acl_check_view ($axo_section, $axo_value, $member_id=NULL, $force_own=FALSE)
 Fuction checks access rights Return true if currently logged user (stored in $_SESSION['user_id']) may view own $axo_value object in $axo_section (and in variable $member_id is his own id of member) or if currently logged user may view all $axo_value object in $axo_section else return false.
 acl_check_edit ($axo_section, $axo_value, $member_id=NULL, $force_own=FALSE)
 Fuction checks access rights Return true if currently logged user (stored in $_SESSION['user_id']) may view own $axo_value object in $axo_section (and in variable $member_id is his own id of member) or if currently logged user may edit all $axo_value object in $axo_section else return false.
 acl_check_new ($axo_section, $axo_value, $member_id=NULL, $force_own=FALSE)
 Fuction checks access rights Return true if currently logged user (stored in $_SESSION['user_id']) may view own $axo_value object in $axo_section (and in variable $member_id is his own id of member) or if currently logged user may add all $axo_value object in $axo_section else return false.
 acl_check_delete ($axo_section, $axo_value, $member_id=NULL, $force_own=FALSE)
 Fuction checks access rights Return true if currently logged user (stored in $_SESSION['user_id']) may view own $axo_value object in $axo_section (and in variable $member_id is his own id of member) or if currently logged user may delete all $axo_value object in $axo_section else return false.
 build_menu ()
 Build menu.
 url ()
 Return URL for controller and method.
 redirect ($uri=NULL, $id=NULL, $glue= '/')
 Redirects to uri according to attribute noredirect.

Static Public Member Functions

static is_address_point_server_active ()
 Test if address point server is active.
static is_address_point_valid ($country=NULL, $town= '', $district= '', $street= '', $zip= '')
 Test if given address point is valid.
- Static Public Member Functions inherited from Controller
static & instance ()
 Singleton instance of Controller.
static error ($message_type, $content=NULL)
 Function shows error of given message number.
static warning ($message_type, $content=NULL)
 Function shows warning of given message number.

Public Attributes

const METHOD_GOOGLE = 1
- Public Attributes inherited from Controller
const ICON_ERROR = 1
const ICON_GOOD = 2
const ICON_HELP = 3
const ICON_INFO = 4
const ICON_WARNING = 5
 $arr
 $settings = NULL
 $popup = 0
 $dialog = 0
 $noredirect = FALSE
 $user_has_voip = 0
 $ip_address_span = ''
 $unread_user_mails = 0
 $count_of_unclosed_logged_errors = 0
 $devices_down_count = 0
 $user_favourites_pages = NULL
 $axo_doc_access = FALSE

Additional Inherited Members

- Protected Member Functions inherited from Controller
 is_preprocesor_enabled ()
 This methods defines whether the preprocessor of MY_Controller is loaded or not.
- Protected Attributes inherited from Controller
 $member_id
 $user_id
 $member_account_id = 1
 $session

Member Function Documentation

Address_points_Controller::add ( )

Function allow to add address point.

Author
Ondřej Fibich
Address_points_Controller::autocomplete_gps ( )

Function to autocomplete empty GPS coords.

Author
Michal Kliment
Address_points_Controller::delete (   $address_point_id = NULL)

Function deletes address point.

Author
Michal Kliment
Parameters
integer$address_point_idid of address point to delete
Address_points_Controller::edit (   $address_point_id = NULL)

Form for editing address point (just for filling in GPS coordinates).

Author
Michal Kliment, Ondřej Fibich
Parameters
integer$address_point_idid of address point to edit
Address_points_Controller::get_gps_by_address ( )

Help AJAX function to fill GPS by street, street_id, town and country.

Author
Michal Kliment, Ondřej Fibich
Address_points_Controller::get_gps_by_address_string ( )

Help AJAX function to fill GPS by street, town, district, zip and country.

Author
David Raška
static Address_points_Controller::is_address_point_server_active ( )
static

Test if address point server is active.

Returns
boolean
static Address_points_Controller::is_address_point_valid (   $country = NULL,
  $town = '',
  $district = '',
  $street = '',
  $zip = '' 
)
static

Test if given address point is valid.

Returns
boolean
Address_points_Controller::show (   $address_point_id = NULL)

Function shows address point detail.

Author
Michal Kliment
Parameters
integer$address_point_idid of address point to show
Address_points_Controller::show_all (   $member_id = 0,
  $limit_results = 50,
  $order_by = 'items_count',
  $order_by_direction = 'DESC',
  $page_word = null,
  $page = 1 
)

Function shows list of all address points.

Author
Michal Kliment
Parameters
$limit_results
$order_by
$order_by_direction
$page_word
$page

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