QVCI Library 3.2
 All Classes Namespaces Functions
Public Member Functions | Public Attributes | List of all members
Qvc_controller Class Reference
Inheritance diagram for Qvc_controller:
Database Document Integrity Logs Menu Qvc_content Qvc_cron Qvc_upgrade Qvc_user Rest Role Schema Settings Translate Utils Welcome

Public Member Functions

 __construct ()
 
 index ()
 
 _remap ($method, $params=[])
 
 _get_controller_path ()
 
 _required_not_zero ($val)
 

Public Attributes

 $_access
 

Detailed Description

Implements the base controller for QVCI applications.

Constructor & Destructor Documentation

Qvc_controller::__construct ( )

Constructor

Member Function Documentation

Qvc_controller::_get_controller_path ( )

Get the path of the current controller, starting with the web root. This method requires public visibility, but the leading underscore prevents access via the web URL. This method takes into consideration that the controller may be accessed via a route, so it looks at the uri segments and returns the portion up to the method segment. If the method is not found in the list of segments, as would happen with 'index', return the entire segment list. Important to note that the uri->segments is the only member which contains the path as provided in the url.

Returns
string
Qvc_controller::_remap (   $method,
  $params = [] 
)

The _remap() function allows us to pass parameters to index(). This method requires public visibility, but the leading underscore prevents access via the web URL.

Parameters
string$method
array$params
Qvc_controller::_required_not_zero (   $val)

Form validation rule for dropdown selectors, requires that the value is not empty or zero. Unfortunately this is how CI implements custom rules; it needs to be in the controller. This method requires public visibility, but the leading underscore prevents access via the web URL.

Parameters
string$val
Returns
boolean
Qvc_controller::index ( )

Default index for when the controller does not provide one.

Member Data Documentation

Qvc_controller::$_access
Initial value:
= [
'*' => 'master_perm'

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