Class x2base
Base controller for all application controllers with CRUD operations
- CComponent
 - 
			
CBaseController
			
			
		 - 
			
CController
			
			
		 - 
			
			X2Controller
			
			
			
		 - 
			
x2base			
			
			
		 
Direct known subclasses
AccountsController, ActionsController, OpportunitiesController, ProductsController, ProfileController, QuotesController, RelationshipsController, SearchController, ServicesController, SiteController, StudioController, TemplatesController, ApiController, TopicsController, UsersController, WorkflowController, X2LeadsController, BugReportsController, CalendarController, ContactsController, DocsController, GroupsController, MarketingController, MediaController
			 public 
			array
			
			
		 | 
		|
			 public 
			array
			
			
		 | 
		
		#
		 behaviors( )
		Returns a list of behaviors that this controller should behave as. The return value should be an array of behavior configurations indexed by behavior names. Each behavior configuration can be either a string specifying the behavior class or an array of the following structure: 
'behaviorName'=>array(
    'class'=>'path.to.BehaviorClass',
    'property1'=>'value1',
    'property2'=>'value2',
)
		 | 
	
			 protected 
			boolean
			
			
		 | 
		
		#
		 beforeAction( CAction $action = null )
		This method is invoked right before an action is to be executed (after all possible filters.) You may override this method to do last-minute preparation for the action.  | 
	
			 public 
			
			
			
		 | 
		|
			 public 
			
			
			
		 | 
		|
			 public 
			
			
			
		 | 
		|
			 public 
			
			
			
		 | 
		|
			 public 
			array
			
			
		 | 
		
		#
		 actions( )
		Returns a list of external action classes. Array keys are action IDs, and array values are the corresponding action class in dot syntax (e.g. 'edit'=>'application.controllers.article.EditArticle') or arrays representing the configuration of the actions, such as the following, 
return array(
    'action1'=>'path.to.Action1Class',
    'action2'=>array(
        'class'=>'path.to.Action2Class',
        'property1'=>'value1',
        'property2'=>'value2',
    ),
);
Derived classes may override this method to declare external actions.  | 
	
			 public 
			
			
			
		 | 
		|
			 public 
			string
			
			
		 | 
		
		#
		 renderPartialAjax( string $view, array $data = null, boolean $return = false, mixed $includeScriptFiles = false )
		Renders a view with any attached scripts, WITHOUT the core scripts.  | 
	
			 public 
			boolean
			
			
		 | 
		
		#
		 checkPermissions( mixed & $model, string $action = null )
		Determines if we have permission to edit something based on the assignedTo field.  | 
	
			 public 
			
			
			
		 | 
		|
			 public 
			CActiveDataProvider
			
			
		 | 
		
		#
		 getHistory( mixed & $model, mixed $type = null )
		Obtain the history of actions associated with a model.  | 
	
			 public 
			integer
			
			
		 | 
		
		#
		 getCurrentWorkflow( integer $id, string $type )
		Obtains the current worflow for a model of given type and id. Prioritizes incomplete workflows over completed ones.  | 
	
			 public static
			
			
			
		 | 
		
		#
		 convertUrls( string $text, boolean $convertLineBreaks = true )
		Replaces any URL in text with an html link (supports mailto links)  | 
	
			 public 
			
			
			
		 | 
		|
			 public 
			
			
			
		 | 
		|
			 public 
			
			
			
		 | 
		|
			 public 
			
			
			
		 | 
		|
			 public 
			
			
			
		 | 
		|
			 public 
			
			
			
		 | 
		
		#
		 actionSearch( )
		Search for a term. Defined in X2Base so that all Controllers can use, but it makes a call to the SearchController.  | 
	
			 public 
			
			
			
		 | 
		|
			 public 
			
			
			
		 | 
		|
			 public 
			
			
			
		 | 
		|
			 public 
			
			
			
		 | 
		|
			 public 
			
			
			
		 | 
		|
			 public 
			array
			
			
		 | 
		
		#
		 sendUserEmail( array $addresses, string $subject, string $message, array $attachments = null, array|integer $from = null )
		Send an email from X2Engine, returns an array with status code/message  | 
	
			 public 
			
			
			
		 | 
		|
			 public 
			
			
			
		 | 
		|
			 public 
			
			
			
		 | 
		|
			 protected 
			
			
			
		 | 
		|
			 public 
			
			
			
		 | 
		
		#
		 actionGetX2ModelInput( mixed $modelName, mixed $fieldName )
		Calls renderInput for model and input type with given names and returns the result.  | 
	
			 protected 
			
			
			
		 | 
		
		#
		 prepareMenu( array & $menuItems, array|true $selectOptions )
		Helper method to hide specific menu options or unset links before the menu is rendered  | 
	
			 protected 
			
			
			
		 | 
		|
			 public 
			string
			
			
		 | 
		
		#
		 render( string $view, array $data = null, boolean $return = false )
		Override parent method so that layout business logic can be moved to controller This method is Copyright (c) 2008-2014 by Yii Software LLC http://www.yiiframework.com/license/  | 
	
			 public 
			
			
			
		 | 
		
		#
		 setPageTitle( string $value )
		Overrides parent method so that x2base's _pageTitle property is used instead of CController's.  | 
	
			 public 
			string
			
			
		 | 
		
		#
		 getPageTitle( )
		Overrides parent method so that configurable app name is used instead of name from the config file.  | 
	
			 public 
			mixed
			
			
		 | 
		|
			 public 
			
			
			
		 | 
		|
			 protected 
			
			
			
		 | 
		|
			 protected 
			
			
			
		 | 
		
__construct(), 
accessRules(), 
afterAction(), 
afterRender(), 
beforeRender(), 
clearPageStates(), 
createAbsoluteUrl(), 
createAction(), 
createActionFromMap(), 
createUrl(), 
filterAccessControl(), 
filterAjaxOnly(), 
filterPostOnly(), 
forward(), 
getAction(), 
getActionParams(), 
getCachingStack(), 
getClips(), 
getId(), 
getLayoutFile(), 
getModule(), 
getPageState(), 
getRoute(), 
getUniqueId(), 
getViewFile(), 
getViewPath(), 
init(), 
invalidActionParams(), 
isCachingStackEmpty(), 
loadPageStates(), 
missingAction(), 
processDynamicOutput(), 
processOutput(), 
recordCachingAction(), 
redirect(), 
refresh(), 
renderClip(), 
renderDynamic(), 
renderDynamicInternal(), 
renderPartial(), 
renderText(), 
replaceDynamicOutput(), 
run(), 
runAction(), 
runActionWithFilters(), 
savePageStates(), 
setAction(), 
setPageState()
		 | 
	
beginCache(), 
beginClip(), 
beginContent(), 
beginWidget(), 
createWidget(), 
endCache(), 
endClip(), 
endContent(), 
endWidget(), 
renderFile(), 
renderInternal()
		 | 
	
__call(), 
__get(), 
__isset(), 
__set(), 
__unset(), 
asa(), 
attachBehavior(), 
attachBehaviors(), 
attachEventHandler(), 
canGetProperty(), 
canSetProperty(), 
detachBehavior(), 
detachBehaviors(), 
detachEventHandler(), 
disableBehavior(), 
disableBehaviors(), 
enableBehavior(), 
enableBehaviors(), 
evaluateExpression(), 
getEventHandlers(), 
hasEvent(), 
hasEventHandler(), 
hasProperty(), 
raiseEvent()
		 | 
	
STATE_INPUT_NAME
		 | 
	
			public  
			string
		 | 
		$layout | '//layouts/column3' | 
		
			#
			 the default layout for the controller view. Defaults to '//layouts/column1', meaning using a single column layout. See 'protected/views/layouts/column1.php'.  | 
	
			public  
			boolean
		 | 
		$noBackdrop | false | 
		
			#
			 $noBackdrop If true, then the content will not have a backdrop  | 
	
			public  
			array
		 | 
		$menu | array() | 
		
			#
			 context menu items. This property will be assigned to CMenu::items.  | 
	
			public  
			array
		 | 
		$breadcrumbs | array() | 
		
			#
			 the breadcrumbs of the current page. The value of this property will be assigned to CBreadcrumbs::links. Please refer to CBreadcrumbs::links for more details on how to specify this property.  | 
	
			public  
			array
		 | 
		$portlets | array() | 
		|
			public  
			array
		 | 
		$leftPortlets | array() | 
		|
			public  
			mixed
		 | 
		$modelClass |  | 
		|
			public  
			array
		 | 
		$actionMenu | array() | 
		|
			public  
			array
		 | 
		$leftWidgets | array() | 
		
$defaultAction
		 | 
	
$action, 
$actionParams, 
$cachingStack, 
$clips, 
$id, 
$module, 
$pageTitle, 
$route, 
$uniqueId, 
$viewPath
		 |