public function getControllersModules() : array {
		$result = self::$cached_modules[$this->controller_data['module_code']]['module_ids'];
		// filter
		foreach ($result as $k => $v) {
			// determine action
			$action = $this->method_code == 'Edit' ? 'Record_View' : 'List_View';
			if (!$this->can($action, $this->method_code, $k)) {
				unset($result[$k]);
			}
		}
		// sort
		return \Object\Data\Common::buildOptions($result, ['name' => 'name'], [], ['i18n' => true]);
	}
public function getControllersModules() : array {
		$result = self::$cached_modules[$this->controller_data['module_code']]['module_ids'];
		// filter
		foreach ($result as $k => $v) {
			// determine action
			$action = $this->method_code == 'Edit' ? 'Record_View' : 'List_View';
			if (!$this->can($action, $this->method_code, $k)) {
				unset($result[$k]);
			}
		}
		// sort
		return \Object\Data\Common::buildOptions($result, ['name' => 'name'], [], ['i18n' => true]);
	}
public function getControllersModules ( ) : array { $ result = self :: $ cached_modules [ $ this -> controller_data [ 'module_code' ] ] [ 'module_ids' ] ; // filter foreach ( $ result as $ k => $ v ) { // determine action $ action = $ this -> method_code == 'Edit' ? 'Record_View' : 'List_View' ; if ( ! $ this -> can ( $ action , $ this -> method_code , $ k ) ) { unset ( $ result [ $ k ] ) ; } } // sort return \ Object \ Data \ Common :: buildOptions ( $ result , [ 'name' => 'name' ] , [ ] , [ 'i18n' => true ] ) ; }
Get controllers modules

@return array
Get controllers modules