Class ClientController
Client Parent Controller
- Controller
- 
			 AppController AppController
- 
			 ClientController ClientController
Direct known subclasses
			ClientAccounts, 
			ClientContacts, 
			ClientDialog, 
			ClientInvoices, 
			ClientServices, 
			ClientTransactions
		
Methods summary
| 
				 public 
				
				
				 | |
| 
				 public 
				
				
				 | 
			#
			 getWidgets( )Outputs a JSON encoded array of all widgets to be displayed within the requested controller. Expects $this->get[0] to identify the client ID for which items are to be rendered. | 
| 
				 protected 
				boolean
				
				 | 
			#
			 isStaffAsClient( )Checks whether the current user is a staff user and whether the user is currently logged into the client portal. | 
| 
				 protected 
				
				
				 | |
| 
				 protected 
				
				
				 | 
			#
			 setNav( )Sets the primary and secondary navigation links. Performs authorization checks on each navigational element. May cache nav results if possible for better performance. | 
| 
				 protected 
				integer
				
				 | 
			#
			 requireLogin( string $redirect_to = null )Ensures that the user has an active session with a "blesta_id" set. Detects whether the current request is an AJAX request, and only redirects non-AJAX based requests, otherwise issues "401 Unauthorized". | 
| 
				 protected 
				
				
				 | |
| 
				 protected 
				boolean
				
				 | |
| 
				 protected 
				boolean
				
				 | 
			#
			 authorized( string $controller = null, string $action = null, Verifies that the currently logged in user is authorized for the given Controller and Action (or current Controller/Action if none given). Will first check whether the Controller and Action is a permission value, and if so, checks to ensure the staff or client group user is authorized to access that resource | 
Methods inherited from AppController
			__construct(), 
			adminWidgets(), 
			flashMessage(), 
			getCompany(), 
			getDaysOfWeek(), 
			getMonths(), 
			getTimes(), 
			isAjax(), 
			isLoggedIn(), 
			layoutSections(), 
			licenseCheck(), 
			outputAsJson(), 
			postAction(), 
			primeCompany(), 
			renderAjaxWidget(), 
			renderAjaxWidgetIfAsync(), 
			reorderWidgets(), 
			setDefaultView(), 
			setMaintenance(), 
			setMessage(), 
			setNavActive(), 
			setTheme(), 
			setWidgetState(), 
			toggleWidget(), 
			triggerPreAction(), 
			verifyCsrfToken()
		
Methods inherited from Controller
			clearCache(), 
			components(), 
			draw(), 
			emptyCache(), 
			helpers(), 
			index(), 
			partial(), 
			redirect(), 
			render(), 
			set(), 
			setDefaultViewPath(), 
			startCaching(), 
			stopCaching(), 
			uses()
		
Magic methods summary
Properties summary
Properties inherited from AppController
			$admin_uri, 
			$base_uri, 
			$base_url, 
			$client_uri, 
			$company_id, 
			$components, 
			$helpers, 
			$layout, 
			$request_uri, 
			$server_protocol
		
Properties inherited from Controller
			$action, 
			$controller, 
			$files, 
			$get, 
			$is_cli, 
			$plugin, 
			$post, 
			$structure, 
			$structure_view, 
			$uri, 
			$uri_str, 
			$uses, 
			$view